Example #1
0
        private void btAdd_Click(object sender, EventArgs e)
        {
            frmManageTraits fmManageTraits = new frmManageTraits();

            fmManageTraits.Op = "new";
            fmManageTraits.Show(this);
        }
Example #2
0
        private void btEdit_Click(object sender, EventArgs e)
        {
            if (gvTraits.CurrentRow == null)
                return;

            if (gvTraits.CurrentRow.Index >= 0)
            {
                frmManageTraits fmManageTraits = new frmManageTraits();
                fmManageTraits.Op = "edit";
                fmManageTraits.SelectedTrait = traitSelected;
                fmManageTraits.Show();
            }
        }
Example #3
0
        private void btEdit_Click(object sender, EventArgs e)
        {
            if (gvTraits.CurrentRow == null)
            {
                return;
            }

            if (gvTraits.CurrentRow.Index >= 0)
            {
                frmManageTraits fmManageTraits = new frmManageTraits();
                fmManageTraits.Op            = "edit";
                fmManageTraits.SelectedTrait = traitSelected;
                fmManageTraits.Show();
            }
        }
Example #4
0
 private void btAdd_Click(object sender, EventArgs e)
 {
     frmManageTraits fmManageTraits = new frmManageTraits();
     fmManageTraits.Op = "new";
     fmManageTraits.Show(this);
 }