Example #1
0
        private void TextBoxSearch_Leave(object sender, EventArgs e)
        {
            TextBoxLogic.LeaveTextBox(sender, "Name, Email, or Phone Number");
            TextBox passedBox = (TextBox)sender;

            if (passedBox.Text == "Name, Email, or Phone Number")
            {
                RefreshTable();
            }
        }
Example #2
0
 //CREATE ENUMS OR COLLECTION TO CLEAN UP CODE AND MAYBE TRANSFER FUCTIONS TO TEXTBOXLOGIC
 public void EnterAllFields()
 {
     TextBoxLogic.EnterTextBox(textBoxFirstName, "First Name");
     TextBoxLogic.EnterTextBox(textBoxLastName, "Last Name");
     TextBoxLogic.EnterTextBox(textBoxEmail, "*****@*****.**");
     TextBoxLogic.EnterTextBox(textBoxPhoneNumber, "xxx-xxx-xxxx");
     TextBoxLogic.EnterTextBox(textBoxFromStreet, "Street");
     TextBoxLogic.EnterTextBox(textBoxFromCity, "City");
     TextBoxLogic.EnterTextBox(textBoxFromState, "ST");
     TextBoxLogic.EnterTextBox(textBoxFromZipCode, "Zip Code");
     TextBoxLogic.EnterTextBox(textBoxToStreet, "Street");
     TextBoxLogic.EnterTextBox(textBoxToCity, "City");
     TextBoxLogic.EnterTextBox(textBoxToState, "ST");
     TextBoxLogic.EnterTextBox(textBoxToZipCode, "Zip Code");
     TextBoxLogic.EnterTextBox(textBoxRoomCount, "xx");
     TextBoxLogic.EnterTextBox(textBoxNotes, "Additional Information");
 }
Example #3
0
 public void ResetTextBoxes()
 {
     userInfo.CustomerID = 0;
     TextBoxLogic.ResetTextBox(textBoxFirstName, "First Name");
     TextBoxLogic.ResetTextBox(textBoxLastName, "Last Name");
     TextBoxLogic.ResetTextBox(textBoxEmail, "*****@*****.**");
     TextBoxLogic.ResetTextBox(textBoxPhoneNumber, "xxx-xxx-xxxx");
     TextBoxLogic.ResetTextBox(textBoxFromStreet, "Street");
     TextBoxLogic.ResetTextBox(textBoxFromCity, "City");
     TextBoxLogic.ResetTextBox(textBoxFromState, "ST");
     TextBoxLogic.ResetTextBox(textBoxFromZipCode, "Zip Code");
     TextBoxLogic.ResetTextBox(textBoxToStreet, "Street");
     TextBoxLogic.ResetTextBox(textBoxToCity, "City");
     TextBoxLogic.ResetTextBox(textBoxToState, "ST");
     TextBoxLogic.ResetTextBox(textBoxToZipCode, "Zip Code");
     TextBoxLogic.ResetTextBox(textBoxRoomCount, "xx");
     TextBoxLogic.ResetTextBox(textBoxNotes, "Additional Information");
     TextBoxLogic.ResetTextBox(textBoxSearch, "Name, Email, or Phone Number");
     RefreshTable();
 }
Example #4
0
 private void TextBoxSearch_Enter(object sender, EventArgs e)
 {
     TextBoxLogic.EnterTextBox(sender, "Name, Email, or Phone Number");
 }
Example #5
0
 private void TextBoxNotes_Leave(object sender, EventArgs e)
 {
     TextBoxLogic.LeaveTextBox(sender, "Additional Information");
 }
Example #6
0
 private void TextBoxNotes_Enter(object sender, EventArgs e)
 {
     TextBoxLogic.EnterTextBox(sender, "Additional Information");
 }
Example #7
0
 private void TextBoxEmail_Leave(object sender, EventArgs e)
 {
     TextBoxLogic.LeaveTextBox(sender, "*****@*****.**");
 }
Example #8
0
 private void TextBoxFirstName_Leave(object sender, EventArgs e)
 {
     TextBoxLogic.LeaveTextBox(sender, "First Name");
 }
Example #9
0
 private void TextBoxRoomCount_Leave(object sender, EventArgs e)
 {
     TextBoxLogic.LeaveTextBox(sender, "xx");
 }
Example #10
0
 private void TextBoxToState_Enter(object sender, EventArgs e)
 {
     TextBoxLogic.EnterTextBox(sender, "ST");
 }
Example #11
0
 private void TextBoxToCity_Leave(object sender, EventArgs e)
 {
     TextBoxLogic.LeaveTextBox(sender, "City");
 }
Example #12
0
 private void TextBoxToCity_Enter(object sender, EventArgs e)
 {
     TextBoxLogic.EnterTextBox(sender, "City");
 }
Example #13
0
 private void TextBoxFromStreet_Leave(object sender, EventArgs e)
 {
     TextBoxLogic.LeaveTextBox(sender, "Street");
 }
Example #14
0
 private void TextBoxFromStreet_Enter(object sender, EventArgs e)
 {
     TextBoxLogic.EnterTextBox(sender, "Street");
 }
Example #15
0
 private void TextBoxPhoneNumber_Leave(object sender, EventArgs e)
 {
     TextBoxLogic.LeaveTextBox(sender, "xxx-xxx-xxxx");
 }
Example #16
0
 private void TextBoxPhoneNumber_Enter(object sender, EventArgs e)
 {
     TextBoxLogic.EnterTextBox(sender, "xxx-xxx-xxxx");
 }
Example #17
0
 private void TextBoxRoomCount_Enter(object sender, EventArgs e)
 {
     TextBoxLogic.EnterTextBox(sender, "xx");
 }
Example #18
0
 private void TextBoxToState_Leave(object sender, EventArgs e)
 {
     TextBoxLogic.LeaveTextBox(sender, "ST");
 }
Example #19
0
 private void TextBoxToZipCode_Enter(object sender, EventArgs e)
 {
     TextBoxLogic.EnterTextBox(sender, "Zip Code");
 }
Example #20
0
 private void TextBoxToZipCode_Leave(object sender, EventArgs e)
 {
     TextBoxLogic.LeaveTextBox(sender, "Zip Code");
 }
Example #21
0
 private void TextBoxLastName_Enter(object sender, EventArgs e)
 {
     TextBoxLogic.EnterTextBox(sender, "Last Name");
 }
Example #22
0
 private void TextBoxEmail_Enter(object sender, EventArgs e)
 {
     TextBoxLogic.EnterTextBox(sender, "*****@*****.**");
 }