コード例 #1
0
ファイル: WndCommand.g.i.cs プロジェクト: jairxpereira/WPFLab
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ownd = ((WPFLab.Janelas.WndCommand)(target));

            #line 8 "..\..\..\Janelas\WndCommand.xaml"
                this.ownd.Loaded += new System.Windows.RoutedEventHandler(this.ownd_onLoaded);

            #line default
            #line hidden
                return;

            case 2:

            #line 16 "..\..\..\Janelas\WndCommand.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.action_onNovo);

            #line default
            #line hidden

            #line 16 "..\..\..\Janelas\WndCommand.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.novoCommand_CanExecute);

            #line default
            #line hidden
                return;

            case 3:

            #line 19 "..\..\..\Janelas\WndCommand.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.jogarCommand_Executed);

            #line default
            #line hidden
                return;

            case 4:

            #line 38 "..\..\..\Janelas\WndCommand.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.toggleNovo);

            #line default
            #line hidden
                return;

            case 5:
                this.otool = ((System.Windows.Controls.ToolBar)(target));
                return;

            case 6:
                this.txtEditor = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.btnNovo = ((System.Windows.Controls.Button)(target));
                return;

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

            #line 64 "..\..\..\Janelas\WndCommand.xaml"
                this.btnTeste.Click += new System.Windows.RoutedEventHandler(this.btnTeste_onClick);

            #line default
            #line hidden
                return;

            case 9:
                this.btnSair = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        private void btnCommand_onClick(object sender, RoutedEventArgs e)
        {
            var wnd = new Janelas.WndCommand();

            wnd.Show();
        }