示例#1
0
 private void ExeModeSwitch_Click(object sender, EventArgs e)
 {
     if (ExeMode == 1)
     {
         SuperSlideee.HideSync(ExeModeSwitch);
         SuperSlideee.HideSync(TextArea);
         MonacoEditor.Document.InvokeScript("SetText", new object[] { TextArea.Text });
         SuperSlideee.ShowSync(MonacoEditor);
         ExeMode = 2;
         ExeModeSwitch.ButtonText = "Editor Mode: Monaco";
         SuperSlideee.ShowSync(ExeModeSwitch);
     }
     else
     {
         HtmlDocument document   = this.MonacoEditor.Document;
         string       scriptName = "GetText";
         object[]     array      = new string[0];
         object[]     args       = array;
         SuperSlideee.HideSync(ExeModeSwitch);
         SuperSlideee.HideSync(MonacoEditor);
         TextArea.Text = document.InvokeScript(scriptName, args).ToString();
         SuperSlideee.ShowSync(TextArea);
         ExeMode = 1;
         ExeModeSwitch.ButtonText = "Editor Mode: ScintillaNET";
         SuperSlideee.ShowSync(ExeModeSwitch);
     }
 }
示例#2
0
 private void InjectTab_Click(object sender, EventArgs e)
 {
     InjectPanel.BringToFront();
     if (!InjectPanel.Visible)
     {
         SuperSlideee.HideSync(ExecPanel);
         ExecPanel.Visible = false;
         SuperSlideee.ShowSync(InjectPanel);
         InjectPanel.Visible = true;
     }
 }
示例#3
0
 private void IconBtn_Click(object sender, EventArgs e)
 {
     if (TabMgrPanel.Width == 200)
     {
         if (ExecPanel.Visible)
         {
             IsExecPanel = true;
             SuperSlideee.HideSync(ExecPanel);
         }
         else
         {
             IsExecPanel = false;
             SuperSlideee.HideSync(InjectPanel);
         }
         SuperSlideee.HideSync(TabMgrPanel);
         TabMgrPanel.Width    = 55;
         ExecPanel.Location   = new Point(55, 35);
         ExecPanel.Width      = 761;
         InjectPanel.Location = new Point(55, 35);
         InjectPanel.Width    = 761;
         Title.Visible        = false;
         SuperSlideee.ShowSync(TabMgrPanel);
         if (IsExecPanel)
         {
             SuperSlideee.ShowSync(ExecPanel);
         }
         else
         {
             SuperSlideee.ShowSync(InjectPanel);
         }
     }
     else
     {
         if (ExecPanel.Visible)
         {
             IsExecPanel = true;
             SuperSlideee.HideSync(ExecPanel);
         }
         else
         {
             IsExecPanel = false;
             SuperSlideee.HideSync(InjectPanel);
         }
         SuperSlideee.HideSync(TabMgrPanel);
         TabMgrPanel.Width    = 200;
         ExecPanel.Location   = new Point(203, 35);
         ExecPanel.Width      = 613;
         InjectPanel.Location = new Point(203, 35);
         InjectPanel.Width    = 613;
         Title.Visible        = true;
         SuperSlideee.ShowSync(TabMgrPanel);
         if (IsExecPanel)
         {
             SuperSlideee.ShowSync(ExecPanel);
         }
         else
         {
             SuperSlideee.ShowSync(InjectPanel);
         }
     }
 }