Beispiel #1
0
        private void ПриоритетыToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Priorities_Manager pm = new Priorities_Manager(Priorities.ToArray(), dbm);

            pm.ShowDialog();
            if (pm.UpdatePriorities)
            {
                UpdatePriorities(); UpdateDebts(); PrintAllDebts(); sync_manager.Synchronization.Changes += 1;
            }
            pm.Dispose();
            pm = null;
            GC.Collect();
        }
Beispiel #2
0
 private void ИзменитьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (view.SelectedItems.Count == 1)
     {
         using (EditDebt ed = new EditDebt(Debts.First(t => t.ID.ToString() == view.SelectedItems[0].SubItems[0].Text), dbm, Priorities.ToArray()))
         {
             if (ed.ShowForm(out dbm_lib.UpdateConstructor uc))
             {
                 dbm.EditDebt(uc); UpdateDebts(); PrintAllDebts(); sync_manager.Synchronization.Changes += 1;
             }
         }
     }
 }