Beispiel #1
0
 public static UpdateForm GetInstance(string url)
 {
     if (SingleInstance == null || SingleInstance.IsDisposed)
     {
         SingleInstance = new UpdateForm(url);
     }
     return(SingleInstance);
 }
Beispiel #2
0
        //public static UpdateInfoForm GetInstance()
        //{
        //    if (Singleton == null || Singleton.IsDisposed)
        //    {
        //        Singleton = new UpdateInfoForm();
        //        Task t = Singleton.UpdateProduct();
        //    }
        //    return Singleton;
        //}

        private void updateButton_Click(object sender, EventArgs e)
        {
            UpdateForm.GetInstance(verUrl).Show();
        }