private void metroButtonViewCurrentCharges_Click(object sender, EventArgs e) { if (metroTextBoxDocName.Text != "" && metroDateTime1.Text != "") { List <DAL.Appoinment> a = u.getAppoinments(metroTextBoxDocName.Text, metroDateTime1.Text); if (a == null) { MetroFramework.MetroMessageBox.Show(this, "Nothing Found!"); } else { BindingSource bi = new BindingSource(); bi.DataSource = a; ViewAll v = new ViewAll(); v.changeValues(bi, "Appoinments", "Appoinments"); v.Show(); } } else { MetroFramework.MetroMessageBox.Show(this, "Please Enter Doc Id and Date"); } }
public void AddViewAllCreate() { ViewAll view = new ViewAll(); view.DataContext = viewAllViewModel; view.ShowDialog(); }
private void vToolStripMenuItem_Click(object sender, EventArgs e) { ViewAll v = new ViewAll(RootNode); v.baseForm = this; v.Show(this); }
private void Update() { var debView = new ViewAll(); MainDataGrid.ItemsSource = debView.Items; GameDataGrid.ItemsSource = debView.GameItems; ManColumn.ItemsSource = debView.GameItemsManager; ManagerDataGrid.ItemsSource = debView.ManagerItems; ArtDataGrid.ItemsSource = debView.ArtistItems; }
public ViewResult Index() { var prods = _context.Product; var viewModel = new ViewAll { Products = prods }; return(View(viewModel)); }
private void metroButtonShowAllBed_Click(object sender, EventArgs e) { List <DAL.BedTable> bt = b.ShowAllBeds(); BindingSource bi = new BindingSource(); bi.DataSource = bt; ViewAll v = new ViewAll(); v.changeValues(bi, "ALL Beds", "ALLBeds"); v.Show(); }
private void metroButtonViewAll_Click(object sender, EventArgs e) { var a = u.viewAllPatients(); BindingSource bi = new BindingSource(); bi.DataSource = a; ViewAll v = new ViewAll(); v.changeValues(bi, "Patients", "Patients"); v.Show(); }
private void metroButton1_Click(object sender, EventArgs e) { List <DAL.FeeTable> a = u.AllCharges(); BindingSource bi = new BindingSource(); bi.DataSource = a; ViewAll v = new ViewAll(); v.changeValues(bi, "Different Charges:", "Charges"); v.Show(); }
private void metroButtonViewTransection_Click(object sender, EventArgs e) { List <DAL.Transection> vt = ts.viewAllTransection(); if (vt == null) { MetroFramework.MetroMessageBox.Show(this, "Nothing Found!"); } else { // var a = ts.viewAllAdmin(); BindingSource bi = new BindingSource(); bi.DataSource = vt; ViewAll v = new ViewAll(); v.changeValues(bi, "Transections", "Transections"); v.Show(); } }
private void metroButtonViewCurrentCharges_Click(object sender, EventArgs e) { //MetroFramework.MetroMessageBox.Show(this,id.ToString()); List <DAL.Appoinment> a = u.docAppoinmentList(id); bool isEmpty = !a.Any(); BindingSource bi = new BindingSource(); bi.DataSource = a; if (isEmpty == false) { ViewAll v = new ViewAll(); v.changeValues(bi, "Appoinments", "Appoinments"); v.Show(); } else { MetroFramework.MetroMessageBox.Show(this, "Nothing found!"); } }
//Admin //Doctor //Receptionist private void metroButtonViewAll_Click(object sender, EventArgs e) { BLL.UserInfoHandler u = new BLL.UserInfoHandler(); if (comboBoxAccType.Text == "Admin") { var a = u.viewAllAdmin(); BindingSource bi = new BindingSource(); bi.DataSource = a; ViewAll v = new ViewAll(); v.changeValues(bi, "Admins", "EmployeeAccounts"); v.Show(); } else if (comboBoxAccType.Text == "Doctor") { List <DAL.Doctor> a = u.viewAllDoctors(); BindingSource bi = new BindingSource(); bi.DataSource = a; ViewAll v = new ViewAll(); v.changeValues(bi, "Doctors", "EmployeeAccounts"); v.Show(); } else if (comboBoxAccType.Text == "Receptionist") { List <DAL.Receptionist> a = u.viewAllReceptionists(); BindingSource bi = new BindingSource(); bi.DataSource = a; ViewAll v = new ViewAll(); v.changeValues(bi, "Receptionists", "EmployeeAccounts"); v.Show(); } else { MetroFramework.MetroMessageBox.Show(this, "Please Select Account Type."); } }
public ViewResult Index() { var product = _context.Product; var parameter = _context.Parameter; var parametervalue = _context.ParameterValue; var disalowedvalue = _context.DisallowedValue; var disallowedrule = _context.DisallowedRule; var disallowedparameter = _context.DisallowedParameter; var viewModel = new ViewAll { Products = product, Parameters = parameter, ParameterValues = parametervalue, DisallowedValues = disalowedvalue, DisallowedRules = disallowedrule, DisallowedParameters = disallowedparameter }; return(View(viewModel)); }
private void Window_Loaded(object sender, RoutedEventArgs e) { var debView = new ViewAll(); }
public List <carttotals> Get() { ViewAll test = new ViewAll(); return(test.ViewAllReports()); }