private void Button4_Click(object sender, EventArgs e) { editing Child2Form = new editing(); Child2Form.MdiParent = this; Child2Form.Text = "Ενημέρωση "; // + m_ChildFormNumber; Child2Form.Show(); }
void listBox1_MouseDoubleClick(object sender, MouseEventArgs e) { string link = System.IO.Directory.GetCurrentDirectory() + "/" + listBox1.SelectedItem.ToString(); var myfile1 = File.Create(System.IO.Directory.GetCurrentDirectory() + "/temp1.txt"); myfile1.Close(); using (StreamWriter writer = new StreamWriter(System.IO.Directory.GetCurrentDirectory() + "/temp1.txt")) { writer.Write(link); writer.Close(); } editing newform = new editing(); newform.Show(); Close(); }
public void GRIDVIEW1click(object sender, EventArgs e) { // 'ΠΙΑΝΩ ΤΟ ID ΤΗΣ ΤΡΕΧΟΥΣΑΣ ΕΓΓΡΑΦΗΣ// string C = GRIDVIEW1.CurrentRow.Cells[0].Value.ToString(); // ' GDB.Execute("update PATIENTDETAIL SET PATIENT_ID=0") //f_MENUNAME if (functions.IsNumeric(C)) // C == "") { } else { editing ChildForm = new editing(); ChildForm.MdiParent = MdiParent; ChildForm.f_MENUNAME = f_MENUNAME; ChildForm.f_TableName = f_TableName; ChildForm.f_ID = Convert.ToInt16(C); ChildForm.Text = GRIDVIEW1.CurrentRow.Cells[1].Value.ToString(); ChildForm.Show(); } }