public ICommand CreateCommand()
        {
            ICommand ret = null;
            // bool add = false;

            // add = true;
            // string title = "Add An Ambient Light";

            using (AddAmbientLightDialog dlg = new AddAmbientLightDialog())
            {
                dlg.Cx = app.Config.DefaultAmbientLightColor;
                DialogResult result;
                result = dlg.ShowDialog();
                if (result == DialogResult.OK)
                {
                    ret = new AddAmbientLightCommand(app, parent, dlg.Cx);
                }
                return ret;
            }
        }
Example #2
0
        public ICommand CreateCommand()
        {
            ICommand ret = null;

            // bool add = false;

            // add = true;
            // string title = "Add An Ambient Light";

            using (AddAmbientLightDialog dlg = new AddAmbientLightDialog())
            {
                dlg.Cx = app.Config.DefaultAmbientLightColor;
                DialogResult result;
                result = dlg.ShowDialog();
                if (result == DialogResult.OK)
                {
                    ret = new AddAmbientLightCommand(app, parent, dlg.Cx);
                }
                return(ret);
            }
        }