Ejemplo n.º 1
0
        private void Item_Fixed(object sender, EventArgs e)
        {
            var ii = (IssueItem)sender;

            if (ii.LastException != null)
            {
                LastException = ii.LastException;
                ExceptionInfoButton.Visibility = Visibility.Visible;
            }
            TasksTimer.DoActionNow();
            TasksTimer.SleepTimerStart();
        }
Ejemplo n.º 2
0
        void _Add(CloudAction action, object items, Guid[] checksums)
        {
            var message = new CloudMessage(action);

            // Try to assign list.
            message.Checksums     = checksums;
            message.UserGames     = items as UserGame[];
            message.UserDevices   = items as UserDevice[];
            message.UserComputers = items as UserComputer[];
            message.UserInstances = items as UserInstance[];
            var item = new CloudItem()
            {
                Date    = DateTime.Now,
                Message = message,
                State   = CloudState.None,
            };

            TasksTimer.DoActionNow(item);
        }
Ejemplo n.º 3
0
 public void Add <T>(CloudAction action, T[] items = null)
 {
     BeginInvoke((MethodInvoker) delegate()
     {
         var allow = MainForm.Current.OptionsPanel.InternetAutoSaveCheckBox.Checked;
         if (!allow)
         {
             return;
         }
         for (int i = 0; i < items.Length; i++)
         {
             var item = new CloudItem()
             {
                 Action = action,
                 Date   = DateTime.Now,
                 Item   = items[i],
                 State  = CloudState.None,
             };
             queueTimer.DoActionNow(item);
         }
     });
 }