Exemplo n.º 1
0
        private static object CoerceValue(DependencyObject d, object baseValue)
        {
            NumericUpDown control = (NumericUpDown)d;

            return(System.Math.Max(control.MinValue, System.Math.Min((int)baseValue, control.MaxValue)));
        }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.products = ((System.Windows.Controls.TabControl)(target));
                return;

            case 2:
                this.numdownInstUnsub_RequestDelayFrom = ((UserControls.NumericUpDown)(target));
                return;

            case 3:
                this.numdownInstUnsub_RequestDelayTO = ((UserControls.NumericUpDown)(target));
                return;

            case 4:
                this.numdownInstUnsub_DeletedCount = ((UserControls.NumericUpDown)(target));
                return;

            case 5:
                this.cbInstUnsubRandomSleep_WhileRequest = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 6:
                this.numdownInstUnsub_RequestCountFrom = ((UserControls.NumericUpDown)(target));
                return;

            case 7:
                this.numdownInstUnsub_RequestCountTo = ((UserControls.NumericUpDown)(target));
                return;

            case 8:
                this.numdownInstUnsub_DelayCountInMinutesFrom = ((UserControls.NumericUpDown)(target));
                return;

            case 9:
                this.numdownInstUnsub_DelayCountInMinutesTo = ((UserControls.NumericUpDown)(target));
                return;

            case 10:
                this.numdownInstUnsub_DelayLoginRequestInMinutes = ((UserControls.NumericUpDown)(target));
                return;

            case 11:
                this.rbtnLoginHTTPBrowser = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 12:
                this.rbtnLoginHTTPAndroid = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 13:
                this.cbSmsWithoutProxy = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 14:
                this.cbActiveLicenseKey_SmsActivate = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 15:
                this.tbLicenseKey_SmsActivate = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.cbActiveLicenseKey_CheapSms = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 17:
                this.tbLicenseKey_CheapSms = ((System.Windows.Controls.TextBox)(target));
                return;

            case 18:
                this.cbActiveLicenseKey_VakSms = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 19:
                this.tbLicenseKey_VakSms = ((System.Windows.Controls.TextBox)(target));
                return;

            case 20:
                this.cbActiveLicenseKey_SimSms = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 21:
                this.tbLicenseKey_SimSms = ((System.Windows.Controls.TextBox)(target));
                return;

            case 22:
                this.cbActiveLicenseKey_SmsOnline = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 23:
                this.tbLicenseKey_SmsOnline = ((System.Windows.Controls.TextBox)(target));
                return;

            case 24:
                this.updownRequestSmsDelay = ((UserControls.NumericUpDown)(target));
                return;

            case 25:
                this.cbSaveAllLogs = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 26:
                this.cbSaveTokenToFiles = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 27:
                this.cbDisableLogShow = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 28:
                this.cbDetailedLog = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 29:
                this.updownAccountLoginDelay = ((UserControls.NumericUpDown)(target));
                return;

            case 30:
                this.stackPanel_SimSms__1 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 31:
                this.stackPanel_SimSms__2 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 32:
                this.stackPanel_SimSms__3 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 33:
                this.smsOnline_StackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 34:
                this.updownAutorizateTry = ((UserControls.NumericUpDown)(target));
                return;

            case 35:
                this.updownPostPublicationDelay_PostSetting = ((UserControls.NumericUpDown)(target));
                return;

            case 36:
                this.updownPostsCount_PostSetting = ((UserControls.NumericUpDown)(target));
                return;

            case 37:
                this.updownDelayBeginEnd_PostSetting = ((UserControls.NumericUpDown)(target));
                return;

            case 38:
                this.rbtnWithPhotoDeletion_PostSetting = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 39:
                this.rbtnWithoutPhotoDeletion_PostSetting = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 40:
                this.cbLoadAvatars_PostSetting = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 41:
                this.cbLoadAvatarsOnly_PostSetting = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 42:
                this.tbPhotoFolder_PostSetting = ((System.Windows.Controls.TextBox)(target));
                return;

            case 43:
                this.btnFindPhotoFolder_PostSetting = ((System.Windows.Controls.Button)(target));
                return;

            case 44:
                this.tbCommentFolder_PostSetting = ((System.Windows.Controls.TextBox)(target));
                return;

            case 45:
                this.btnFindCommentFile_PostSetting = ((System.Windows.Controls.Button)(target));
                return;

            case 46:
                this.cbCheckAccount_PostSetting = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 47:
                this.updownIntervalForCheckingAccounts_PostSetting = ((UserControls.NumericUpDown)(target));
                return;

            case 48:
                this.cbProxySwitch_PostSetting = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 49:
                this.cbLike4u_WithProxy_PostSetting = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 50:
                this.updownEntryTries_PostSetting = ((UserControls.NumericUpDown)(target));
                return;

            case 51:
                this.cbAutoGenerateAllAccount_PostSetting = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 52:
                this.updownGenerateAllAccounts_InSeconds_PostSetting = ((UserControls.NumericUpDown)(target));
                return;

            case 53:
                this.btnSaveSetingsChanges_PostSetting = ((System.Windows.Controls.Button)(target));

            #line 474 "..\..\SettingsWindow.xaml"
                this.btnSaveSetingsChanges_PostSetting.Click += new System.Windows.RoutedEventHandler(this.btnSaveSetingsChanges_Click);

            #line default
            #line hidden
                return;

            case 54:
                this.btnCancelSetingsChanges_PostSetting = ((System.Windows.Controls.Button)(target));

            #line 475 "..\..\SettingsWindow.xaml"
                this.btnCancelSetingsChanges_PostSetting.Click += new System.Windows.RoutedEventHandler(this.btnCancelSetingsChanges_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }