/// <summary> /// change constructor to accept DataModule and MainForm reference /// </summary> /// <param name="dm"></param> /// <param name="mnu"></param> public WhanauForm(DataModule dm, MainForm mnu) { InitializeComponent(); DM = dm; frmMenu = mnu; BindControls(); }
/// <summary> /// change constructor to accept DataModule and MainForm reference /// </summary> /// <param name="dm"></param> /// <param name="mnu"></param> public EventRegisterForm(DataModule dm, MainForm mnu) { InitializeComponent(); DM = dm; frmMenu = mnu; cmEvent = (CurrencyManager)this.BindingContext[DM.dsKaiOordinate, "Event"]; cmWhanau = (CurrencyManager)this.BindingContext[DM.dsKaiOordinate, "Whanau"]; cmRegistration = (CurrencyManager)this.BindingContext[DM.dsKaiOordinate, "EVENT.FK_EVENT_EVENTREGISTER"]; BindControls(); }
public ReportForm(DataModule dm, MainForm mnu) { InitializeComponent(); DM = dm; frmMenu = mnu; }
private void MainForm_Load(object sender, EventArgs e) { DM = new DataModule(); // Create the data module and load the dataset }