Exemplo n.º 1
0
        private void GoToOptions(object sender, RoutedEventArgs e)
        {
            if (Globals.AnimationsNow.Count != 0)
            {
                return;
            }
            OptionsWindow optionsWindow = new OptionsWindow();

            optionsWindow.ShowDialog();
        }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.myWindow = ((Graph_Editor.OptionsWindow)(target));

            #line 8 "..\..\OptionsWindow.xaml"
                this.myWindow.Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.MainWindow = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.ThemeButton = ((System.Windows.Controls.Button)(target));

            #line 51 "..\..\OptionsWindow.xaml"
                this.ThemeButton.Click += new System.Windows.RoutedEventHandler(this.ChooseThemeMenu);

            #line default
            #line hidden
                return;

            case 4:
                this.VertexEdgeButton = ((System.Windows.Controls.Button)(target));

            #line 54 "..\..\OptionsWindow.xaml"
                this.VertexEdgeButton.Click += new System.Windows.RoutedEventHandler(this.ChooseVertex_Edge_Menu);

            #line default
            #line hidden
                return;

            case 5:
                this.AnimationButton = ((System.Windows.Controls.Button)(target));

            #line 57 "..\..\OptionsWindow.xaml"
                this.AnimationButton.Click += new System.Windows.RoutedEventHandler(this.ChooseAnimationMenu);

            #line default
            #line hidden
                return;

            case 6:
                this.logo = ((System.Windows.Controls.Image)(target));
                return;

            case 7:
                this.ThemeGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.IceTheme = ((System.Windows.Controls.Button)(target));

            #line 64 "..\..\OptionsWindow.xaml"
                this.IceTheme.Click += new System.Windows.RoutedEventHandler(this.LightTheme_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.IceImage = ((System.Windows.Controls.Image)(target));
                return;

            case 10:
                this.VulcanTheme = ((System.Windows.Controls.Button)(target));

            #line 68 "..\..\OptionsWindow.xaml"
                this.VulcanTheme.Click += new System.Windows.RoutedEventHandler(this.DarkTheme_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.VolcanoImage = ((System.Windows.Controls.Image)(target));
                return;

            case 12:
                this.ThemeOkButton = ((System.Windows.Controls.Button)(target));

            #line 72 "..\..\OptionsWindow.xaml"
                this.ThemeOkButton.Click += new System.Windows.RoutedEventHandler(this.ThemeOK_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.ThemeCloseButton = ((System.Windows.Controls.Button)(target));

            #line 73 "..\..\OptionsWindow.xaml"
                this.ThemeCloseButton.Click += new System.Windows.RoutedEventHandler(this.Exit);

            #line default
            #line hidden
                return;

            case 14:
                this.VertexEdgeGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 15:
                this.changeVertexColorToolBar = ((System.Windows.Controls.ToolBar)(target));
                return;

            case 16:
                this.changeEdgeColorToolBar = ((System.Windows.Controls.ToolBar)(target));
                return;

            case 17:
                this.VEReset = ((System.Windows.Controls.Button)(target));

            #line 84 "..\..\OptionsWindow.xaml"
                this.VEReset.Click += new System.Windows.RoutedEventHandler(this.Reset_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.VECheck = ((System.Windows.Controls.Button)(target));

            #line 85 "..\..\OptionsWindow.xaml"
                this.VECheck.Click += new System.Windows.RoutedEventHandler(this.Check_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.VEOkButton = ((System.Windows.Controls.Button)(target));

            #line 87 "..\..\OptionsWindow.xaml"
                this.VEOkButton.Click += new System.Windows.RoutedEventHandler(this.OK_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.VECloseButton = ((System.Windows.Controls.Button)(target));

            #line 88 "..\..\OptionsWindow.xaml"
                this.VECloseButton.Click += new System.Windows.RoutedEventHandler(this.Exit);

            #line default
            #line hidden
                return;

            case 21:
                this.exampleCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 22:
                this.AnimationGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 23:
                this.Slow = ((System.Windows.Controls.Button)(target));

            #line 94 "..\..\OptionsWindow.xaml"
                this.Slow.Click += new System.Windows.RoutedEventHandler(this.ChooseSlowAnimation);

            #line default
            #line hidden
                return;

            case 24:
                this.Medium = ((System.Windows.Controls.Button)(target));

            #line 95 "..\..\OptionsWindow.xaml"
                this.Medium.Click += new System.Windows.RoutedEventHandler(this.ChooseMediumAnimation);

            #line default
            #line hidden
                return;

            case 25:
                this.Fast = ((System.Windows.Controls.Button)(target));

            #line 96 "..\..\OptionsWindow.xaml"
                this.Fast.Click += new System.Windows.RoutedEventHandler(this.ChooseFastAnimation);

            #line default
            #line hidden
                return;

            case 26:
                this.VeryFast = ((System.Windows.Controls.Button)(target));

            #line 97 "..\..\OptionsWindow.xaml"
                this.VeryFast.Click += new System.Windows.RoutedEventHandler(this.ChooseVeryFastAnimation);

            #line default
            #line hidden
                return;

            case 27:
                this.orbBlue = ((System.Windows.Controls.Button)(target));

            #line 101 "..\..\OptionsWindow.xaml"
                this.orbBlue.Click += new System.Windows.RoutedEventHandler(this.ChangeBallColorButton_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.orbYellow = ((System.Windows.Controls.Button)(target));

            #line 102 "..\..\OptionsWindow.xaml"
                this.orbYellow.Click += new System.Windows.RoutedEventHandler(this.ChangeBallColorButton_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.orbGreen = ((System.Windows.Controls.Button)(target));

            #line 103 "..\..\OptionsWindow.xaml"
                this.orbGreen.Click += new System.Windows.RoutedEventHandler(this.ChangeBallColorButton_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.orbBlack = ((System.Windows.Controls.Button)(target));

            #line 104 "..\..\OptionsWindow.xaml"
                this.orbBlack.Click += new System.Windows.RoutedEventHandler(this.ChangeBallColorButton_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.orbRed = ((System.Windows.Controls.Button)(target));

            #line 105 "..\..\OptionsWindow.xaml"
                this.orbRed.Click += new System.Windows.RoutedEventHandler(this.ChangeBallColorButton_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.AnimReset = ((System.Windows.Controls.Button)(target));

            #line 107 "..\..\OptionsWindow.xaml"
                this.AnimReset.Click += new System.Windows.RoutedEventHandler(this.ResetAnimationColor_Click);

            #line default
            #line hidden
                return;

            case 33:
                this.SpeedSlider = ((System.Windows.Controls.Slider)(target));

            #line 112 "..\..\OptionsWindow.xaml"
                this.SpeedSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged);

            #line default
            #line hidden
                return;

            case 34:
                this.TextBox_Speed = ((System.Windows.Controls.TextBox)(target));

            #line 121 "..\..\OptionsWindow.xaml"
                this.TextBox_Speed.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_Speed_TextChanged);

            #line default
            #line hidden
                return;

            case 35:
                this.AnimOkButton = ((System.Windows.Controls.Button)(target));

            #line 124 "..\..\OptionsWindow.xaml"
                this.AnimOkButton.Click += new System.Windows.RoutedEventHandler(this.animationOK_Click);

            #line default
            #line hidden
                return;

            case 36:
                this.AnimCloseButton = ((System.Windows.Controls.Button)(target));

            #line 125 "..\..\OptionsWindow.xaml"
                this.AnimCloseButton.Click += new System.Windows.RoutedEventHandler(this.Exit);

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