void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.WindowRe = ((Register.Window2)(target)); return; case 2: this.UserName = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.PassBox = ((System.Windows.Controls.PasswordBox)(target)); return; case 4: this.PassBoxRe = ((System.Windows.Controls.PasswordBox)(target)); return; } this._contentLoaded = true; }
private void Re_Window(object sender, RoutedEventArgs e) { Window2 w2 = new Window2(); w2.Show(); }