コード例 #1
0
 private void listUyeKayitlari_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         if (listUyeKayitlari.SelectedItems.Count > 0)
         {
             frmUye frm = new frmUye(listUyeKayitlari.SelectedItems[0].Text);
             frm.MdiParent = this.MdiParent;
             frm.Show();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #2
0
 private void listUye_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     try
     {
         if (listUye.SelectedItems.Count > 0)
         {
             frmUye frm = new frmUye(listUye.SelectedItems[0].Text);
             frm.MdiParent = this.MdiParent;
             frm.Show();
             btnEkranaListele_Click(this, null);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #3
0
 private void üyeFormuToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (tekPencere())
     {
         if (uye == null || uye.IsDisposed)
         {
             uye           = new frmUye();
             uye.MdiParent = this;
             acikForm      = uye;
             uye.Show();
         }
         else
         {
             uye.MdiParent = this;
             uye.Show();
             uye.Focus();
         }
     }
 }