Esempio n. 1
0
        private void buttonAddGroup_Click(object sender, EventArgs e)
        {
            Group         group = new Group();
            FormEditGroup form  = new FormEditGroup(group, this.formMain);

            form.Show();

            if (form.DialogResult == DialogResult.OK)
            {
                allGroups.Add(group);
                createItem();
            }
        }
Esempio n. 2
0
        private void buttonEditGroup_Click(object sender, EventArgs e)
        {
            if (selectedGroup != null)
            {
                FormEditGroup form = new FormEditGroup(selectedGroup, this.formMain);
                form.ShowDialog();

                if (form.DialogResult == DialogResult.OK)
                {
                    createItem();
                    this.formMain.save();
                }
            }
        }
Esempio n. 3
0
        private void buttonEditGroup_Click(object sender, EventArgs e)
        {
            foreach (ListViewItem item in this.listViewGroups.Items)
            {
                if (item.Checked == true)
                {
                    FormEditGroup form = new FormEditGroup((Group)item.Tag, this.formMain);
                    form.Show();

                    if (form.DialogResult == DialogResult.OK)
                    {
                        createItem();
                    }
                    break;
                }
            }
        }