private CurrencyManager cmCountry; //reference to Country table currency manager public ClientForm(DataModule dm, MainForm mnu) { InitializeComponent(); DM = dm; frmMenu = mnu; BindControls(); //call the method BindControls for working with the data in the table pnlAddClient.Left = 120; //coordinates for the Add panel pnlAddClient.Top = 20; pnlUpdClient.Left = 120; //coordinates for the Update panel pnlUpdClient.Top = 20; }
public AddBookForm(DataModule dm, MainForm mnu) { InitializeComponent(); DM = dm; frmMenu = mnu; cmBook = (CurrencyManager)this.BindingContext[DM.dsBookBrokers, "Book"]; cmBookInfo = (CurrencyManager)this.BindingContext[DM.dsBookBrokers, "BookInfo"]; cmClient = (CurrencyManager)this.BindingContext[DM.dsBookBrokers, "Client"]; cmClientOrder = (CurrencyManager)this.BindingContext[DM.dsBookBrokers, "ClientOrder"]; txtClientFirstName.Enabled = false; txtClientLastName.Enabled = false; txtTitle.Enabled = false; //IDK why Rows.Visible for dgv doesn't work, so we just go hard way cmDt = (CurrencyManager)this.BindingContext[dtStoreBook]; clearBooks2(); BindControls(); //clearBooks(); DOESNT WORK }
private void MainForm_Load(object sender, EventArgs e) { DM = new DataModule(); //Create the data module and load the dataset }
public VendorsForm(DataModule dm, MainForm mnu) { InitializeComponent(); DM = dm; frmMenu = mnu; }