public TreatmentForm(DataModule dm, MainForm mnu)
 {
     InitializeComponent();
     DM      = dm;
     frmMenu = mnu;
     BindControls();
 }
 public VeterinarianForm(DataModule dm, MainForm mnu)
 {
     InitializeComponent();
     DM      = dm;
     frmMenu = mnu;
     BindControls();
 }
Exemple #3
0
 /// <summary>
 /// Constructor of the Treatment Form
 /// </summary>
 /// <param name="dm"></param>
 /// <param name="mnu"></param>
 public TreatmentForm(DataModule dm, MainForm mnu)
 {
     InitializeComponent();
     DM      = dm;
     frmMenu = mnu;
     BindControls();
     pnlAddTreatment.Left = 190;
     pnlAddTreatment.Top  = 121;
 }
Exemple #4
0
 /// <summary>
 /// Constructor of CatForm
 /// </summary>
 /// <param name="dm"></param>
 /// <param name="mnu"></param>
 public CatForm(DataModule dm, MainForm mnu)
 {
     InitializeComponent();
     DM      = dm;
     frmMenu = mnu;
     BindControls();
     pnlAddCat.Left = 200;
     pnlAddCat.Top  = 0;
 }
Exemple #5
0
 public OwnerForm(DataModule dm, MainForm mnu)
 {
     InitializeComponent();
     DM      = dm;
     frmMenu = mnu;
     BindControls();
     pnlAddOwner.Left    = 200;
     pnlAddOwner.Top     = 0;
     pnlUpdateOwner.Left = 200;
     pnlUpdateOwner.Top  = 0;
 }
Exemple #6
0
        //private DataTable dt = new DataTable();
        //private CurrencyManager cmDt;

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="dm"></param>
        /// <param name="mnu"></param>
        public VisitTreatmentForm(DataModule dm, MainForm mnu)
        {
            InitializeComponent();
            DM               = dm;
            frmMenu          = mnu;
            cmTreatment      = (CurrencyManager)this.BindingContext[DM.dsGlendene, "Treatment"];
            cmVisit          = (CurrencyManager)this.BindingContext[DM.dsGlendene, "Visit"];
            cmVisitTreatment = (CurrencyManager)this.BindingContext[DM.dsGlendene, "VisitTreatment"];
            //cmDt = (CurrencyManager)this.BindingContext[dt];
            cmVVT = (CurrencyManager)this.BindingContext[DM.dsGlendene, "Visit.Visit_VisitTreatment"];
            BindControls();
        }
Exemple #7
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     DM = new DataModule();//create the data module and load the dataset
 }
Exemple #8
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="dm"></param>
 /// <param name="mnu"></param>
 public InvoiceForm(DataModule dm, MainForm mnu)
 {
     InitializeComponent();
     DM      = dm;
     frmMenu = mnu;
 }
 private void MainForm_Load(object sender, EventArgs e)
 {
     DM = new DataModule();
 }