Exemplo n.º 1
0
        private void NewSubclass_Click(object sender, EventArgs e)
        {
            SubClassForm r = new SubClassForm(new SubClass()
            {
                Source = Program.Context.Config.DefaultSource
            });

            r.Saved += SubClassSaved;
            r.Show();
        }
Exemplo n.º 2
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();
            }
        }