Example #1
0
        private void logoutButton_Click(object sender, EventArgs e)
        {
            loggedInTime.Stop();
            dh.RemoveUnplacedOrder(_accountOwner.ClientID);

            form_StartingWindow startingWindow = new form_StartingWindow();

            this.Hide();
            startingWindow.ShowDialog();
            this.Close();
        }
Example #2
0
        private void settingsButton_Click(object sender, EventArgs e)
        {
            form_AccountSettings settings = new form_AccountSettings(_accountOwner);

            settings.ShowDialog();
            if (RefreshClient() == 0)
            {
                dh.RemoveUnplacedOrder(_accountOwner.ClientID);
                this.Hide();
                form_StartingWindow startingWindow = new form_StartingWindow();
                startingWindow.ShowDialog();
                this.Close();
            }
        }