Beispiel #1
0
        async void ThreadMethod()
        {
            infoAcc = new InfoGridTaskPlans((await infoTask.Api.GetCurrentUserAsync()).Value.UserName,
                                            infoTask.OneTask.Info(),
                                            infoTask.Time.ToString(), "Ожидает", infoTask.Number);
            EventUpdateGrid(this, new UpdateGridTaskPlans(infoAcc));

            string username = (await infoTask.Api.GetCurrentUserAsync()).Value.UserName;

            while (delete == false)
            {
                if (DateTime.Now > infoTask.Time || forcedStart)
                {
                    if (dictionaryTask.ContainsKey(username))
                    {
                        if (dictionaryTask[username].Stat == false)
                        {
                            Tasking();
                            break;
                        }
                    }
                    else
                    {
                        Tasking();
                        break;
                    }
                }
                Thread.Sleep(1000 * 60);
            }
        }
Beispiel #2
0
 public UpdateGridTaskPlans(InfoGridTaskPlans info)
 {
     this.info = info;
 }