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(); } }
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) { } }
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) { } }