コード例 #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (Convert.ToInt32(lblID.Text) <= 0)
            {
                return;
            }
            var model = new FlavourModel()
            {
                FlavourId   = Convert.ToInt32(lblID.Text),
                FlavourName = lblName.Text,
                Description = lblRemarks.Text
            };

            var frm = new FrmFlavourEntry(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 FlavourModel()
            {
                FlavourId = Convert.ToInt32(lblID.Text),
                FlavourName = lblName.Text,
                Description = lblRemarks.Text
            };

            var frm = new FrmFlavourEntry(model, this);
            frm.ShowDialog(this);
        }
コード例 #3
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            var frm = new FrmFlavourEntry(null, this);

            frm.ShowDialog(this);
        }
コード例 #4
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     var frm = new FrmFlavourEntry(null, this);
     frm.ShowDialog(this);
 }