void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.frmEditor = ((Colourz.Windows.ThemeEditor)(target)); #line 8 "..\..\..\Windows\ThemeEditor.xaml" this.frmEditor.Closed += new System.EventHandler(this.frmEditor_Closed); #line default #line hidden return; case 2: this.grdEditor = ((System.Windows.Controls.Grid)(target)); return; case 3: this.recTitleBar = ((System.Windows.Shapes.Rectangle)(target)); #line 10 "..\..\..\Windows\ThemeEditor.xaml" this.recTitleBar.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.recTitleBar_MouseDown); #line default #line hidden return; case 4: this.lblTitle = ((System.Windows.Controls.TextBlock)(target)); #line 11 "..\..\..\Windows\ThemeEditor.xaml" this.lblTitle.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.lblTitle_MouseDown); #line default #line hidden return; case 5: this.cmdMinimize = ((System.Windows.Controls.Image)(target)); #line 12 "..\..\..\Windows\ThemeEditor.xaml" this.cmdMinimize.MouseEnter += new System.Windows.Input.MouseEventHandler(this.cmdMinimize_MouseEnter); #line default #line hidden #line 12 "..\..\..\Windows\ThemeEditor.xaml" this.cmdMinimize.MouseLeave += new System.Windows.Input.MouseEventHandler(this.cmdMinimize_MouseLeave); #line default #line hidden #line 12 "..\..\..\Windows\ThemeEditor.xaml" this.cmdMinimize.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.cmdMinimize_MouseDown); #line default #line hidden #line 12 "..\..\..\Windows\ThemeEditor.xaml" this.cmdMinimize.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.cmdMinimize_MouseUp); #line default #line hidden return; case 6: this.cmdExit = ((System.Windows.Controls.Image)(target)); #line 13 "..\..\..\Windows\ThemeEditor.xaml" this.cmdExit.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.cmdExit_MouseDown); #line default #line hidden #line 13 "..\..\..\Windows\ThemeEditor.xaml" this.cmdExit.MouseEnter += new System.Windows.Input.MouseEventHandler(this.cmdExit_MouseEnter); #line default #line hidden #line 13 "..\..\..\Windows\ThemeEditor.xaml" this.cmdExit.MouseLeave += new System.Windows.Input.MouseEventHandler(this.cmdExit_MouseLeave); #line default #line hidden #line 13 "..\..\..\Windows\ThemeEditor.xaml" this.cmdExit.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.cmdExit_MouseUp); #line default #line hidden return; case 7: this.imgWolfbyte = ((System.Windows.Controls.Image)(target)); #line 14 "..\..\..\Windows\ThemeEditor.xaml" this.imgWolfbyte.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.imgWolfbyte_MouseDown); #line default #line hidden #line 14 "..\..\..\Windows\ThemeEditor.xaml" this.imgWolfbyte.MouseEnter += new System.Windows.Input.MouseEventHandler(this.wolfbyteEnter); #line default #line hidden #line 14 "..\..\..\Windows\ThemeEditor.xaml" this.imgWolfbyte.MouseLeave += new System.Windows.Input.MouseEventHandler(this.wolfbyteLeave); #line default #line hidden return; case 8: this.txtWolfbyte = ((System.Windows.Controls.TextBlock)(target)); #line 15 "..\..\..\Windows\ThemeEditor.xaml" this.txtWolfbyte.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.txtWolfbyte_MouseDown); #line default #line hidden #line 15 "..\..\..\Windows\ThemeEditor.xaml" this.txtWolfbyte.MouseEnter += new System.Windows.Input.MouseEventHandler(this.wolfbyteEnter); #line default #line hidden #line 15 "..\..\..\Windows\ThemeEditor.xaml" this.txtWolfbyte.MouseLeave += new System.Windows.Input.MouseEventHandler(this.wolfbyteLeave); #line default #line hidden return; case 9: this.recWorkspace = ((System.Windows.Shapes.Rectangle)(target)); return; case 10: this.lblThemeName = ((System.Windows.Controls.TextBlock)(target)); return; case 11: this.txtName = ((System.Windows.Controls.TextBox)(target)); return; case 12: this.lblTitleColour = ((System.Windows.Controls.TextBlock)(target)); return; case 13: this.txtTitleColour = ((System.Windows.Controls.TextBox)(target)); #line 20 "..\..\..\Windows\ThemeEditor.xaml" this.txtTitleColour.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtTitleColour_TextChanged); #line default #line hidden #line 20 "..\..\..\Windows\ThemeEditor.xaml" this.txtTitleColour.GotFocus += new System.Windows.RoutedEventHandler(this.txtTitleColour_GotFocus); #line default #line hidden return; case 14: this.recTitleColour = ((System.Windows.Shapes.Rectangle)(target)); return; case 15: this.lblTextColour = ((System.Windows.Controls.TextBlock)(target)); return; case 16: this.txtTextColourDefault = ((System.Windows.Controls.TextBox)(target)); #line 23 "..\..\..\Windows\ThemeEditor.xaml" this.txtTextColourDefault.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtTextColourDefault_TextChanged); #line default #line hidden #line 23 "..\..\..\Windows\ThemeEditor.xaml" this.txtTextColourDefault.GotFocus += new System.Windows.RoutedEventHandler(this.txtTextColourDefault_GotFocus); #line default #line hidden return; case 17: this.recTextColourDefault = ((System.Windows.Shapes.Rectangle)(target)); return; case 18: this.lblTextColourHover = ((System.Windows.Controls.TextBlock)(target)); return; case 19: this.txtTextColourHover = ((System.Windows.Controls.TextBox)(target)); #line 26 "..\..\..\Windows\ThemeEditor.xaml" this.txtTextColourHover.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtTextColourHover_TextChanged); #line default #line hidden #line 26 "..\..\..\Windows\ThemeEditor.xaml" this.txtTextColourHover.GotFocus += new System.Windows.RoutedEventHandler(this.txtTextColourHover_GotFocus); #line default #line hidden return; case 20: this.recTextColourHover = ((System.Windows.Shapes.Rectangle)(target)); return; case 21: this.lblLeftPanel = ((System.Windows.Controls.TextBlock)(target)); return; case 22: this.txtLeftPanel = ((System.Windows.Controls.TextBox)(target)); #line 29 "..\..\..\Windows\ThemeEditor.xaml" this.txtLeftPanel.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtLeftPanel_TextChanged); #line default #line hidden #line 29 "..\..\..\Windows\ThemeEditor.xaml" this.txtLeftPanel.GotFocus += new System.Windows.RoutedEventHandler(this.txtLeftPanel_GotFocus); #line default #line hidden return; case 23: this.recLeftPanelColour = ((System.Windows.Shapes.Rectangle)(target)); return; case 24: this.lblTitleBar = ((System.Windows.Controls.TextBlock)(target)); return; case 25: this.txtTitleBar = ((System.Windows.Controls.TextBox)(target)); #line 32 "..\..\..\Windows\ThemeEditor.xaml" this.txtTitleBar.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtTitleBar_TextChanged); #line default #line hidden #line 32 "..\..\..\Windows\ThemeEditor.xaml" this.txtTitleBar.GotFocus += new System.Windows.RoutedEventHandler(this.txtTitleBar_GotFocus); #line default #line hidden return; case 26: this.recTitleBarColour = ((System.Windows.Shapes.Rectangle)(target)); return; case 27: this.lblBackgroundColour = ((System.Windows.Controls.TextBlock)(target)); return; case 28: this.txtBackgroundColour = ((System.Windows.Controls.TextBox)(target)); #line 35 "..\..\..\Windows\ThemeEditor.xaml" this.txtBackgroundColour.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtBackgroundColour_TextChanged); #line default #line hidden #line 35 "..\..\..\Windows\ThemeEditor.xaml" this.txtBackgroundColour.GotFocus += new System.Windows.RoutedEventHandler(this.txtBackgroundColour_GotFocus); #line default #line hidden return; case 29: this.recBackgroundColour = ((System.Windows.Shapes.Rectangle)(target)); return; case 30: this.lblSeperatorColour = ((System.Windows.Controls.TextBlock)(target)); return; case 31: this.txtSeperatorColour = ((System.Windows.Controls.TextBox)(target)); #line 38 "..\..\..\Windows\ThemeEditor.xaml" this.txtSeperatorColour.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtSeperatorColour_TextChanged); #line default #line hidden #line 38 "..\..\..\Windows\ThemeEditor.xaml" this.txtSeperatorColour.GotFocus += new System.Windows.RoutedEventHandler(this.txtSeperatorColour_GotFocus); #line default #line hidden return; case 32: this.recSeperatorColour = ((System.Windows.Shapes.Rectangle)(target)); return; case 33: this.lblTab = ((System.Windows.Controls.TextBlock)(target)); return; case 34: this.txtTab = ((System.Windows.Controls.TextBox)(target)); #line 41 "..\..\..\Windows\ThemeEditor.xaml" this.txtTab.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtTab_TextChanged); #line default #line hidden #line 41 "..\..\..\Windows\ThemeEditor.xaml" this.txtTab.GotFocus += new System.Windows.RoutedEventHandler(this.txtTab_GotFocus); #line default #line hidden return; case 35: this.recTab = ((System.Windows.Shapes.Rectangle)(target)); return; case 36: this.lblScrollables = ((System.Windows.Controls.TextBlock)(target)); return; case 37: this.txtScrollables = ((System.Windows.Controls.TextBox)(target)); #line 44 "..\..\..\Windows\ThemeEditor.xaml" this.txtScrollables.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtScrollables_TextChanged); #line default #line hidden #line 44 "..\..\..\Windows\ThemeEditor.xaml" this.txtScrollables.GotFocus += new System.Windows.RoutedEventHandler(this.txtScrollables_GotFocus); #line default #line hidden return; case 38: this.recScrollables = ((System.Windows.Shapes.Rectangle)(target)); return; case 39: this.txtScrollablesHover = ((System.Windows.Controls.TextBox)(target)); #line 46 "..\..\..\Windows\ThemeEditor.xaml" this.txtScrollablesHover.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtScrollablesHover_TextChanged); #line default #line hidden #line 46 "..\..\..\Windows\ThemeEditor.xaml" this.txtScrollablesHover.GotFocus += new System.Windows.RoutedEventHandler(this.txtScrollablesHover_GotFocus); #line default #line hidden return; case 40: this.recScrollablesHover = ((System.Windows.Shapes.Rectangle)(target)); return; case 41: this.lblScrollablesHover = ((System.Windows.Controls.TextBlock)(target)); return; case 42: this.lblSliderKnob = ((System.Windows.Controls.TextBlock)(target)); return; case 43: this.txtSliderKnob = ((System.Windows.Controls.TextBox)(target)); #line 50 "..\..\..\Windows\ThemeEditor.xaml" this.txtSliderKnob.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtSliderKnob_TextChanged); #line default #line hidden #line 50 "..\..\..\Windows\ThemeEditor.xaml" this.txtSliderKnob.GotFocus += new System.Windows.RoutedEventHandler(this.txtSliderKnob_GotFocus); #line default #line hidden return; case 44: this.recSliderKnob = ((System.Windows.Shapes.Rectangle)(target)); return; case 45: this.lblSliderRight = ((System.Windows.Controls.TextBlock)(target)); return; case 46: this.txtSliderRight = ((System.Windows.Controls.TextBox)(target)); #line 53 "..\..\..\Windows\ThemeEditor.xaml" this.txtSliderRight.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtSliderRight_TextChanged); #line default #line hidden #line 53 "..\..\..\Windows\ThemeEditor.xaml" this.txtSliderRight.GotFocus += new System.Windows.RoutedEventHandler(this.txtSliderRight_GotFocus); #line default #line hidden return; case 47: this.recSliderRight = ((System.Windows.Shapes.Rectangle)(target)); return; case 48: this.recBackgroundCol = ((System.Windows.Shapes.Rectangle)(target)); return; case 49: this.recRightSide = ((System.Windows.Shapes.Rectangle)(target)); return; case 50: this.recValue = ((System.Windows.Shapes.Rectangle)(target)); return; case 51: this.recSldKnob = ((System.Windows.Shapes.Rectangle)(target)); return; case 52: this.recTitleBarCol = ((System.Windows.Shapes.Rectangle)(target)); return; case 53: this.lblTitleCol = ((System.Windows.Controls.TextBlock)(target)); #line 63 "..\..\..\Windows\ThemeEditor.xaml" this.lblTitleCol.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.lblTitle_MouseDown); #line default #line hidden return; case 54: this.recTabPanelCol = ((System.Windows.Shapes.Rectangle)(target)); return; case 55: this.recTabSelectedCol = ((System.Windows.Shapes.Rectangle)(target)); return; case 56: this.lblTextColHover = ((System.Windows.Controls.TextBlock)(target)); #line 66 "..\..\..\Windows\ThemeEditor.xaml" this.lblTextColHover.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.lblTitle_MouseDown); #line default #line hidden return; case 57: this.lblTextNormalCol = ((System.Windows.Controls.TextBlock)(target)); #line 67 "..\..\..\Windows\ThemeEditor.xaml" this.lblTextNormalCol.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.lblTitle_MouseDown); #line default #line hidden return; case 58: this.recSeperatorsCol = ((System.Windows.Shapes.Rectangle)(target)); return; case 59: this.recScrollablesCol = ((System.Windows.Shapes.Rectangle)(target)); return; case 60: this.recScrollableTwo = ((System.Windows.Controls.TextBlock)(target)); return; case 61: this.recScrollableHoverCol = ((System.Windows.Controls.TextBlock)(target)); return; case 62: this.recSeperatorCol = ((System.Windows.Shapes.Rectangle)(target)); return; case 63: this.recTitleCol = ((System.Windows.Shapes.Rectangle)(target)); return; case 64: this.recScrollablesTwoCol = ((System.Windows.Shapes.Rectangle)(target)); return; case 65: this.recNormalTextCol = ((System.Windows.Shapes.Rectangle)(target)); return; case 66: this.cmdList = ((System.Windows.Controls.ComboBox)(target)); return; case 67: this.btnLoad = ((System.Windows.Controls.Button)(target)); #line 79 "..\..\..\Windows\ThemeEditor.xaml" this.btnLoad.Click += new System.Windows.RoutedEventHandler(this.btnLoad_Click); #line default #line hidden return; case 68: this.btnSave = ((System.Windows.Controls.Button)(target)); #line 80 "..\..\..\Windows\ThemeEditor.xaml" this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click); #line default #line hidden return; case 69: this.btnDelete = ((System.Windows.Controls.Button)(target)); #line 81 "..\..\..\Windows\ThemeEditor.xaml" this.btnDelete.Click += new System.Windows.RoutedEventHandler(this.btnDelete_Click); #line default #line hidden return; case 70: this.btnImportTheme = ((System.Windows.Controls.Button)(target)); #line 82 "..\..\..\Windows\ThemeEditor.xaml" this.btnImportTheme.Click += new System.Windows.RoutedEventHandler(this.btnImportTheme_Click); #line default #line hidden return; case 71: this.btnExportTheme = ((System.Windows.Controls.Button)(target)); #line 83 "..\..\..\Windows\ThemeEditor.xaml" this.btnExportTheme.Click += new System.Windows.RoutedEventHandler(this.btnExportTheme_Click); #line default #line hidden return; case 72: this.lblAlert = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
private void cmdThemeEditor_Click(object sender, RoutedEventArgs e) { if(ThemeEditor.windowShowing) { return; } ThemeEditor themeEditor = new ThemeEditor(this); themeEditor.populate(theme.themes); themeEditor.Show(); }