Ejemplo n.º 1
0
        private void checkPermissionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // Opens up an EditAdd Servers form with the Check Permissions tab selected
            this.Cursor = Cursors.WaitCursor;
            EditAddServers f2 = new EditAddServers(2, servers);

            f2.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            f2.ShowDialog();
            this.Cursor = Cursors.Default;
            servers     = f2.Servers;
            RefreshComboBox();
            customMessageTextBox.Text = f2.customMessage;
            statusMessage.Text        = f2.Message;
            Refresh();
        }
Ejemplo n.º 2
0
 private void addServerToolStripMenuItemClick(object sender, EventArgs e)
 {
     // Opens up an EditAdd Servers form with the Add Servers tab selected
     this.Cursor = Cursors.WaitCursor;
     EditAddServers f2 = new EditAddServers(0, servers);
     f2.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     f2.ShowDialog();
     this.Cursor = Cursors.Default;
     servers = f2.Servers;
     RefreshComboBox();
     customMessageTextBox.Text = f2.customMessage;
     statusMessage.Text = f2.Message;
     Refresh();
 }