//}}}
        public void ClientServerOnLoad() // {{{
        {
/*
 *          if(!DesignerHelper.IsUserAdministrator())
 *          {
 *              string msg = "This program should be started with administrator"
 +        " rights to allow control of WINDOWS SYSTEM SETTINGS.";
 +              MessageBox.Show(msg, Settings.APP_NAME, MessageBoxButtons.OK, MessageBoxIcon.Error);
 +          }
 */
            if (Settings.Settings_saved)
            {
                MainFormInstance.set_settings_state(false);
            }
            else
            {
                MainFormInstance.set_settings_state(true);
            }
        }
Exemple #2
0
        //}}}
        public void ClientServerOnLoad() // {{{
        {
            if (!ServerHelper.IsUserAdministrator())
            {
                string msg = "AT INTALL TIME ONLY:\n"
                             + "This program should be started with administrator"
                             + " rights to allow control of WINDOWS SYSTEM SETTINGS"
                             + " such as:\n"
                             + "- Opening Firewall access to the server from android devices\n"
                             + "- Starting the server at Windows startup"
                ;
                MessageBox.Show(msg, Settings.APP_NAME, MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }

            if (Settings.Settings_saved)
            {
                MainFormInstance.set_settings_state(false);
            }
            else
            {
                MainFormInstance.set_settings_state(true);
            }
        }