示例#1
0
        private void Button_Exit(object sender, RoutedEventArgs e)
        {
            MainWindow mw = new WpfApplication8.MainWindow();

            this.Close();
            mw.ShowDialog();
        }
示例#2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Window = ((WpfApplication8.MainWindow)(target));
     return;
     case 2:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.pathListBox = ((Microsoft.Expression.Controls.PathListBox)(target));
     return;
     case 4:
     this.ellipse = ((System.Windows.Shapes.Ellipse)(target));
     return;
     }
     this._contentLoaded = true;
 }