コード例 #1
0
ファイル: watchListForm.cs プロジェクト: bmahaj2/Projects
        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();


        }
コード例 #2
0
 public HistoryStatementForm(BusinessTier.User usr, BusinessTier.BusinessLogic b)
 {
     InitializeComponent();
     this.loggedUser = usr;
     this.bLogic     = b;
     displayHistoryStatementGrid();
 }
コード例 #3
0
 public HistoryStatementForm(BusinessTier.User usr, BusinessTier.BusinessLogic b)
 {
     InitializeComponent();
     this.loggedUser = usr;
     this.bLogic = b;
     displayHistoryStatementGrid();
 }
コード例 #4
0
ファイル: RecoverForm.cs プロジェクト: bmahaj2/Projects
 public RecoverForm(String question, String usr, BusinessTier.BusinessLogic b)
 {
     InitializeComponent();
     this.question            = question;
     this.userName            = usr;
     this.bLogic              = b;
     this.questionLabel.Text += " " + question.ToString();
 }
コード例 #5
0
ファイル: RecoverForm.cs プロジェクト: bmahaj2/Projects
 public RecoverForm(String question, String usr, BusinessTier.BusinessLogic b)
 {
     InitializeComponent();
     this.question = question;
     this.userName = usr;
     this.bLogic = b;
     this.questionLabel.Text += " " + question.ToString();
 }
コード例 #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");
 }
コード例 #7
0
ファイル: LoginForm.cs プロジェクト: bmahaj2/Projects
 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");
 }
コード例 #8
0
ファイル: PurchaseForm.cs プロジェクト: bmahaj2/Projects
        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();
        }
コード例 #9
0
ファイル: PurchaseForm.cs プロジェクト: bmahaj2/Projects
        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();

        }
コード例 #10
0
ファイル: MainForm.cs プロジェクト: bmahaj2/Projects
 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"));
 }
コード例 #11
0
ファイル: MainForm.cs プロジェクト: bmahaj2/Projects
 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"));
 }
コード例 #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();
        }
コード例 #13
0
ファイル: ChangePassword.cs プロジェクト: bmahaj2/Projects
 public ChangePassword(string usr, BusinessTier.BusinessLogic b)
 {
     InitializeComponent();
     this.userName = usr;
     this.bLogic = b;
 }
コード例 #14
0
ファイル: ChangePassword.cs プロジェクト: bmahaj2/Projects
 public ChangePassword(string usr, BusinessTier.BusinessLogic b)
 {
     InitializeComponent();
     this.userName = usr;
     this.bLogic   = b;
 }