private void addClass(System.Windows.Forms.ListBox lb, iControl.LocalLBClassClassType type)
 {
     DataGroupDialog dlg = new DataGroupDialog();
     dlg.m_type = type;
     dlg.m_mode = DataGroupDialog.DialogMode.DIALOGMODE_NEW;
     DialogResult dr = dlg.ShowDialog();
     if (DialogResult.OK == dr)
     {
         lb.Items.Add(dlg.m_name);
     }
 }
Esempio n. 2
0
        private void addClass(System.Windows.Forms.ListBox lb, iControl.LocalLBClassClassType type)
        {
            DataGroupDialog dlg = new DataGroupDialog();

            dlg.m_type = type;
            dlg.m_mode = DataGroupDialog.DialogMode.DIALOGMODE_NEW;
            DialogResult dr = dlg.ShowDialog();

            if (DialogResult.OK == dr)
            {
                lb.Items.Add(dlg.m_name);
            }
        }
Esempio n. 3
0
        private void editClass(System.Windows.Forms.ListBox lb, iControl.LocalLBClassClassType type)
        {
            int index = lb.SelectedIndex;

            if (-1 != index)
            {
                DataGroupDialog dlg = new DataGroupDialog();
                dlg.m_type = type;
                dlg.m_name = lb.Items[index].ToString();
                dlg.m_mode = DataGroupDialog.DialogMode.DIALOGMODE_EDIT;
                DialogResult dr = dlg.ShowDialog();
            }
        }
 private void editClass(System.Windows.Forms.ListBox lb, iControl.LocalLBClassClassType type)
 {
     int index = lb.SelectedIndex;
     if (-1 != index)
     {
         DataGroupDialog dlg = new DataGroupDialog();
         dlg.m_type = type;
         dlg.m_name = lb.Items[index].ToString();
         dlg.m_mode = DataGroupDialog.DialogMode.DIALOGMODE_EDIT;
         DialogResult dr = dlg.ShowDialog();
     }
 }