Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.win_About = ((天蘩工具箱.winAbout)(target));
                return;

            case 2:
                this.txtblExplain = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.hlinkGitUri = ((System.Windows.Documents.Hyperlink)(target));

            #line 23 "..\..\winAbout.xaml"
                this.hlinkGitUri.Click += new System.Windows.RoutedEventHandler(this.hlinkGitUri_Click);

            #line default
            #line hidden
                return;

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

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

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

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

            #line 43 "..\..\winAbout.xaml"
                this.btnSourceCode.Click += new System.Windows.RoutedEventHandler(this.btnSourceCode_Click);

            #line default
            #line hidden
                return;

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

            #line 44 "..\..\winAbout.xaml"
                this.btnExit.Click += new System.Windows.RoutedEventHandler(this.btnExit_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
 /// <summary>
 /// 返回关于窗体实例
 /// </summary>
 /// <param name="t">Top坐标</param>
 /// <param name="l">Left坐标</param>
 /// <returns></returns>
 public static winAbout showWinAbout(double t, double l)
 {
     if (win == null || !win.IsLoaded)
     {
         lock (obj)
         {
             if (win == null || !win.IsLoaded)
             {
                 win = new winAbout(t, l);
             }
         }
     }
     if (!win.IsLoaded)
     {
         win.ShowDialog();
     }
     win.Activate();
     return(win);
 }