Beispiel #1
0
 private void addButton_Click(object sender, EventArgs e)
 {
     Session.modified = false;
     frmEdit editForm = new frmEdit();
     string[] empty = new string[0];
     editForm.load(-1, "", defaultCompression, "", empty);
     editForm.ShowDialog();
     if (Session.modified) {
         Session.modified = false;
         updateList();
         projectModified = true;
         updateTitle();
     }
 }
Beispiel #2
0
        private void editToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (listView.SelectedIndices.Count < 1)
                return;

            Session.modified = false;
            frmEdit editForm = new frmEdit();
            int id = listView.SelectedIndices[0];
            string[] exceptions = Session.records[id].exceptions.ToArray();
            editForm.load(id, Session.records[id].path, Session.records[id].compression, Session.records[id].output, exceptions);
            editForm.ShowDialog();
            if (Session.modified) {
                Session.modified = false;
                updateList();
                projectModified = true;
                updateTitle();
            }
        }