#pragma once

#using <system.dll>
#include "discrete.h"
#include "stdafx.h"

using namespace System;
using namespace System::Timers;
using namespace System::Windows::Forms;

//musel jsem to udelat ve zvlastni tride, protoze pri pridani timeru do Main_form.h ho tam zacal spatne icicializovat
//a porad se to automaticky menilo, neco jako kdyby tam byl ten timer z Forms::Timer
namespace Sianaso{

ref class Timer1
{
private:
	System::Timers::Timer^ aTimer;
	void OnTimedEvent(Object^ source, ElapsedEventArgs^ e);
	CallBack_Sample^ Sample;

public:
	Timer1(CallBack_Sample^ _Sample, double Tvz);
	~Timer1();
};
}

