Exemple #1
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            AddTask addTask = new AddTask();

            addTask.Show();
            // addTask.FormClosing += DeleteInListView;
            addTask.FormClosed += RefreshList;
        }
Exemple #2
0
 private void toolStripMenuItemEdit_Click(object sender, EventArgs e)// edit
 {
     if (listViewTasks.SelectedIndices.Count > 0)
     {
         DialogResult result = MessageBox.Show("Are you sure you want to еdit the record\r\n<" + listViewTasks.SelectedItems[0].SubItems[0].Text + " / " + listViewTasks.SelectedItems[0].SubItems[1].Text + " / " + listViewTasks.SelectedItems[0].SubItems[2].Text + ">?", "Delete", MessageBoxButtons.YesNo);
         if (result == DialogResult.Yes)
         {
             OrganizerFile  OrgF    = new OrganizerFile();
             OrganizerXML[] ReadXML = OrgF.SerializeFileRead();
             AddTask        addTask = new AddTask(ReadXML, find());
             addTask.Show();
             addTask.FormClosed += RefreshList;
             //AddTextInListView(WriteXML,(EvenCategoryLab)comboBoxTask.SelectedIndex);
         }
     }
 }