Example #1
0
        /// <summary>
        /// Load app settings
        /// </summary>
        private void LoadSettings()
        {
            alwaysOnTopToolStripMenuItem.Checked = Settings.Default.MainFormTopMost;
            this.TopMost = Settings.Default.MainFormTopMost;

            if (Settings.Default.DeviceBotEnabled)
            {
                AutoResponderScript = new SDEmuScript();
                AutoResponderScript.Compile(Settings.Default.CurrentBotScript);
            }
        }
 private bool Compile()
 {
     if (!compiled)
     {
         if (sdemuScript.Compile(txtBotEditor.Text))
         {
             compiled            = true;
             lblCompiled.Visible = true;
         }
         else
         {
             String s = "\n";
             foreach (CompilerError ce in sdemuScript.Errors)
             {
                 s += ce.Line + ". " + ce.ErrorText + "\n";
             }
             Log.Error(s);
         }
     }
     return(compiled);
 }
Example #3
0
        /// <summary>
        /// Load app settings
        /// </summary>
        private void LoadSettings()
        {
            alwaysOnTopToolStripMenuItem.Checked = Settings.Default.MainFormTopMost;
            this.TopMost = Settings.Default.MainFormTopMost;

            if (Settings.Default.DeviceBotEnabled)
            {
                AutoResponderScript = new SDEmuScript();
                AutoResponderScript.Compile(Settings.Default.CurrentBotScript);
            }
        }