Example #1
0
        private void button_sap_Click(object sender, RoutedEventArgs e)
        {
            SapperMain sap = new SapperMain();

            sap.Show();
            //this.Close();
        }
Example #2
0
 public SapperMain()
 {
     InitializeComponent();
     label_title.HorizontalContentAlignment = HorizontalAlignment.Center;
     label_title.VerticalContentAlignment   = VerticalAlignment.Center;
     MW = this;
 }
Example #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Сапёр = ((WPF_LAUNCHER.SapperMain)(target));
                return;

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

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

            #line 11 "..\..\Sapper.xaml"
                this.button_easy.Click += new System.Windows.RoutedEventHandler(this.Choise_difficulty);

            #line default
            #line hidden
                return;

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

            #line 12 "..\..\Sapper.xaml"
                this.button_medium.Click += new System.Windows.RoutedEventHandler(this.Choise_difficulty);

            #line default
            #line hidden
                return;

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

            #line 13 "..\..\Sapper.xaml"
                this.button_hard.Click += new System.Windows.RoutedEventHandler(this.Choise_difficulty);

            #line default
            #line hidden
                return;

            case 6:
                this.label_title = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.image_1 = ((System.Windows.Controls.Image)(target));
                return;

            case 8:
                this.image_2 = ((System.Windows.Controls.Image)(target));
                return;

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

            case 10:
                this.image_4 = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }