public static SearchCustomer GetInstance() { if (instance == null) { instance = new SearchCustomer(); } return(instance); }
private void btnSearch_Click(object sender, EventArgs e) { Form SearchCustomerformobj = SearchCustomer.GetInstance(); SearchCustomerformobj.Show(); }