예제 #1
0
 public MainWindow(string user, string pass)
 {
     InitializeComponent();
     WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
     username            = user;
     dt                  = mane.Datitos(user);
     ramos               = mane.TablitaRamos(user);
     idSede              = (dt.Rows[0][0]).ToString();
     txtSede.Content     = (dt.Rows[0][1]).ToString();
     idCarrera           = (dt.Rows[0][2]).ToString();
     txtCarrera.Content  = (dt.Rows[0][3]).ToString();
     txtRut.Content      = (dt.Rows[0][4]).ToString();
     txtSemestre.Content = (dt.Rows[0][5]).ToString() + "° Semestre";
     txtNombre.Content   = (dt.Rows[0][6]).ToString();
     dtgRamo.ItemsSource = ramos.DefaultView;
 }