예제 #1
0
        private void AddModality()
        {
            SCPConfig cfg = _mgt.GetSCPConfig();

            if (cfg == null)
            {
                return;
            }

            FormModality frm = new FormModality(null);

            if (frm.ShowDialog(this) != DialogResult.OK)
            {
                return;
            }

            Modality modality = frm.Modality;

            if (modality == null)
            {
                return;
            }

            cfg.KnownModalities.Add(modality);

            RefreshModalityList();
            SelectModality(modality);
            RefreshModalityButton();
        }
예제 #2
0
        private void EditModality()
        {
            Modality modality = GetSelectedModality();

            if (modality == null)
            {
                return;
            }

            FormModality frm = new FormModality(modality);

            if (frm.ShowDialog(this) != DialogResult.OK)
            {
                return;
            }

            RefreshModalityList();
            SelectModality(modality);
            RefreshModalityButton();
        }