コード例 #1
0
 public override bool Setup()
 {
     DummyLightingSetup setup = new DummyLightingSetup(_form.renderingStyle, _form.Text);
     DialogResult result = setup.ShowDialog();
     if(result == DialogResult.OK) {
         _data.RenderStyle = setup.RenderStyle;
         _form.renderingStyle = setup.RenderStyle;
         _data.FormTitle = setup.FormTitle;
         _form.Text = setup.FormTitle;
         _SetDataPolicy();
         return true;
     }
     return false;
 }
コード例 #2
0
        public override bool Setup()
        {
            DummyLightingSetup setup  = new DummyLightingSetup(_form.renderingStyle, _form.Text);
            DialogResult       result = setup.ShowDialog();

            if (result == DialogResult.OK)
            {
                _data.RenderStyle    = setup.RenderStyle;
                _form.renderingStyle = setup.RenderStyle;
                _data.FormTitle      = setup.FormTitle;
                _form.Text           = setup.FormTitle;
                _SetDataPolicy();
                return(true);
            }
            return(false);
        }