Ejemplo n.º 1
0
 public static void Main(string[] args)
 {
     Application.Init ();
     MainWindow win = new MainWindow ();
     win.Show ();
     Application.Run ();
 }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Calculadora = ((Calculadora.MainWindow)(target));
                return;

            case 2:

            #line 78 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Border)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Border_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 3:

            #line 95 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Minimize);

            #line default
            #line hidden
                return;

            case 4:

            #line 96 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Close);

            #line default
            #line hidden
                return;

            case 5:
                this.anteriorResultado = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.resultado = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:

            #line 142 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Add_Num);

            #line default
            #line hidden
                return;

            case 8:

            #line 144 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Add_Num);

            #line default
            #line hidden
                return;

            case 9:

            #line 145 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Add_Num);

            #line default
            #line hidden
                return;

            case 10:

            #line 146 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddFormula);

            #line default
            #line hidden
                return;

            case 11:

            #line 148 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Add_Num);

            #line default
            #line hidden
                return;

            case 12:

            #line 149 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Add_Num);

            #line default
            #line hidden
                return;

            case 13:

            #line 150 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Add_Num);

            #line default
            #line hidden
                return;

            case 14:

            #line 151 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddFormula);

            #line default
            #line hidden
                return;

            case 15:

            #line 153 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Add_Num);

            #line default
            #line hidden
                return;

            case 16:

            #line 154 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Add_Num);

            #line default
            #line hidden
                return;

            case 17:

            #line 155 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Add_Num);

            #line default
            #line hidden
                return;

            case 18:

            #line 156 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddFormula);

            #line default
            #line hidden
                return;

            case 19:

            #line 158 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Add_Num);

            #line default
            #line hidden
                return;

            case 20:

            #line 159 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Borrar);

            #line default
            #line hidden
                return;

            case 21:

            #line 160 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Igual);

            #line default
            #line hidden
                return;

            case 22:

            #line 161 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddFormula);

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