示例#1
0
 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     add ad = new add();
     visit.ActiveForm.Hide();
     ad.ShowDialog();
 }
 private void button3_Click(object sender, EventArgs e)
 {
     add a = new add();
     viewVisitHistory.ActiveForm.Hide();
     a.ShowDialog();
 }
示例#3
0
 //تابع افزایش ارتفاع سطرها در datagridView 2
 /* private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
 {
     if (dataGridView1[e.ColumnIndex, e.RowIndex].Value != null && dataGridView1[e.ColumnIndex, e.RowIndex].Value.ToString().Length > 15)
     {
         dataGridView1.Rows[e.RowIndex].Height = 44;
         dataGridView1[e.ColumnIndex, e.RowIndex].Value = dataGridView1[e.ColumnIndex, e.RowIndex].Value.ToString().Substring(0, 15) +
         "\n" + dataGridView1[e.ColumnIndex, e.RowIndex].Value.ToString().Substring(15, dataGridView1[e.ColumnIndex, e.RowIndex].Value.ToString().Length - 15);
     }
 }*/
 private void button1_Click(object sender, EventArgs e)
 {
     add a = new add();
     alarm.ActiveForm.Hide();
     a.ShowDialog();
 }