private void setShowGrid(FormRegistrationHospital_1 from, string Gridname, bool isShow) { if (isShow) { ((Grid)(from.FindName(Gridname))).Visibility = Visibility.Visible; } else { ((Grid)(from.FindName(Gridname))).Visibility = Visibility.Hidden; } }
private void setButtonValue(FormRegistrationHospital_1 form, string gridName, string TextBlockName, string value) { ((Grid)(form.FindName(gridName))).Visibility = Visibility.Visible; ((TextBlock)(form.FindName(TextBlockName))).Text = value; }