public MENU Hide <MENU>() where MENU : IMenu { MENU returnMenu = GetMenu <MENU>(); if (returnMenu != null) { returnMenu.Hide(); } return(returnMenu); }
private void Form1_Load(object sender, EventArgs e) { String type = Properties.Settings.Default.type; if (type == "utilisateur") { settings.Hide(); } hideAll(user_Login1, null); MENU.Hide(); user_Login1.load(this); }