void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.LoginWindow = ((FUTABus.LogInWindow)(target)); return; case 2: this.FloatingPasswordBox = ((System.Windows.Controls.PasswordBox)(target)); return; } this._contentLoaded = true; }
private void BtnDangNhap(object sender, RoutedEventArgs e) { LogInWindow login = new LogInWindow(); login.ShowDialog(); }