Ejemplo n.º 1
0
        public watchListForm(BusinessTier.User usr, BusinessTier.BusinessLogic b)
        {
            InitializeComponent();
           
            this.loggedUser = usr;
            this.bLogic = b;
            searchAutocomplete();

            if (bLogic.isWatchlistEmpty(loggedUser.id))
            {
                watchlistDataGridView.Rows.Clear();
                
                removeFromWatchlist.Enabled = false;
            }
            else
            {
                populateWatchListTable();
                removeFromWatchlist.Enabled = true;
                //populateGraph();
            }
            industriesComboBox.ValueMember = "Industry";
            industriesComboBox.DisplayMember = "Industry";
            industriesComboBox.DataSource = bLogic.populateIndustryDropDown();


        }
Ejemplo n.º 2
0
 public HistoryStatementForm(BusinessTier.User usr, BusinessTier.BusinessLogic b)
 {
     InitializeComponent();
     this.loggedUser = usr;
     this.bLogic     = b;
     displayHistoryStatementGrid();
 }
Ejemplo n.º 3
0
 public HistoryStatementForm(BusinessTier.User usr, BusinessTier.BusinessLogic b)
 {
     InitializeComponent();
     this.loggedUser = usr;
     this.bLogic = b;
     displayHistoryStatementGrid();
 }
Ejemplo n.º 4
0
 public RecoverForm(String question, String usr, BusinessTier.BusinessLogic b)
 {
     InitializeComponent();
     this.question            = question;
     this.userName            = usr;
     this.bLogic              = b;
     this.questionLabel.Text += " " + question.ToString();
 }
Ejemplo n.º 5
0
 public RecoverForm(String question, String usr, BusinessTier.BusinessLogic b)
 {
     InitializeComponent();
     this.question = question;
     this.userName = usr;
     this.bLogic = b;
     this.questionLabel.Text += " " + question.ToString();
 }
Ejemplo n.º 6
0
 public LoginForm()
 {
     InitializeComponent();
     loginFormLoadingCircle.Visible           = false;
     loginFormLoadingCircle.Active            = true;
     loginFormLoadingCircle.OuterCircleRadius = 30;
     loginFormLoadingCircle.InnerCircleRadius = 14;
     loginFormLoadingCircle.SpokeThickness    = 3;
     loginFormLoadingCircle.NumberSpoke       = 14;
     bLogic = new BusinessLogic("stockMarketDB.mdf");
 }
Ejemplo n.º 7
0
 public LoginForm()
 {
     InitializeComponent();
     loginFormLoadingCircle.Visible = false;
     loginFormLoadingCircle.Active = true;
     loginFormLoadingCircle.OuterCircleRadius = 30;
     loginFormLoadingCircle.InnerCircleRadius = 14;
     loginFormLoadingCircle.SpokeThickness = 3;
     loginFormLoadingCircle.NumberSpoke = 14;
     bLogic = new BusinessLogic("stockMarketDB.mdf");
 }
Ejemplo n.º 8
0
        public PurchaseForm(BusinessTier.User usr, BusinessTier.BusinessLogic b)
        {
            InitializeComponent();
            this.loggedUser       = usr;
            this.bLogic           = b;
            this.nameLabel.Text  += " " + loggedUser.firstName.ToString() + " " + loggedUser.lastName.ToString();
            this.cashTextBox.Text = loggedUser.balance.ToString();
            this.Size             = new Size(851, 620);

            searchAutocomplete();
            industriesComboBox.ValueMember   = "Industry";
            industriesComboBox.DisplayMember = "Industry";
            industriesComboBox.DataSource    = bLogic.populateIndustryDropDown();
        }
