コード例 #1
0
ファイル: frmUnFreezeItem.cs プロジェクト: mjtheevil/KingBKOT
 private void btnOK_Click(object sender, EventArgs e)
 {
     if (checkBox1.Checked)
     {
         updateClass.UpdateProductsStatues(textBox1.Text, false, int.Parse(textBox2.Text));
         this.Close();
     }
     else
     {
         MessageBox.Show("Please tick 'Unfreeze item' to perform item unfreezing", "SAVED - King Bar Beque Restaurant", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         return;
     }
 }
コード例 #2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            bool statues = false;

            valTextBox(textBox1);
            if (checkBox1.Checked && err.GetError(textBox1).Length == 0)
            {
                statues = true;
                updateClass.UpdateProductsStatues(textBox1.Text.Trim(), statues, int.Parse(textBox2.Text));
                textBox1.Clear();
                this.Close();
            }
            else
            {
                MessageBox.Show("Please tick 'freeze item' to perform item freezing" + Environment.NewLine + "Also Assign a reason for freezing the product", "SAVED - King Bar Beque Restaurant", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }
        }