Example #1
0
        public static bool ShowRecommendReboot()
        {
            RecommendReboot ownWindow = new RecommendReboot();

            ownWindow.ShowDialog();
            return(ownWindow.flg);
        }
Example #2
0
        /// <summary>
        ///  Launch BMS utilities.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Launch_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                //if (!appReg.isNameDefined())
                //  if (CallsignWindow.ShowCallsignWindow(appReg))
                //      return;

                if (!appReg.isNameDefined())
                {
                    if (RecommendReboot.ShowRecommendReboot())
                    {
                        appReg.getLauncher().execute(sender, true);
                    }
                    return;
                }

                appReg.getLauncher().execute(sender);
            }
            catch (FileNotFoundException ex)
            {
                Diagnostics.WriteLogFile(ex);
                Close();
            }
        }