public addGroup_User(MainWindow main)
 {
     InitializeComponent();
     this.main = main;
     this.bAddGroup.Margin = new Thickness(10, 10, 10,10);
     this.bCancelGroup.Margin = new Thickness(10, 10, 10, 10);
 }
 public interfaz_apf_salud(int flag,MainWindow main)
 {
     this.flag = flag;
     InitializeComponent();
     this.main = main;
     this.Title = flag==1?"Ingreso nueva prevision":"Ingreso nueva AFP";
 }
 public QuestionDialog(string pregunta, MainWindow main)
 {
     InitializeComponent();
     this.main = main;
     lPregunta.Content = pregunta;
     Dispatcher.BeginInvoke(new Action(() => { addEfecto(); }));
 }
 public Dialog(String msg,MainWindow main)
 {
     InitializeComponent();
     this.main = main;
     this.label2.Content = msg;
     if (msg.Length < 200)
     {
         this.MinHeight = 190;
         this.MaxHeight = 190;
         this.grid.MinHeight = 170;
         this.grid.MaxHeight = 170;
         this.label2.MinHeight = 130;
         this.label2.MaxHeight = 130;
         this.label1.Margin = new Thickness(10, 10, 10,10);
     }
     Dispatcher.BeginInvoke(new Action(() => { addEfecto(); }));
 }
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     this.main = this;
     listAutocomplet = new Clases.Personal().findAll(0);
     this._infoUser = new interfazUserGeneral(this);
     this._bienvenida = new interfazBienvenida();
     this.WorkSpace.IsEnabled = false;
     this.rbRut.IsChecked = true;
     this.WorkSpace.Children.Clear();
     this.WorkSpace.Children.Add(_infoUser);
     this.Presentacion.Children.Clear();
     this.Presentacion.Children.Add(_bienvenida);
     this.tNombreUser.Focus();
 }