private void Aceptar(System.Windows.Window o) { this.Resultado = true; ConfiguracionView view = (ConfiguracionView)o; this.PasswordText = view.PasswordText.Password; //acciones o.Close(); }
public bool Show() { ConfiguracionView frm = new ConfiguracionView(); frm.DataContext = this; frm.ShowDialog(); return(Resultado); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Window = ((P01ConexionBD.UI.ConfiguracionView)(target)); return; case 2: this.ServidorText = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.PasswordText = ((System.Windows.Controls.PasswordBox)(target)); return; } this._contentLoaded = true; }