Example #1
0
        private void btnSetting_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            bool Auto         = flowRunManager.Auto;
            int  Speed        = 10 - (flowRunManager.TimePerBlock - 1) / 100;
            bool FadingEffect = flowRunManager.PlayFadingEffect;
            bool SoundEffect  = flowRunManager.PlaySoundEffect;
            bool ClearResult  = flowRunManager.ClearOldResult;
            bool NotifyOnEnd  = flowRunManager.NotifyOnEnd;

            frmRunSetting dlg          = new frmRunSetting(Auto, Speed, FadingEffect, SoundEffect, ClearResult, NotifyOnEnd);
            DialogResult  dialogResult = dlg.ShowDialog();

            if (dialogResult == DialogResult.OK)
            {
                ApplyRunSetting(dlg);
            }
        }