Пример #1
0
 private void mnuAbout_Click(object sender, RoutedEventArgs e)
 {
     var d = new WndAbout { Owner = this };
     d.ShowDialog();
 }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DlgAbout = ((PNotes.NET.WndAbout)(target));

            #line 16 "..\..\WndAbout.xaml"
                this.DlgAbout.Loaded += new System.Windows.RoutedEventHandler(this.DlgAbout_Loaded);

            #line default
            #line hidden

            #line 17 "..\..\WndAbout.xaml"
                this.DlgAbout.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.DlgAbout_PreviewKeyDown);

            #line default
            #line hidden
                return;

            case 2:
                this.imgAbout = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.lblInfo = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.progName = ((System.Windows.Documents.Run)(target));
                return;

            case 5:
                this.progDesc = ((System.Windows.Documents.Run)(target));
                return;

            case 6:
                this.progCopy = ((System.Windows.Documents.Run)(target));
                return;

            case 7:
                this.progMail = ((System.Windows.Documents.Run)(target));

            #line 24 "..\..\WndAbout.xaml"
                this.progMail.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.progMail_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 8:
                this.lblGPL = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.cntAbout = ((PNotes.NET.AboutControl)(target));
                return;

            case 10:
                this.cmdLicense = ((System.Windows.Controls.TextBlock)(target));

            #line 28 "..\..\WndAbout.xaml"
                this.cmdLicense.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.cmdLicense_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 11:
                this.cmdOK = ((System.Windows.Controls.TextBlock)(target));

            #line 29 "..\..\WndAbout.xaml"
                this.cmdOK.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.cmdOK_MouseLeftButtonDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Пример #3
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.DlgAbout = ((PNotes.NET.WndAbout)(target));
     
     #line 16 "..\..\WndAbout.xaml"
     this.DlgAbout.Loaded += new System.Windows.RoutedEventHandler(this.DlgAbout_Loaded);
     
     #line default
     #line hidden
     
     #line 17 "..\..\WndAbout.xaml"
     this.DlgAbout.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.DlgAbout_PreviewKeyDown);
     
     #line default
     #line hidden
     return;
     case 2:
     this.imgAbout = ((System.Windows.Controls.Image)(target));
     return;
     case 3:
     this.lblInfo = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 4:
     this.progName = ((System.Windows.Documents.Run)(target));
     return;
     case 5:
     this.progDesc = ((System.Windows.Documents.Run)(target));
     return;
     case 6:
     this.progCopy = ((System.Windows.Documents.Run)(target));
     return;
     case 7:
     this.progMail = ((System.Windows.Documents.Run)(target));
     
     #line 24 "..\..\WndAbout.xaml"
     this.progMail.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.progMail_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 8:
     this.lblGPL = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 9:
     this.cntAbout = ((PNotes.NET.AboutControl)(target));
     return;
     case 10:
     this.cmdLicense = ((System.Windows.Controls.TextBlock)(target));
     
     #line 28 "..\..\WndAbout.xaml"
     this.cmdLicense.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.cmdLicense_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 11:
     this.cmdOK = ((System.Windows.Controls.TextBlock)(target));
     
     #line 29 "..\..\WndAbout.xaml"
     this.cmdOK.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.cmdOK_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }