public static void OnPrimaryButtonImagePathChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ToggleMemoryButton button = d as ToggleMemoryButton;

            if (button != null)
            {
                button._button.ImagePath = (string)e.NewValue;
            }
        }
        public static void OnCurrentIndexChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ToggleMemoryButton button = d as ToggleMemoryButton;

            if (button != null)
            {
                button._label.Content = String.Format(button.DisplayFormat, button.CurrentIndex + 1) + (button.CurrentIndex < 1 ? "" : "s");
                button._selectAll((int)e.NewValue);
            }
        }
Example #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this._menuItemNewProject = ((System.Windows.Controls.MenuItem)(target));

            #line 22 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemNewProject.Click += new System.Windows.RoutedEventHandler(this._menuItemNewProject_Click);

            #line default
            #line hidden
                return;

            case 2:
                this._menuItemProjectLoadAs = ((System.Windows.Controls.MenuItem)(target));

            #line 23 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemProjectLoadAs.Click += new System.Windows.RoutedEventHandler(this._menuItemProjectLoadAs_Click);

            #line default
            #line hidden
                return;

            case 3:
                this._menuItemProjectSaveAs = ((System.Windows.Controls.MenuItem)(target));

            #line 24 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemProjectSaveAs.Click += new System.Windows.RoutedEventHandler(this._menuItemProjectSaveAs_Click);

            #line default
            #line hidden
                return;

            case 4:
                this._menuItemDatabaseSave = ((System.Windows.Controls.MenuItem)(target));

            #line 25 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemDatabaseSave.Click += new System.Windows.RoutedEventHandler(this._menuItemDatabaseSave_Click);

            #line default
            #line hidden
                return;

            case 5:
                this._menuItemExportDbCurrent = ((System.Windows.Controls.MenuItem)(target));

            #line 28 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemExportDbCurrent.Click += new System.Windows.RoutedEventHandler(this._menuItemExportDbCurrent_Click);

            #line default
            #line hidden
                return;

            case 6:
                this._menuItemExportRaRenewal = ((System.Windows.Controls.MenuItem)(target));

            #line 30 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemExportRaRenewal.Click += new System.Windows.RoutedEventHandler(this._menuItemExportRaRenewal_Click);

            #line default
            #line hidden
                return;

            case 7:
                this._menuItemExportRaPreRenewal = ((System.Windows.Controls.MenuItem)(target));

            #line 31 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemExportRaPreRenewal.Click += new System.Windows.RoutedEventHandler(this._menuItemExportRaPreRenewal_Click);

            #line default
            #line hidden
                return;

            case 8:
                this._menuItemExportHercRenewal = ((System.Windows.Controls.MenuItem)(target));

            #line 34 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemExportHercRenewal.Click += new System.Windows.RoutedEventHandler(this._menuItemExportHercRenewal_Click);

            #line default
            #line hidden
                return;

            case 9:
                this._menuItemExportHercPreRenewal = ((System.Windows.Controls.MenuItem)(target));

            #line 35 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemExportHercPreRenewal.Click += new System.Windows.RoutedEventHandler(this._menuItemExportHercPreRenewal_Click);

            #line default
            #line hidden
                return;

            case 10:
                this._menuItemExportSqlCurrent = ((System.Windows.Controls.MenuItem)(target));

            #line 39 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemExportSqlCurrent.Click += new System.Windows.RoutedEventHandler(this._menuItemExportSqlCurrent_Click);

            #line default
            #line hidden
                return;

            case 11:
                this._menuItemExportSqlRaRenewal = ((System.Windows.Controls.MenuItem)(target));

            #line 41 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemExportSqlRaRenewal.Click += new System.Windows.RoutedEventHandler(this._menuItemExportSqlRaRenewal_Click);

            #line default
            #line hidden
                return;

            case 12:
                this._menuItemExportSqlRaPreRenewal = ((System.Windows.Controls.MenuItem)(target));

            #line 42 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemExportSqlRaPreRenewal.Click += new System.Windows.RoutedEventHandler(this._menuItemExportSqlRaPreRenewal_Click);

            #line default
            #line hidden
                return;

            case 13:
                this._menuItemExportSqlHercRenewal = ((System.Windows.Controls.MenuItem)(target));

            #line 45 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemExportSqlHercRenewal.Click += new System.Windows.RoutedEventHandler(this._menuItemExportSqlHercRenewal_Click);

            #line default
            #line hidden
                return;

            case 14:
                this._menuItemExportSqlHercPreRenewal = ((System.Windows.Controls.MenuItem)(target));

            #line 46 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemExportSqlHercPreRenewal.Click += new System.Windows.RoutedEventHandler(this._menuItemExportSqlHercPreRenewal_Click);

            #line default
            #line hidden
                return;

            case 15:
                this._menuItemConvertClientDbToTxt = ((TokeiLibrary.WPF.Styles.TkMenuItem)(target));

            #line 51 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemConvertClientDbToTxt.Click += new System.Windows.RoutedEventHandler(this._menuItemConvertClientDbToTxt_Click);

            #line default
            #line hidden
                return;

            case 16:
                this._menuItemConvertClientDbToLua = ((TokeiLibrary.WPF.Styles.TkMenuItem)(target));

            #line 52 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemConvertClientDbToLua.Click += new System.Windows.RoutedEventHandler(this._menuItemConvertClientDbToLua_Click);

            #line default
            #line hidden
                return;

            case 17:
                this._menuItemRecentProjects = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 18:
                this._menuItemAbout = ((System.Windows.Controls.MenuItem)(target));

            #line 58 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemAbout.Click += new System.Windows.RoutedEventHandler(this._menuItemAbout_Click);

            #line default
            #line hidden
                return;

            case 19:
                this._menuItemClose = ((System.Windows.Controls.MenuItem)(target));

            #line 59 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemClose.Click += new System.Windows.RoutedEventHandler(this._menuItemClose_Click);

            #line default
            #line hidden
                return;

            case 20:
                this._menuItemReload = ((System.Windows.Controls.MenuItem)(target));

            #line 65 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemReload.Click += new System.Windows.RoutedEventHandler(this._menuItemReloadDatabase_Click);

            #line default
            #line hidden
                return;

            case 21:
                this._menuItemReplaceAll = ((System.Windows.Controls.MenuItem)(target));

            #line 66 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemReplaceAll.Click += new System.Windows.RoutedEventHandler(this._menuItemReplaceAll_Click);

            #line default
            #line hidden
                return;

            case 22:
                this._menuItemCopyAll = ((System.Windows.Controls.MenuItem)(target));

            #line 67 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemCopyAll.Click += new System.Windows.RoutedEventHandler(this._menuItemCopyAll_Click);

            #line default
            #line hidden
                return;

            case 23:

            #line 69 "..\..\..\..\View\SdeEditor.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this._tbmUndo_Click);

            #line default
            #line hidden
                return;

            case 24:

            #line 70 "..\..\..\..\View\SdeEditor.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this._tbmRedo_Click);

            #line default
            #line hidden
                return;

            case 25:

            #line 71 "..\..\..\..\View\SdeEditor.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this._tnbUndo_Click);

            #line default
            #line hidden
                return;

            case 26:

            #line 72 "..\..\..\..\View\SdeEditor.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this._tnbRedo_Click);

            #line default
            #line hidden
                return;

            case 27:
                this._menuItemAddItem = ((System.Windows.Controls.MenuItem)(target));

            #line 74 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemAddItem.Click += new System.Windows.RoutedEventHandler(this._menuItemAddItem_Click);

            #line default
            #line hidden
                return;

            case 28:
                this._menuItemAddItemRage = ((TokeiLibrary.WPF.Styles.TkMenuItem)(target));

            #line 75 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemAddItemRage.Click += new System.Windows.RoutedEventHandler(this._menuItemAddItemRage_Click);

            #line default
            #line hidden
                return;

            case 29:
                this._menuItemAddItemRaw = ((System.Windows.Controls.MenuItem)(target));

            #line 76 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemAddItemRaw.Click += new System.Windows.RoutedEventHandler(this._menuItemAddItemRaw_Click);

            #line default
            #line hidden
                return;

            case 30:
                this._menuItemChangeId = ((System.Windows.Controls.MenuItem)(target));

            #line 77 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemChangeId.Click += new System.Windows.RoutedEventHandler(this._menuItemChangeId_Click);

            #line default
            #line hidden
                return;

            case 31:
                this._menuItemCopyItemTo = ((System.Windows.Controls.MenuItem)(target));

            #line 78 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemCopyItemTo.Click += new System.Windows.RoutedEventHandler(this._menuItemCopyItemTo_Click);

            #line default
            #line hidden
                return;

            case 32:
                this._menuItemDeleteItem = ((System.Windows.Controls.MenuItem)(target));

            #line 79 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemDeleteItem.Click += new System.Windows.RoutedEventHandler(this._menuItemDeleteItem_Click);

            #line default
            #line hidden
                return;

            case 33:
                this._menuItemReplaceFromFile = ((System.Windows.Controls.MenuItem)(target));

            #line 85 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemReplaceFromFile.Click += new System.Windows.RoutedEventHandler(this._menuItemReplaceFromFile_Click);

            #line default
            #line hidden
                return;

            case 34:
                this._menuItemImportFromFile = ((System.Windows.Controls.MenuItem)(target));

            #line 86 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemImportFromFile.Click += new System.Windows.RoutedEventHandler(this._menuItemImportFromFile_Click);

            #line default
            #line hidden
                return;

            case 35:
                this._menuItemExportTradeRestrictions = ((System.Windows.Controls.MenuItem)(target));

            #line 89 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemExportTradeRestrictions.Click += new System.Windows.RoutedEventHandler(this._menuItemExportTradeRestrictions_Click);

            #line default
            #line hidden
                return;

            case 36:
                this._menuItemUpdateClientQuests = ((System.Windows.Controls.MenuItem)(target));

            #line 92 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemUpdateClientQuests.Click += new System.Windows.RoutedEventHandler(this._menuItemUpdateClientQuests_Click);

            #line default
            #line hidden
                return;

            case 37:
                this._menuItemEditLuaSettings = ((System.Windows.Controls.MenuItem)(target));

            #line 96 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemEditLuaSettings.Click += new System.Windows.RoutedEventHandler(this._menuItemEditLuaSettings_Click);

            #line default
            #line hidden
                return;

            case 38:
                this._menuItemEditAccTables = ((System.Windows.Controls.MenuItem)(target));

            #line 97 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemEditAccTables.Click += new System.Windows.RoutedEventHandler(this._menuItemEditAccTables_Click);

            #line default
            #line hidden
                return;

            case 39:
                this._menuItemValidate = ((System.Windows.Controls.MenuItem)(target));

            #line 98 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemValidate.Click += new System.Windows.RoutedEventHandler(this._menuItemValidate_Click);

            #line default
            #line hidden
                return;

            case 40:
                this._menuItemScript = ((System.Windows.Controls.MenuItem)(target));

            #line 104 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemScript.Click += new System.Windows.RoutedEventHandler(this._menuItemScript_Click);

            #line default
            #line hidden
                return;

            case 41:
                this._menuItemBackups = ((System.Windows.Controls.MenuItem)(target));

            #line 106 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemBackups.Click += new System.Windows.RoutedEventHandler(this._menuItemBackups_Click);

            #line default
            #line hidden
                return;

            case 42:
                this._menuItemShopSimulator = ((System.Windows.Controls.MenuItem)(target));

            #line 108 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemShopSimulator.Click += new System.Windows.RoutedEventHandler(this._menuItemShopSimulator_Click);

            #line default
            #line hidden
                return;

            case 43:
                this._menuItemDebugTables = ((System.Windows.Controls.MenuItem)(target));

            #line 109 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemDebugTables.Click += new System.Windows.RoutedEventHandler(this._menuItemDebugTables_Click);

            #line default
            #line hidden
                return;

            case 44:
                this._menuItemSettings = ((System.Windows.Controls.MenuItem)(target));

            #line 111 "..\..\..\..\View\SdeEditor.xaml"
                this._menuItemSettings.Click += new System.Windows.RoutedEventHandler(this._menuItemSettings_Click);

            #line default
            #line hidden
                return;

            case 45:
                this._tmbUndo = ((SDE.View.Controls.ToggleMemoryButton)(target));
                return;

            case 46:
                this._tmbRedo = ((SDE.View.Controls.ToggleMemoryButton)(target));
                return;

            case 47:
                this._tnbUndo = ((SDE.View.Controls.ToggleMemoryButton)(target));
                return;

            case 48:
                this._tnbRedo = ((SDE.View.Controls.ToggleMemoryButton)(target));
                return;

            case 49:
                this._progressBar = ((TokeiLibrary.WPF.Styles.TkProgressBar)(target));
                return;

            case 50:
                this._mainTabControl = ((System.Windows.Controls.TabControl)(target));

            #line 123 "..\..\..\..\View\SdeEditor.xaml"
                this._mainTabControl.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this._mainTabControl_SelectionChanged);

            #line default
            #line hidden
                return;

            case 51:
                this._comboBoxEncoding = ((GrfToWpfBridge.Application.EncodingPicker)(target));
                return;

            case 52:
                this._comboBoxEncodingServer = ((GrfToWpfBridge.Application.EncodingPicker)(target));
                return;

            case 53:
                this._metaGrfViewer = ((GrfToWpfBridge.MultiGrf.MetaGrfResourcesViewer)(target));
                return;

            case 54:
                this._gridTextFilesSettings = ((System.Windows.Controls.Grid)(target));
                return;

            case 55:
                this._spPaths = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 56:
                this._cbClientDbSync = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 57:
                this._cbUseLuaFiles = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 58:
                this._buttonLuaSettings = ((System.Windows.Controls.Button)(target));

            #line 184 "..\..\..\..\View\SdeEditor.xaml"
                this._buttonLuaSettings.Click += new System.Windows.RoutedEventHandler(this._menuItemEditLuaSettings_Click);

            #line default
            #line hidden
                return;

            case 59:
                this._gridTextFilesSettingsClient = ((System.Windows.Controls.Grid)(target));
                return;

            case 60:
                this._listItemClientTxtFiles = ((System.Windows.Controls.ListView)(target));
                return;

            case 61:
                this._listItemClientLuaFiles = ((System.Windows.Controls.ListView)(target));
                return;

            case 62:
                this._debugList = ((System.Windows.Controls.ListView)(target));
                return;

            case 63:
                this._miOpenNotepad = ((System.Windows.Controls.MenuItem)(target));

            #line 253 "..\..\..\..\View\SdeEditor.xaml"
                this._miOpenNotepad.Click += new System.Windows.RoutedEventHandler(this._miOpenNotepad_Click);

            #line default
            #line hidden
                return;

            case 64:
                this._miOpen = ((System.Windows.Controls.MenuItem)(target));

            #line 254 "..\..\..\..\View\SdeEditor.xaml"
                this._miOpen.Click += new System.Windows.RoutedEventHandler(this._miOpen_Click);

            #line default
            #line hidden
                return;

            case 65:
                this._miCopy = ((System.Windows.Controls.MenuItem)(target));

            #line 255 "..\..\..\..\View\SdeEditor.xaml"
                this._miCopy.Click += new System.Windows.RoutedEventHandler(this._miCopy_Click);

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