コード例 #1
0
 private void frmAddEditCustomer_Load(object sender, EventArgs e)
 {
     cboCompany.DisplayMember = "CompanyName";
     cboCompany.ValueMember   = "ID";
     using (GoDinghyDBEntities db = new GoDinghyDBEntities())
     {
         cboCompany.DataSource = db.CompanyTables.ToList();
     }
 }
コード例 #2
0
        private void frmMainNormal_Load(object sender, EventArgs e)
        {
            db = new GoDinghyDBEntities();
            companyTableBindingSource.DataSource   = db.CompanyTables.ToList();
            customersTableBindingSource.DataSource = db.CustomersTables.ToList();
            label1.Text += " ";

            if (chkFullScreen.CheckState == CheckState.Checked)
            {
                chkFullScreen.Text = "True";
            }
            else
            {
                chkFullScreen.Text = "False";
            }
        }
コード例 #3
0
ファイル: Form1.cs プロジェクト: MichaelJagd/CRM_GoDinghy
 private void Form1_Load(object sender, EventArgs e)
 {
     db = new GoDinghyDBEntities();
     usersTableBindingSource.DataSource = db.UsersTables.ToList();
 }
コード例 #4
0
 private void loadCompany()
 {
     db = new GoDinghyDBEntities();
     companyTableBindingSource.DataSource = db.CompanyTables.ToList();
 }