예제 #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();
        }
예제 #2
0
파일: Form1.cs 프로젝트: zoso10/ErrorLogger
 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();
 }