Exemple #1
0
        /// <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();
        }
Exemple #3
0
 public ReportForm(DataModule dm, MainForm mnu)
 {
     InitializeComponent();
     DM      = dm;
     frmMenu = mnu;
 }
Exemple #4
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     DM = new DataModule(); // Create the data module and load the dataset
 }