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(); }
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(); }