예제 #1
0
        private void NewBack_Click(object sender, EventArgs e)
        {
            BackgroundForm r = new BackgroundForm(new Background()
            {
                Source = Program.Context.Config.DefaultSource
            });

            r.Saved += BackSaved;
            r.Show();
        }
예제 #2
0
        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();
            }
        }