private void buttonTask3_Click(object sender, EventArgs e) { //Переключился на задачу №3 TimerJob.Start(); CurrentTask = 3; ModifyColor(); playSimpleSound(1); }
static void Main(string[] args) { PublishTest publishTest = new PublishTest(); // publishTest.RunEachPush(); // publishTest.RunOncePush(); // publishTest.RunDelayTimePush(); TimerJob.SetAction(() => { Console.WriteLine("hha" + DateTime.Now); }); TimerJob.Start(); Console.ReadLine(); }