상속: XtraForm
예제 #1
0
파일: MainForm.cs 프로젝트: wind101net/atmo
        private void barButtonItemPrefs_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            try {

                var settingsForm = new SettingsForm(AppContext.PersistentState, _internetStreamingStatistics);

                if (settingsForm.ShowDialog(this) == DialogResult.OK)
                {
                    //time_correction = settingsForm.time_correction;
                }

                //rp
                // send event after close SettingsForm
                timerAwekas_Tick(null, null);
                timerWindFinder_Tick(null,null);
                timerRapidFire_TickWU(null, null);

            }
            catch(Exception ex) {
                Log.Error("Settings change failed.", ex);
                MessageBox.Show("Settings change failed.", "Failure");
            }

            //rp zak
            // HandleRapidFireSetup();
        }
예제 #2
0
파일: MainForm.cs 프로젝트: fparaggio/atmo
 private void barButtonItemPrefs_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try {
         var settingsForm = new SettingsForm(AppContext.PersistentState);
         settingsForm.ShowDialog(this);
     }
     catch(Exception ex) {
         Log.Error("Settings change failed.", ex);
         MessageBox.Show("Settings change failed.", "Failure");
     }
     HandleRapidFireSetup();
 }