Ejemplo n.º 1
0
        private void cmsClone_Click(object sender, EventArgs e)
        {
            try
            {
                string keyvalue = DBase.StringReturn(dgv.SelectedRows[0].Cells[colKEYCOL].Value);

                if (keyvalue != "")
                {
                    APPTRANSLATE_DETAIL P = new APPTRANSLATE_DETAIL();
                    P.ID     = keyvalue;
                    P.Clone  = 1;
                    P.Parent = this;
                    P.KEYCOL = KEYCOL;
                    P.Show();
                }
            }
            catch (Exception ex)
            {
            }
        }
Ejemplo n.º 2
0
        private void Edit_Click(object sender, EventArgs e)
        {
            try
            {
                string keyvalue = DBase.StringReturn(dgv.SelectedRows[0].Cells[colKEYCOL].Value);

                if (keyvalue != "")
                {
                    APPTRANSLATE_DETAIL P = new APPTRANSLATE_DETAIL();
                    P.StartPosition = FormStartPosition.Manual;
                    P.Icon          = this.ParentForm.Icon;
                    P.ID            = keyvalue;
                    P.Parent        = this;
                    P.Location      = new Point(this.ParentForm.Location.X + 50, this.ParentForm.Location.Y + 50);
                    P.KEYCOL        = KEYCOL;
                    P.Show();
                }
            }
            catch (Exception ex)
            {
            }
        }