예제 #1
0
        private void menuItemSetup_Click(object sender, EventArgs e)
        {
            FormDisplayFieldsOrthoChart form = new FormDisplayFieldsOrthoChart();

            if (form.ShowDialog() == DialogResult.OK)
            {
                FillTabs();
                FillDictionary();
                FillGrid();
            }
        }
        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();
            }
        }
예제 #3
0
        private void butOrthoDisplayFields_Click(object sender, EventArgs e)
        {
            FormDisplayFieldsOrthoChart FormDFOC = new FormDisplayFieldsOrthoChart();

            FormDFOC.ShowDialog();
        }