private void showTableAnggar() { if ((anggar = (fMAnggaran)alat.FormSudahDibuat(typeof(fMAnggaran))) == null) { anggar = new fMAnggaran(); anggar.TopMost = true; anggar.ShowDialog(); } else { anggar.Select(); anggar.showRekening(lvTampil.SelectedItems[0].Text, lvTampil.SelectedItems[0].SubItems[1].Text, lvTampil.SelectedItems[0].SubItems[2].Text); } this.Close(); }
private void mMAnggar_Click(object sender, EventArgs e) { if (MessageBox.Show("MENU INI MASIH DIPERDEBATKAN, LANJUTKAN???", "KONFIRMASI", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes) { if ((anggar = (fMAnggaran)alat.FormSudahDibuat(typeof(fMAnggaran))) == null) { anggar = new fMAnggaran(); //System.Windows.Forms.ListView lvTampil = (System.Windows.Forms.ListView)cari.Controls["groupBox1"].Controls["lvTampil"]; //fillTheSearchTable(lvTampil); anggar.idOpp = Convert.ToInt16(txtkd_Pos.Text); anggar.Size = new System.Drawing.Size(lebarLayar, tinggiLayar); anggar.StartPosition = FormStartPosition.CenterScreen; anggar.MdiParent = this; anggar.Show(); } else { //System.Windows.Forms.ListView lvTampil = (System.Windows.Forms.ListView)cari.Controls["groupBox1"].Controls["lvTampil"]; //fillTheSearchTable(lvTampil); anggar.idOpp = Convert.ToInt16(txtkd_Pos.Text); anggar.Select(); } } }