private void butPickClinic_Click(object sender, EventArgs e) { FormClinics FormC = new FormClinics(); FormC.IsSelectionMode = true; if (FormC.ShowDialog() == DialogResult.OK) { comboClinic.SetSelectedItem <long>(x => x == FormC.SelectedClinicNum, Lan.g(this, "None")); } }
private void butProvRulePickClinic_Click(object sender, EventArgs e) { FormClinics FormC = new FormClinics(); FormC.IsSelectionMode = true; FormC.ShowDialog(); if (FormC.DialogResult != DialogResult.OK) { return; } comboClinicProvRule.SelectedClinicNum = FormC.SelectedClinicNum; FillWebSchedProviderRule(); }
private void butClinicPick_Click(object sender, EventArgs e) { FormClinics FormC = new FormClinics(); FormC.IsSelectionMode = true; FormC.ListClinics = _listClinicsInComboBox; FormC.ShowDialog(); if (FormC.DialogResult != DialogResult.OK) { return; } FillComboBox(FormC.SelectedClinicNum); }
private void butWebSchedPickClinic_Click(object sender, EventArgs e) { FormClinics FormC = new FormClinics(); FormC.IsSelectionMode = true; FormC.ShowDialog(); if (FormC.DialogResult != DialogResult.OK) { return; } comboWebSchedClinic.SelectedIndex = _listWebSchedClinics.FindIndex(x => x.ClinicNum == FormC.SelectedClinicNum) + 1; //+1 for 'Unassigned' _webSchedClinicNum = FormC.SelectedClinicNum; FillGridWebSchedTimeSlotsThreaded(); }
private void butClinicPick_Click(object sender, EventArgs e) { List <Clinic> listClinics = gridMain.Rows.Select(x => x.Tag as Clinic).ToList(); FormClinics formC = new FormClinics(); formC.ListClinics = listClinics; formC.IsSelectionMode = true; if (formC.ShowDialog() != DialogResult.OK) { return; } _clinicNumTo = formC.SelectedClinicNum; textMoveTo.Text = listClinics.FirstOrDefault(x => x.ClinicNum == _clinicNumTo).Abbr; }
private void butPickClinic_Click(object sender, EventArgs e) { FormClinics FormC = new FormClinics(); FormC.IsSelectionMode = true; FormC.ListClinics = _listClinics;//Includes 'Unassigned' FormC.ListSelectedClinicNums = new List <long> { _listClinics[comboClinics.SelectedIndex].ClinicNum }; if (FormC.ShowDialog() == DialogResult.OK) { comboClinics.SelectedIndex = _listClinics.FindIndex(x => x.ClinicNum == FormC.SelectedClinicNum); } }
private void butPickClin_Click(object sender, EventArgs e) { FormClinics FormC = new FormClinics() { ListClinics = _listClinics }; FormC.IsSelectionMode = true; FormC.ShowDialog(); if (FormC.DialogResult != DialogResult.OK) { return; } _selectedClinicNum = FormC.SelectedClinicNum; comboClinic.IndexSelectOrSetText(_listClinics.FindIndex(x => x.ClinicNum == _selectedClinicNum), () => { return(Clinics.GetAbbr(_selectedClinicNum)); }); }
private void butPickClinic_Click(object sender, EventArgs e) { FormClinics FormC = new FormClinics(); FormC.IsSelectionMode = true; FormC.ListClinics = _listClinics; //Includes 'Unassigned' if (comboClinics.SelectedIndex != 0) //'All' { FormC.ListSelectedClinicNums = new List <long> { _listClinics[comboClinics.SelectedIndex - 1].ClinicNum }; //-1 for 'All' } if (FormC.ShowDialog() != DialogResult.OK) { return; } comboClinics.SelectedIndex = _listClinics.FindIndex(x => x.ClinicNum == FormC.SelectedClinicNum) + 1; //+1 for 'All' FillGrids(); }
private void butPickClinic_Click(object sender, EventArgs e) { FormClinics form = new FormClinics(); form.ListClinics = _listClinics; form.IsSelectionMode = true; form.IsMultiSelect = false; if (form.ShowDialog() == DialogResult.OK) { comboClinic.SelectedIndex = -1; for (int i = 0; i < comboClinic.Items.Count; i++) { if (((ODBoxItem <Clinic>)(comboClinic.Items[i])).Tag.ClinicNum == form.SelectedClinicNum) { comboClinic.SelectedIndex = i; break; } } } }
private void menuItemClinics_Click(object sender, System.EventArgs e) { if(!Security.IsAuthorized(Permissions.Setup)){ return; } FormClinics FormC=new FormClinics(); FormC.ShowDialog(); SecurityLogs.MakeLogEntry(Permissions.Setup,0,"Clinics"); }
private void menuItemClinics_Click(object sender, System.EventArgs e) { if(!Security.IsAuthorized(Permissions.Setup)){ return; } FormClinics FormC=new FormClinics(); FormC.ShowDialog(); SecurityLogs.MakeLogEntry(Permissions.Setup,0,"Clinics"); //this menu item is only visible if the clinics show feature is enabled (!EasyNoClinics) if(Clinics.GetDesc(ClinicNum)=="") {//will be empty string if ClinicNum is not valid, in case they deleted the clinic ClinicNum=Security.CurUser.ClinicNum; Text=PatientL.GetMainTitle(Patients.GetPat(CurPatNum),ClinicNum); } RefreshMenuClinics(); //reset the main title bar in case the user changes the clinic description for the selected clinic Patient pat=Patients.GetPat(CurPatNum); Text=PatientL.GetMainTitle(pat,ClinicNum); //reset the tip text in case the user changes the clinic description }