Exemplo n.º 1
0
        private void editSubClass(object sender, EventArgs e)
        {
            if (subclassList.SelectedItem == null)
            {
                return;
            }
            SubClass selected = Program.Context.GetSubClass((string)subclassList.SelectedItem, null);

            if (selected != null)
            {
                string       sel = selected.Name;
                SubClassForm r   = new SubClassForm(selected.Clone());
                r.Saved += SubClassSaved;
                r.Show();
            }
        }
Exemplo n.º 2
0
 public void MakeHistory(string id)
 {
     if (!doHistory)
     {
         return;
     }
     if (id == null)
     {
         id = "";
     }
     if (id == "" || id != lastid)
     {
         UndoBuffer.AddLast(cls.Clone());
         RedoBuffer.Clear();
         onChange();
         if (UndoBuffer.Count > MaxBuffer)
         {
             UndoBuffer.RemoveFirst();
         }
         UnsavedChanges++;
     }
     lastid = id;
 }