Example #1
0
        public void LoadNewRecord()
        {
            // loading the new form and setting the properties of the form
            FrmWarehouse oWarehouse = new FrmWarehouse
            {
                UserIDs  = Users,
                Modeform = "New"
            };

            oWarehouse.ShowDialog();
        }
Example #2
0
        public void LoadSelectedRecord()
        {
            // loading an old record into the form and displaying it
            FrmWarehouse oWarehouse = new FrmWarehouse
            {
                UserIDs  = Users,
                Modeform = "Old"
            };

            oWarehouse.TxtWarehouseRef.Text = WarehouseRef;
            oWarehouse.ShowDialog();
        }