Esempio n. 1
0
        private void Landing_Load(object sender, EventArgs e)
        {
            try
            {
                long userID = Properties.Settings.Default.UserID;

                var clientApi = new ClientAPI.ClientAPI();
                var userModel = clientApi.GetUser();

                if (userModel != null && userModel.ID != 0)
                {
                    Properties.Settings.Default.UserID     = userModel.ID;
                    Properties.Settings.Default.UserBranch = userModel.Branch.ID;
                    lbluser.Text = userModel.Username;
                }

                var registerCustomer = new CustomerRegistration();
                ShowForm(registerCustomer);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "VISA Instant Issuance", MessageBoxButtons.OK, MessageBoxIcon.Error);
                ErrorHandler.WriteError(ex);
            }
        }
Esempio n. 2
0
        private void menuRegisterCustomer_Click(object sender, EventArgs e)
        {
            var registerCustomer = new CustomerRegistration();

            ShowForm(registerCustomer);
        }