Example #1
0
 public void SetUserRole(Role role)
 {
     content.OpenNewsForm();
     if (role == Role.CUSTOMER)
     {
         StandardUserSetting();
     }
     else if (role == Role.ADMIN)
     {
         AdminUserSettings();
     }
     else
     {
         EmptyUserSetting();
     }
 }
Example #2
0
        public MainForm()
        {
            InitializeComponent();
            desinger = DesingerServiceImpl.GetInstance();
            desinger.AddFormToDesinger(this);
            desinger.AddPanelToChangeColor(menuPanel);
            desinger.AddPanelToChangeColor(logoPanel);

            content = ContentPanelControllerImpl.CreateController(contentPanel);
            content.OpenNewsForm();
        }