public BrandForm(DataModule dm, MainForm mnu) { InitializeComponent(); DM = dm; frmMenu = mnu; BindControls(); }
private BrandForm frmBrand; // the reference to the Client form private void MainForm_Load(object sender, EventArgs e) { DM = new DataModule(); //create the data module and load the dataset }