Пример #1
0
 public static MyCartPg getInstance()
 {
     if (instance == null)
     {
         instance = new MyCartPg();
         instance.InitializeComponent();
     }
     instance.Initialize();
     instance.Show();
     return(instance);
 }
Пример #2
0
        private void btnMyCart_Click(object sender, EventArgs e)
        {
            this.Hide();

            MyCartPg.getInstance();
        }