private void NewBack_Click(object sender, EventArgs e) { BackgroundForm r = new BackgroundForm(new Background() { Source = Program.Context.Config.DefaultSource }); r.Saved += BackSaved; r.Show(); }
private void editBackground(object sender, EventArgs e) { if (backBox.SelectedItem == null) { return; } Background selected = Program.Context.GetBackground((string)backBox.SelectedItem, null); if (selected != null) { string sel = selected.Name; BackgroundForm r = new BackgroundForm(selected.Clone()); r.Saved += BackSaved; r.Show(); } }