public static MyCartPg getInstance() { if (instance == null) { instance = new MyCartPg(); instance.InitializeComponent(); } instance.Initialize(); instance.Show(); return(instance); }
private void btnMyCart_Click(object sender, EventArgs e) { this.Hide(); MyCartPg.getInstance(); }