Пример #1
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            //get the entered userID and send it to the business tier

            try //handling any exceptions from front end
            {
                if (Convert.ToUInt32(txtuserID.Text) > 0)
                {
                    App.UID = Convert.ToUInt32(txtuserID.Text);

                    UserAccount win2 = new UserAccount();
                    this.Hide();
                    win2.Left = App.GetWindowLeft(this);
                    win2.Top  = App.GetWindowTop(this);
                    win2.Show();
                }

                else
                {
                    throw new Exception();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.GetType());
            }

            //show the useraccount window
        }
Пример #2
0
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            Transactions transWindow = new Transactions(selectedAccountID);

            this.Hide();
            transWindow.Left = App.GetWindowLeft(this);
            transWindow.Top  = App.GetWindowTop(this);
            transWindow.Show();
        }
Пример #3
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            UserAccount win2 = new UserAccount();

            this.Hide();
            win2.Left = App.GetWindowLeft(this);
            win2.Top  = App.GetWindowTop(this);
            win2.Show();
        }
Пример #4
0
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            BankAccounts bAccWindow = new BankAccounts();

            this.Hide();
            bAccWindow.Left = App.GetWindowLeft(this);
            bAccWindow.Top  = App.GetWindowTop(this);
            bAccWindow.Show();
        }
Пример #5
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //call the create user function here
            App.UID = iUserAccess.CreateUser();


            //show the useraccount window
            UserAccount win2 = new UserAccount();

            this.Hide();
            win2.Left = App.GetWindowLeft(this);
            win2.Top  = App.GetWindowTop(this);
            win2.Show();
        }