// ---------------------------------------------------------------------------------------------------------- // HANDLE VISIBLE TEXTBOXES AND BUTTONS --------------------------------------------------------------------- private void HideButtons() { // Hide buttons (except Adds) Ok_button.Hide(); Cancel_button.Hide(); Edit_button.Hide(); Delete_button.Hide(); Add_Tenant_button.Show(); Add_SP_button.Show(); }
private void ShowButtons() { // Hide all buttons (except edit and delete) Ok_button.Hide(); Cancel_button.Hide(); Add_Tenant_button.Hide(); Add_SP_button.Hide(); Edit_button.Show(); Delete_button.Show(); if (edit || AddSP || AddTenant) { Ok_button.Show(); Cancel_button.Show(); Edit_button.Hide(); Delete_button.Hide(); } }