private void btnEdit_Click(object sender, EventArgs e)
        {
            if (Convert.ToInt32(lblID.Text) <= 0)
            {
                return;
            }
            var model = new WareHouseModel()
            {
                WareHouseId   = Convert.ToInt32(lblID.Text),
                WareHouseName = lblName.Text,
                WareHouseType = lblType.Text,
                Description   = lblRemarks.Text
            };

            var frm = new FrmWareHouseEntry(model, this);

            frm.ShowDialog(this);
        }
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (Convert.ToInt32(lblID.Text) <= 0) return;
            var model = new WareHouseModel()
            {
                WareHouseId = Convert.ToInt32(lblID.Text),
                WareHouseName = lblName.Text,
                WareHouseType = lblType.Text,
                Description = lblRemarks.Text
            };

            var frm = new FrmWareHouseEntry(model, this);
            frm.ShowDialog(this);
        }
        private void btnNew_Click(object sender, EventArgs e)
        {
            var frm = new FrmWareHouseEntry(null, this);

            frm.ShowDialog(this);
        }
 private void btnNew_Click(object sender, EventArgs e)
 {
     var frm = new FrmWareHouseEntry(null, this);
     frm.ShowDialog(this);
 }