示例#1
0
            private void EditMessageType()
            {
                MessageTypePair t = GetSelectedMessagseType();

                if (t == null)
                {
                    return;
                }

                FormMessageTypePair frm = new FormMessageTypePair(t);

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

                RefreshMessageTypeList();
                SelectMessageType(t);
            }
示例#2
0
            private void AddMessageType()
            {
                FormMessageTypePair frm = new FormMessageTypePair(null);

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

                MessageTypePair t = frm.MessageTypePair;

                if (t == null)
                {
                    return;
                }

                _entityConfig.ResponseConfig.ResponseContract.MessageTypePairList.Add(t);

                RefreshMessageTypeList();
                SelectMessageType(t);
            }