Exemplo n.º 1
0
        private void Insert_Click(object sender, EventArgs e)
        {
            APPTRANSLATE_DETAIL P = new APPTRANSLATE_DETAIL();

            P.StartPosition = FormStartPosition.Manual;
            P.Icon          = this.ParentForm.Icon;
            P.KEYCOL        = KEYCOL;
            P.Parent        = this;
            P.Location      = new Point(this.ParentForm.Location.X + 50, this.ParentForm.Location.Y + 50);
            P.ShowDialog();
            if (P.res == 1)
            {
                Refresh();
            }
        }
Exemplo n.º 2
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)
            {
            }
        }
Exemplo n.º 3
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)
            {
            }
        }