private void BtnRegister_Click(object sender, RoutedEventArgs e) { //ChatRoomWindow cr = new ChatRoomWindow(this, chatRoom, obs); //cr.Show(); this.register = new RegisterWindow(this, this.chatRoom, obs); register.Show(); }
/// <summary> /// a button that connect between the the LoginWindow to the RegiesterWindow /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BtnRegister_Click(object sender, RoutedEventArgs e) { Log.Instance.info("Login window closed"); RegisterWindow register = new RegisterWindow(this.mainWindow, this.chatRoom, obs); this.Close(); register.Show(); }