private void EditMessageType() { MessageType t = GetSelectedMessagseType(); if (t == null) { return; } FormMessageType frm = new FormMessageType(t); if (frm.ShowDialog(_formMain) != DialogResult.OK) { return; } RefreshMessageTypeList(); SelectMessageType(t); }
private void AddMessageType() { FormMessageType frm = new FormMessageType(null); if (frm.ShowDialog(_formMain) != DialogResult.OK) { return; } MessageType t = frm.MessageType; if (t == null) { return; } _entityConfig.PublishConfig.Publication.MessageTypeList.Add(t); RefreshMessageTypeList(); SelectMessageType(t); }