Пример #1
0
        private void AddConfigPage()
        {
            FormMInterfaceConfigPage frm = new FormMInterfaceConfigPage(null);

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

            if (p == null)
            {
                return;
            }
            _mInterface.ConfigPages.Add(p);
            RefreshConfigPageList();
        }
Пример #2
0
        private void EditConfigPage()
        {
            if (this.listViewConfig.SelectedItems.Count < 1)
            {
                return;
            }
            MInterfaceConfigPage p = this.listViewConfig.SelectedItems[0].Tag as MInterfaceConfigPage;

            if (p == null)
            {
                return;
            }
            FormMInterfaceConfigPage frm = new FormMInterfaceConfigPage(p);

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