Ejemplo n.º 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmChallen fmChallen = new frmChallen();

            fmChallen.MdiParent = this.MdiParent;
            fmChallen.Show();

            //frmAddUpdateChallen fmAdd = new frmAddUpdateChallen();
            //fmAdd.MdiParent = this.MdiParent;
            //fmAdd.Show();

            this.Close();
        }
Ejemplo n.º 2
0
        void EditData()
        {
            if (dgDisplayData.SelectedRows.Count > 0)
            {
                int ID = 0;
                int.TryParse(dgDisplayData.CurrentRow.Cells["T012_CHALLENID"].Value.ToString(), out ID);

                Datalayer.iT012_CHALLENID = ID;

                frmChallen frmAddSTD = new frmChallen();
                frmAddSTD.MdiParent = this.MdiParent;
                frmAddSTD.Show();

                this.Close();
            }
            else
            {
                Datalayer.InformationMessageBox(Datalayer.sMeessgeSelection);
            }
        }