Ejemplo n.º 9
0
        public PurchaseForm(BusinessTier.User usr, BusinessTier.BusinessLogic b)
        {
            InitializeComponent();
            this.loggedUser = usr;
            this.bLogic = b;
            this.nameLabel.Text += " " + loggedUser.firstName.ToString() +" "+ loggedUser.lastName.ToString();
            this.cashTextBox.Text = loggedUser.balance.ToString();
            this.Size = new Size(851, 620);

            searchAutocomplete();
            industriesComboBox.ValueMember = "Industry";
            industriesComboBox.DisplayMember = "Industry";
            industriesComboBox.DataSource = bLogic.populateIndustryDropDown();

        }
Ejemplo n.º 10
0
 public MainForm(BusinessTier.User usr, BusinessTier.BusinessLogic b)
 {
     InitializeComponent();
     this.loggedUser = usr;
     this.bLogic = b;
     this.mainFormLoadingCircle.Visible = false;
     this.mainFormLoadingCircle.Active = true;
     this.mainFormLoadingCircle.OuterCircleRadius = 42;
     this.mainFormLoadingCircle.InnerCircleRadius = 14;
     this.mainFormLoadingCircle.SpokeThickness = 4;
     this.mainFormLoadingCircle.NumberSpoke = 14;
     // this enforces the user to see the hotkeys
     mainFormMenuStrip.Renderer = new CustomMenuStripRenderer();
     this.KeyPreview = true;
     this.KeyDown += new KeyEventHandler(Form_KeyDown);
     this.Size = new Size(1002, 783);
     populateControls(this.zedPieControl);
     this.nameLabel.Text += " " + loggedUser.firstName.ToString() + " " + loggedUser.lastName.ToString();
     this.cashTextBox.Text = loggedUser.balance.ToString(String.Format("c"));
 }
Ejemplo n.º 11
0
 public MainForm(BusinessTier.User usr, BusinessTier.BusinessLogic b)
 {
     InitializeComponent();
     this.loggedUser = usr;
     this.bLogic     = b;
     this.mainFormLoadingCircle.Visible           = false;
     this.mainFormLoadingCircle.Active            = true;
     this.mainFormLoadingCircle.OuterCircleRadius = 42;
     this.mainFormLoadingCircle.InnerCircleRadius = 14;
     this.mainFormLoadingCircle.SpokeThickness    = 4;
     this.mainFormLoadingCircle.NumberSpoke       = 14;
     // this enforces the user to see the hotkeys
     mainFormMenuStrip.Renderer = new CustomMenuStripRenderer();
     this.KeyPreview            = true;
     this.KeyDown += new KeyEventHandler(Form_KeyDown);
     this.Size     = new Size(1002, 783);
     populateControls(this.zedPieControl);
     this.nameLabel.Text  += " " + loggedUser.firstName.ToString() + " " + loggedUser.lastName.ToString();
     this.cashTextBox.Text = loggedUser.balance.ToString(String.Format("c"));
 }
Ejemplo n.º 12
0
        public watchListForm(BusinessTier.User usr, BusinessTier.BusinessLogic b)
        {
            InitializeComponent();

            this.loggedUser = usr;
            this.bLogic     = b;
            searchAutocomplete();

            if (bLogic.isWatchlistEmpty(loggedUser.id))
            {
                watchlistDataGridView.Rows.Clear();

                removeFromWatchlist.Enabled = false;
            }
            else
            {
                populateWatchListTable();
                removeFromWatchlist.Enabled = true;
                //populateGraph();
            }
            industriesComboBox.ValueMember   = "Industry";
            industriesComboBox.DisplayMember = "Industry";
            industriesComboBox.DataSource    = bLogic.populateIndustryDropDown();
        }
Ejemplo n.º 13
0
 public ChangePassword(string usr, BusinessTier.BusinessLogic b)
 {
     InitializeComponent();
     this.userName = usr;
     this.bLogic = b;
 }
Ejemplo n.º 14
0
 public ChangePassword(string usr, BusinessTier.BusinessLogic b)
 {
     InitializeComponent();
     this.userName = usr;
     this.bLogic   = b;
 }