private void selectPet_button_Click(object sender, EventArgs e) { SelectPetForm SPF = new SelectPetForm(user, false); SPF.Owner = this; SPF.ShowDialog(); GetProcedureList(editPet); }
private void selectPet_button_Click(object sender, EventArgs e) { SelectPetForm SPF = new SelectPetForm(user, true); SPF.Owner = this; SPF.ShowDialog(); if (pet_textBox.Text != String.Empty) { GetProcedureList(pet); } if (user.GetUserRole() != "Администратор") { phone_textBox.Visible = false; char[] charPhone = phone_textBox.Text.ToCharArray(); for (int i = 0; i < charPhone.Length - 3; i++) { labelPhone.Text += "* "; } for (int j = charPhone.Length - 3; j < charPhone.Length; j++) { labelPhone.Text += charPhone[j] + " "; } } }