Example #1
0
        private void getUsernamesButton_Click(object sender, EventArgs e)
        {
            getUsername getUsername    = new getUsername();
            string      usernameReturn = getUsername.getUsernames();

            outputWindow.Text = usernameReturn;
        }
Example #2
0
 private void runNetUserButton_Click(object sender, EventArgs e)
 {
     if (manualUsernameTextbox.Text != "")
     {
         string      usernamePass  = manualUsernameTextbox.Text;
         getUsername getUsername2  = new getUsername();
         string      netUserReturn = getUsername2.runNetUserOnUsername(usernamePass);
         netUserWindow.Text = netUserReturn;
     }
     else
     {
         netUserWindow.Text = "PLEASE ENTER A USERNAME IN BOX NUMBER 2!";
     }
 }