Пример #1
0
        public MainDashboard(String userRole, String userName, int userID)
        {
            InitializeComponent();

            if (userRole == "Cashier")
            {
                ItemsPanel.Hide();
                CashierPanel.Hide();
                BillsPanel.Hide();
                CustomerPanel.Hide();
                TransactionPanel.Hide();
            }

            /*userNameLabel.Text = userName;
             * userIDLabel.Text = userID.ToString();*/
        }