Exemplo n.º 1
0
        private void TBPtnName_TextChanged(object sender, TextChangedEventArgs e)
        {
            UserControls.PatternItem itm = (UserControls.PatternItem)listView.SelectedItem;
            if (itm == null)
            {
                return;
            }

            itm.Content = TBPtnName.Text;
            ((PatternItem)listView.SelectedItem).pattern.PatternName = TBPtnName.Text;
            TempSetting.DefaultPattern = ((PatternItem)listView.SelectedItem).pattern;
        }
Exemplo n.º 2
0
        private void TBSaveLoc_TextChanged(object sender, TextChangedEventArgs e)
        {
            UserControls.PatternItem itm = (UserControls.PatternItem)listView.SelectedItem;
            if (itm == null)
            {
                return;
            }

            itm.SaveLocation = TBSaveLoc.Text;
            ((PatternItem)listView.SelectedItem).pattern.SaveLocation = TBSaveLoc.Text;
            TempSetting.DefaultPattern = ((PatternItem)listView.SelectedItem).pattern;
        }
Exemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.tabControl = ((System.Windows.Controls.TabControl)(target));
                return;

            case 2:
                this.auCaRingType1 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 3:
                this.auCaRingType2 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 4:
                this.auCaRingType3 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 5:
                this.ShowPopupGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.popCountDown1 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 7:
                this.popCountDown2 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 8:
                this.popCountDown3 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 9:
                this.auCaRingType4 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 10:
                this.AllCaCountDown = ((System.Windows.Controls.Grid)(target));
                return;

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

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

            case 13:
                this.allCaCountDown3 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 14:
                this.allCaCountDown4 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 15:
                this.allCaCountDown5 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 16:
                this.allCaCountDown6 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 17:
                this.getURLImage1 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 18:
                this.getURLImage2 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 19:
                this.getURLImage3 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 20:
                this.MouseRangeRect = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

            case 22:
                this.RecoHeightTB = ((System.Windows.Controls.TextBox)(target));
                return;

            case 23:
                this.BtnAutoSavelbl = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 24:
                this.scAuto = ((AutoShot.UserControls.ShortcutKey)(target));
                return;

            case 25:
                this.BtnAllCapturelbl = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 26:
                this.scAll = ((AutoShot.UserControls.ShortcutKey)(target));
                return;

            case 27:
                this.BtnSelCapturelbl = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 28:
                this.scSelect = ((AutoShot.UserControls.ShortcutKey)(target));
                return;

            case 29:
                this.BtnOpenSettinglbl = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 30:
                this.scSetting = ((AutoShot.UserControls.ShortcutKey)(target));
                return;

            case 31:
                this.BtnChangeEditorlbl = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 32:
                this.scEditMode = ((AutoShot.UserControls.ShortcutKey)(target));
                return;

            case 33:
                this.swStartupProgram = ((AutoShot.UserControls.Switch)(target));
                return;

            case 34:
                this.TBPtnCount = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 35:
                this.listView = ((System.Windows.Controls.ListView)(target));

            #line 240 "..\..\..\Windows\SettingWindow.xaml"
                this.listView.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listView_SelectionChanged);

            #line default
            #line hidden
                return;

            case 36:
                this.patternItem = ((AutoShot.UserControls.PatternItem)(target));
                return;

            case 37:
                this.patternItem_Copy = ((AutoShot.UserControls.PatternItem)(target));
                return;

            case 38:
                this.PtnAddBtn = ((System.Windows.Controls.Button)(target));

            #line 254 "..\..\..\Windows\SettingWindow.xaml"
                this.PtnAddBtn.Click += new System.Windows.RoutedEventHandler(this.PtnAddBtn_Click);

            #line default
            #line hidden
                return;

            case 39:
                this.PtnRemBtn = ((System.Windows.Controls.Button)(target));

            #line 255 "..\..\..\Windows\SettingWindow.xaml"
                this.PtnRemBtn.Click += new System.Windows.RoutedEventHandler(this.PtnRemBtn_Click);

            #line default
            #line hidden
                return;

            case 40:
                this.SettingGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 41:
                this.SWOpenEditor = ((AutoShot.UserControls.Switch)(target));
                return;

            case 42:
                this.BtnSetToDefaultPtn = ((System.Windows.Controls.Button)(target));

            #line 275 "..\..\..\Windows\SettingWindow.xaml"
                this.BtnSetToDefaultPtn.Click += new System.Windows.RoutedEventHandler(this.BtnSetToDefaultPtn_Click);

            #line default
            #line hidden
                return;

            case 43:
                this.SWOverwrite = ((AutoShot.UserControls.Switch)(target));
                return;

            case 44:
                this.SWSaveImm = ((AutoShot.UserControls.Switch)(target));
                return;

            case 45:
                this.TBPtnName = ((System.Windows.Controls.TextBox)(target));

            #line 293 "..\..\..\Windows\SettingWindow.xaml"
                this.TBPtnName.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TBPtnName_TextChanged);

            #line default
            #line hidden
                return;

            case 46:
                this.TBSaveLoc = ((System.Windows.Controls.TextBox)(target));

            #line 300 "..\..\..\Windows\SettingWindow.xaml"
                this.TBSaveLoc.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TBSaveLoc_TextChanged);

            #line default
            #line hidden
                return;

            case 47:
                this.NonSelGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 48:

            #line 366 "..\..\..\Windows\SettingWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 49:
                this.BtnShowLog = ((System.Windows.Controls.Button)(target));

            #line 371 "..\..\..\Windows\SettingWindow.xaml"
                this.BtnShowLog.Click += new System.Windows.RoutedEventHandler(this.BtnShowLog_Click);

            #line default
            #line hidden
                return;

            case 50:
                this.BtnReset = ((System.Windows.Controls.Button)(target));

            #line 389 "..\..\..\Windows\SettingWindow.xaml"
                this.BtnReset.Click += new System.Windows.RoutedEventHandler(this.BtnReset_Click);

            #line default
            #line hidden
                return;

            case 51:
                this.BtnCancel = ((System.Windows.Controls.Button)(target));

            #line 403 "..\..\..\Windows\SettingWindow.xaml"
                this.BtnCancel.Click += new System.Windows.RoutedEventHandler(this.BtnCancel_Click);

            #line default
            #line hidden
                return;

            case 52:
                this.BtnApply = ((System.Windows.Controls.Button)(target));

            #line 408 "..\..\..\Windows\SettingWindow.xaml"
                this.BtnApply.Click += new System.Windows.RoutedEventHandler(this.BtnApply_Click);

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