public void SetUserRole(Role role) { content.OpenNewsForm(); if (role == Role.CUSTOMER) { StandardUserSetting(); } else if (role == Role.ADMIN) { AdminUserSettings(); } else { EmptyUserSetting(); } }
public MainForm() { InitializeComponent(); desinger = DesingerServiceImpl.GetInstance(); desinger.AddFormToDesinger(this); desinger.AddPanelToChangeColor(menuPanel); desinger.AddPanelToChangeColor(logoPanel); content = ContentPanelControllerImpl.CreateController(contentPanel); content.OpenNewsForm(); }