public PersonalVentana(dbcon database, bool sessoinlimit = false) { InitializeComponent(); db = database; profesiones = new ProfesionList(db); agendas = AgendaHoraria.CargarTodos(db); usuario = sessoinlimit; }
public ProfesionVentana(dbcon con, bool edit = false) { InitializeComponent(); db = con; profesiones = new ProfesionList(db); profesiones.Cargar(); preselec.ItemsSource = profesiones; editmode = edit; if (!editmode) { p_select_stack.Visibility = Visibility.Collapsed; save_btn.Content = "Ingresar"; Title = "Ingresar Nueva profesion"; p = new Profesion(); } else { p_select_stack.Visibility = Visibility.Visible; save_btn.IsEnabled = false; Title = "Editar Profesion"; } }