public static UpdateForm GetInstance(string url) { if (SingleInstance == null || SingleInstance.IsDisposed) { SingleInstance = new UpdateForm(url); } return(SingleInstance); }
//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(); }