private void BtnLogoutAndStartQuest_Click(object sender, EventArgs e)
 {
     LogoutAndStartNewQuest logoutAndStartNewQuest = new LogoutAndStartNewQuest();
     StringQuery stringQuery = new StringQuery("Next Quest", "Enter the name of the next quest script that you want to start");
     if (stringQuery.ShowDialog() == DialogResult.OK)
     {
         logoutAndStartNewQuest.NewScriptFile = stringQuery.ResultString;
         this.method_3(logoutAndStartNewQuest);
     }
 }
 private void BtnFocusMob_Click(object sender, EventArgs e)
 {
     StringQuery stringQuery = new StringQuery("Enter substring", "Enter the substring of the mob, the focus should be set on");
     if (stringQuery.ShowDialog() == DialogResult.OK)
     {
         this.method_3(new SetFocusTarget
         {
             TargetSubstring = stringQuery.ResultString
         });
     }
 }
 private void teleportBtn_Click(object sender, EventArgs e)
 {
     ScriptEditor.Class76 @class = new ScriptEditor.Class76();
     @class.d3Actor_0 = null;
     Framework.RunInD3ContextSynced(new Action(@class.method_0));
     if (@class.d3Actor_0 != null)
     {
         UseTeleporter useTeleporter = new UseTeleporter();
         StringQuery stringQuery = new StringQuery("Use Teleporter", "Which target should be used? (First Button = 0, Second Button = 1, ...)");
         if (stringQuery.ShowDialog() == DialogResult.OK)
         {
             int teleportIndex;
             if (int.TryParse(stringQuery.ResultString, out teleportIndex))
             {
                 useTeleporter.TeleportIndex = teleportIndex;
                 this.method_3(useTeleporter);
             }
             else
             {
                 MessageBox.Show("Cannot convert \"" + stringQuery.ResultString + "\" to a number");
             }
         }
     }
     else
     {
         MessageBox.Show("The next teleporter is too far away.", "Error", MessageBoxButtons.OK);
     }
 }
 private void BtnComment_Click(object sender, EventArgs e)
 {
     StringQuery stringQuery = new StringQuery("Enter comment", "Enter the comment you want to place");
     if (stringQuery.ShowDialog() == DialogResult.OK)
     {
         this.method_3(new ScriptComment
         {
             Text = stringQuery.ResultString
         });
     }
 }
 private void nextScriptBtn_Click(object sender, EventArgs e)
 {
     StringQuery stringQuery = new StringQuery("Load Questfile", "Name of the next questfile:");
     DialogResult dialogResult = stringQuery.ShowDialog();
     if (dialogResult == DialogResult.OK)
     {
         this.method_3(new LoadNextScript
         {
             ScriptFileName = stringQuery.ResultString
         });
     }
 }