Пример #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (Convert.ToInt32(lblID.Text) <= 0)
            {
                return;
            }
            var model = new BrandModel()
            {
                BrandId     = Convert.ToInt32(lblID.Text),
                BrandName   = lblName.Text,
                Description = lblRemarks.Text
            };

            var frm = new FrmBrandEntry(model, this);

            frm.ShowDialog(this);
        }
Пример #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (Convert.ToInt32(lblID.Text) <= 0) return;
            var model = new BrandModel()
            {
                BrandId = Convert.ToInt32(lblID.Text),
                BrandName = lblName.Text,
                Description = lblRemarks.Text
            };

            var frm = new FrmBrandEntry(model, this);
            frm.ShowDialog(this);
        }
Пример #3
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     var frm = new FrmBrandEntry(null, this);
     frm.ShowDialog(this);
 }
Пример #4
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            var frm = new FrmBrandEntry(null, this);

            frm.ShowDialog(this);
        }