Beispiel #1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            conn.ConnectionString = Properties.Settings.Default.FinanceConnectionString;

            try
            {
                conn.Open();

                daData.Fill(dsData);
                daSymbol.Fill(dsSymbol);

                dataBS.DataSource   = dsData.Tables[0];
                symbolBS.DataSource = dsSymbol.Tables[0];
            }
            catch (Exception ex)
            {
                log.Fatal("Can not populate tables", ex);
            }

            txtUsername.Text = "*****@*****.**";
            txtPassword.Text = "123456";

            fb = new FinanceBrowser(dsData, daData, dsSymbol);
            fb.DataDownloaded += new FinanceBrowser.EventHandler(fb_DataDownloaded);
            fb.Authenticated  += new FinanceBrowser.EventHandler(fb_Authenticated);

            SetUpDataGridViewColumns();
        }
        private void MainForm_Load(object sender, EventArgs e)
        {
            txtUsername.Text = "*****@*****.**";
            txtPassword.Text = "123456";
            lblCookies.Text = string.Empty;

            db = new FinanceEntities();
            fb = new FinanceBrowser(db);
            fb.DataDownloaded += new FinanceBrowser.EventHandler(fb_DataDownloaded);
            fb.Authenticated += new FinanceBrowser.EventHandler(fb_Authenticated);

            ObjectSet<Symbol> symbols = db.Symbols;
            symbolBindingSource.DataSource = symbols;

            SetDatumSource();
        }
Beispiel #3
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            conn.ConnectionString = Properties.Settings.Default.FinanceConnectionString;

            try
            {
                conn.Open();

                daData.Fill(dsData);
                daSymbol.Fill(dsSymbol);

                dataBS.DataSource = dsData.Tables[0];
                symbolBS.DataSource = dsSymbol.Tables[0];
            }
            catch (Exception ex)
            {
                log.Fatal("Can not populate tables", ex);
            }

            txtUsername.Text = "*****@*****.**";
            txtPassword.Text = "123456";

            fb = new FinanceBrowser(dsData, daData, dsSymbol);
            fb.DataDownloaded += new FinanceBrowser.EventHandler(fb_DataDownloaded);
            fb.Authenticated += new FinanceBrowser.EventHandler(fb_Authenticated);

            SetUpDataGridViewColumns();
        }