static private void ShowForm() { waitSplash = new WaitSplash(); if (CallerForm != null) { _ActiveControl = CallerForm.ActiveControl; } Application.Run(waitSplash); }
private void GetoriginalImageOfSelectedPhoto() { if (this.Parent != null) { WaitSplash.Show(this.Parent as Form, "Loading selected photo ..."); } PBX_SelectedPhoto.BackgroundImage = PhotosList.SelectedPhotoBox.Photo.GetOriginalImage(); if (this.Parent != null) { WaitSplash.Hide(); } }
static private void CloseFormInternal() { waitSplash.Close(); waitSplash = null; }