public void Add <T>(CloudAction action, T[] items, Guid[] checksums = null) { var o = SettingsManager.Options; var allow = o.InternetAutoSave; if (!allow) { return; } var message = new CloudMessage(action); // Try to assign list. message.Checksums = checksums; message.UserGames = items as UserGame[]; message.UserSettings = items as UserSetting[]; message.UserDevices = items as UserDevice[]; message.UserComputers = items as UserComputer[]; message.UserInstances = items as UserInstance[]; message.MailMessages = items as MailMessageSerializable[]; var item = new CloudItem() { Date = DateTime.Now, Message = message, State = CloudState.None, }; TasksTimer.DoActionNow(item); }
void RefreshBackgroundImageAsync() { var param = (int)SensitivityTrackBar.Value; updateTimer.DoActionNow(param); SensitivityLabel.Text = SensitivityCheckBox.Checked ? "Sensitivity - Make more sensitive in the center:" : "Sensitivity - Make less sensitive in the center:"; }