Exemplo n.º 1
0
        public AdministratorCashDispenserStatePanel(
            AdministratorCashDispenserStatePanelVM administratorCashDispenserStatePanelVM)
        {
            InitializeComponent();

            // Set login panel information
            this.loginPanel = administratorCashDispenserStatePanelVM.loginPanel;

            // Set administrator manage basic users panel information
            this.administratorPanel =
                administratorCashDispenserStatePanelVM.administratorPanel;


            // Set exchange rates information
            this.PLN_ExchangeRateValueLabel.Text =
                CashWithdrawalProperties.exchangeRates.PLN_exchangeRate.ToString(
                    new CultureInfo("en-US"));

            this.USD_ExchangeRateValueLabel.Text =
                CashWithdrawalProperties.exchangeRates.USD_exchangeRate.ToString(
                    new CultureInfo("en-US"));

            this.EUR_ExchangeRateValueLabel.Text =
                CashWithdrawalProperties.exchangeRates.EUR_exchangeRate.ToString(
                    new CultureInfo("en-US"));

            this.GBP_ExchangeRateValueLabel.Text =
                CashWithdrawalProperties.exchangeRates.GBP_exchangeRate.ToString(
                    new CultureInfo("en-US"));
        }
Exemplo n.º 2
0
        private void CashWithdrawalStateButton_Click(object sender, EventArgs e)
        {
            // Redirect to administrator cash dispenser state panel
            AdministratorCashDispenserStatePanelVM administratorCashDispenserStatePanelVM =
                new AdministratorCashDispenserStatePanelVM
            {
                loginPanel         = this.loginPanel,
                administratorPanel = this
            };

            AdministratorCashDispenserStatePanel administratorCashDispenserStatePanel =
                new AdministratorCashDispenserStatePanel(
                    administratorCashDispenserStatePanelVM);

            administratorCashDispenserStatePanel.Show();
            this.Hide();
        }