public ShellUserControl(ShellURL url)
 {
     shellURL = url;
     shell = new PHPShell.PHPShell(url);
     shell.NewStatusToReport += new StatusEvent(shell_NewStatusToReport);
     InitializeComponent();
 }
 private void buttonAddURL_Click(object sender, EventArgs e)
 {
     AddURLForm auf = new AddURLForm();
     if (auf.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         ShellURL newURL = new ShellURL(auf.newURL, auf.Password, auf.PreString);
         AddURL(newURL);
         ShellList.Instance.ShellURLs.Add(newURL);
         ShellList.Instance.SaveURLList();
     }
 }
 void AddURL(ShellURL url)
 {
     if (dataGridView1.InvokeRequired)
     {
         StringParam sp = new StringParam(AddURL);
         dataGridView1.Invoke(sp, new object[1] { url });
     }
     else
     {
         URLs.Add(url);
     }
 }
Beispiel #4
0
 public PHPShell(ShellURL url)
 {
     this.url  = url;
     encMethod = Convert.ToBase64String(ASCIIEncoding.ASCII.GetBytes(encMethod));
     GenerateShell();
 }
 public PHPShell(ShellURL url)
 {
     this.url = url;
     encMethod = Convert.ToBase64String(ASCIIEncoding.ASCII.GetBytes(encMethod));
     GenerateShell();
 }