Пример #1
0
 private void butOK_Click(object sender,EventArgs e)
 {
     FormDisplayFields FormF=new FormDisplayFields();
     FormF.category=(DisplayFieldCategory)listCategory.SelectedIndex+1;
     FormF.ShowDialog();
     Close();
 }
Пример #2
0
        private void butOK_Click(object sender, EventArgs e)
        {
            FormDisplayFields FormF = new FormDisplayFields();

            FormF.category = (DisplayFieldCategory)listCategory.SelectedIndex + 1;
            FormF.ShowDialog();
            Close();
        }
        private void ShowCategoryEdit()
        {
            DisplayFieldCategory selectedCategory = listCategory.GetSelected <DisplayFieldCategory>();

            if (selectedCategory == DisplayFieldCategory.None)           //should never happen.
            {
                return;
            }
            //The ortho chart is a more complicated display field so it has its own window.
            if (selectedCategory == DisplayFieldCategory.OrthoChart)
            {
                FormDisplayFieldsOrthoChart FormDFOC = new FormDisplayFieldsOrthoChart();
                FormDFOC.ShowDialog();
            }
            else              //All other display fields use the base display fields window.
            {
                FormDisplayFields FormF = new FormDisplayFields();
                FormF.Category = selectedCategory;
                FormF.ShowDialog();
            }
        }
Пример #4
0
		private void butOK_Click(object sender,EventArgs e) {
			DisplayFieldCategory selectedCategory=DisplayFieldCategory.None;
			//When new display fields are added this switch statement will need to be changed to match the order set in the load.
			switch(listCategory.SelectedIndex) {
				case 0: selectedCategory=DisplayFieldCategory.AccountModule; break;
				case 1: selectedCategory=DisplayFieldCategory.AccountPatientInformation; break;
				case 2: selectedCategory=DisplayFieldCategory.AppointmentBubble; break;
				case 3: selectedCategory=DisplayFieldCategory.ChartPatientInformation; break;
				case 4: selectedCategory=DisplayFieldCategory.OrthoChart; break;
				case 5: selectedCategory=DisplayFieldCategory.PatientInformation; break;
				case 6: selectedCategory=DisplayFieldCategory.PatientSelect; break;
				case 7: selectedCategory=DisplayFieldCategory.ProcedureGroupNote; break;
				case 8: selectedCategory=DisplayFieldCategory.RecallList; break;
				case 9: selectedCategory=DisplayFieldCategory.TreatmentPlanModule; break;
			}
			if(selectedCategory==DisplayFieldCategory.None) {  //This should never happen
				return;
			}
			FormDisplayFields FormF=new FormDisplayFields();
			FormF.Category=selectedCategory;
			FormF.ShowDialog();
			Close();
		}