protected internal static PopupForm Intance() { if (_instance == null) { _instance = new PopupForm(); } return(_instance); }
private void listViewSV_DoubleClick(object sender, EventArgs e) { PopupForm pf = PopupForm.Intance(); pf.lblID.Text = listViewSV.SelectedItems[0].Text; pf.txtNumber.Text = listViewSV.SelectedItems[0].SubItems[3].Text; pf.lblForm.Text = this.ToString(); pf.ShowDialog(); }