예제 #1
0
        private void CreateThemeBtn_Click(object sender, EventArgs e)
        {
            MonsterThemeForm monsterThemeForm = new MonsterThemeForm(new MonsterTheme()
            {
                Name = "New Theme"
            });

            if (monsterThemeForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                Session.Project.Library.Themes.Add(monsterThemeForm.Theme);
                Session.Modified = true;
                this.update_selected_theme(monsterThemeForm.Theme, true);
            }
        }
예제 #2
0
        private void CreateThemeBtn_Click(object sender, EventArgs e)
        {
            MonsterTheme mt = new MonsterTheme();

            mt.Name = "New Theme";

            MonsterThemeForm dlg = new MonsterThemeForm(mt);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                Session.Project.Library.Themes.Add(dlg.Theme);
                Session.Modified = true;

                update_selected_theme(dlg.Theme, true);
            }
        }