コード例 #1
0
 private void OK_Click(object sender, EventArgs e)
 {
     if (!OptionsCTL.Confirm() || !ControlerTab.Confirm())
     {
         DialogResult = DialogResult.Cancel;
     }
 }
コード例 #2
0
        private void SettingsDialog_Load(object sender, EventArgs e)
        {
            ActiveColor          = Options.BackColor;
            Controller.BackColor = InactiveColor;

            OptionsCTL.Settings            = Settings;
            OptionsCTL.GameDir             = GameDir;
            OptionsCTL.NeedLicenseValidate = NeedLicenseValidate;
            OptionsCTL.Setup();


            ControlerTab.Settings = Settings;
            ControlerTab.Setup();

            ControlerTab.Visible = false;
        }