コード例 #1
0
ファイル: CloudClient.cs プロジェクト: SubspaceNetwork/x360ce
        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);
        }
コード例 #2
0
ファイル: ThumbUserControl.cs プロジェクト: Seaweedbeard/x360
        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:";
        }