Ejemplo n.º 1
0
        private void AddSection()
        {
            FormMInterfaceConfigSection frm = new FormMInterfaceConfigSection(null);

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

            if (s == null)
            {
                return;
            }
            _configPage.Sections.Add(s);
            RefreshSectionList();
        }
Ejemplo n.º 2
0
        private void EditSection()
        {
            if (this.listViewSection.SelectedItems.Count < 1)
            {
                return;
            }
            MInterfaceConfigSection s = this.listViewSection.SelectedItems[0].Tag as MInterfaceConfigSection;

            if (s == null)
            {
                return;
            }
            FormMInterfaceConfigSection frm = new FormMInterfaceConfigSection(s);

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