Example #1
0
        private void btnAdd_Click(object sender, System.EventArgs e)
        {
            DataGroupModifyDlg dataGroupModifyDlg = new DataGroupModifyDlg(this, -1L);

            if (dataGroupModifyDlg.ShowDialog() != DialogResult.Cancel)
            {
                this.FillList();
            }
        }
Example #2
0
        private void btnModify_Click(object sender, System.EventArgs e)
        {
            if (this.grouplist.SelectedItems.Count <= 0)
            {
                this.btnDel.Enabled    = false;
                this.btnModify.Enabled = false;
                return;
            }
            ListViewItem listViewItem = this.grouplist.SelectedItems[0];
            string       value        = System.Convert.ToString(listViewItem.Tag).Split(new char[]
            {
                '|'
            })[0];
            DataGroupModifyDlg dataGroupModifyDlg = new DataGroupModifyDlg(this, (long)System.Convert.ToInt32(value));

            if (dataGroupModifyDlg.ShowDialog() != DialogResult.Cancel)
            {
                this.FillList();
            }
        }