コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Janela = ((SpookyWpf.MainWindow)(target));

            #line 8 "..\..\MainWindow.xaml"
                this.Janela.Loaded += new System.Windows.RoutedEventHandler(this.OnLoad);

            #line default
            #line hidden

            #line 10 "..\..\MainWindow.xaml"
                this.Janela.Closed += new System.EventHandler(this.OnClosed);

            #line default
            #line hidden
                return;

            case 2:

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

            #line default
            #line hidden
                return;

            case 3:

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

            #line default
            #line hidden
                return;

            case 4:
                this.cboxOpcao = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 5:

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

            #line default
            #line hidden
                return;

            case 6:

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

            #line default
            #line hidden
                return;

            case 7:

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

            #line default
            #line hidden
                return;

            case 8:

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Janela = ((SpookyWpf.MainWindow)(target));

            #line 8 "..\..\..\Janelas\MainWindow.xaml"
                this.Janela.Loaded += new System.Windows.RoutedEventHandler(this.OnLoad);

            #line default
            #line hidden

            #line 10 "..\..\..\Janelas\MainWindow.xaml"
                this.Janela.Closed += new System.EventHandler(this.OnClosed);

            #line default
            #line hidden
                return;

            case 2:
                this.Panel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 3:

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

            #line default
            #line hidden
                return;

            case 4:

            #line 40 "..\..\..\Janelas\MainWindow.xaml"
                ((System.Windows.Controls.Label)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.AbrirPainel);

            #line default
            #line hidden
                return;

            case 5:
                this.cboxOpcao = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 6:

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

            #line default
            #line hidden
                return;

            case 7:
                this.bar = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 8:

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

            #line default
            #line hidden
                return;

            case 9:

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

            #line default
            #line hidden
                return;

            case 10:

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

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