Пример #1
0
        private void button_Calc2_Click(object sender, RoutedEventArgs e)
        {
            Calc2 calc2_start = new Calc2();

            calc2_start.Show();
            //this.Close();
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Calculator = ((WPF_LAUNCHER.Calc2)(target));
                return;

            case 2:
                this.result = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.logo = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.textBox = ((System.Windows.Controls.TextBox)(target));

            #line 12 "..\..\Calc2.xaml"
                this.textBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TextBox_PreviewTextInput);

            #line default
            #line hidden

            #line 12 "..\..\Calc2.xaml"
                this.textBox.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.TextBox_PreviewKeyDown);

            #line default
            #line hidden
                return;

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

            #line 13 "..\..\Calc2.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);

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