示例#1
0
        private void BtnAddSeq_Click(object sender, EventArgs e)
        {
            AddSequence m = new AddSequence(0);

            try
            {
                m.btnAdd.Text = "Add New";
                m.ShowDialog();
                RefreshSeq();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
示例#2
0
 private void BtnUpSeq_Click(object sender, EventArgs e)
 {
     if (dgvSequence.Rows.Count > 0)
     {
         var         seqId = Convert.ToInt32(dgvSequence.CurrentRow.Cells[0].Value);
         AddSequence m     = new AddSequence(seqId);
         m.txtDesign.Text = dgvSequence.CurrentRow.Cells[1].Value.ToString();
         m.btnAdd.Text    = "Update";
         m.ShowDialog();
         RefreshSeq();
     }
     else
     {
         MessageBox.Show("There is nothing to Update !!!", "Opration Failed", MessageBoxButtons.OK, icon: MessageBoxIcon.Error);
     }
 }