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();
        }
        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();
        }
        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();
        }