private void FadeOut() { System.Timers.Timer t = new System.Timers.Timer(10); t.Elapsed += (se, ev) => { if ((DateTime.Now - startUp).TotalSeconds < 2) { return; } Invoke(new MethodInvoker(() => { Opacity -= 0.02; login.Opacity += 0.02; if (Opacity <= 0) { Hide(); BootLoopGIF.Dispose(); LoadingText.Dispose(); t.Dispose(); } })); }; t.Start(); }
void ReleaseDesignerOutlets() { if (LoadingErrorImg != null) { LoadingErrorImg.Dispose(); LoadingErrorImg = null; } if (DownloadsNavSearchLoadingSpinner != null) { DownloadsNavSearchLoadingSpinner.Dispose(); DownloadsNavSearchLoadingSpinner = null; } if (DownloadsNavSplitterLbl != null) { DownloadsNavSplitterLbl.Dispose(); DownloadsNavSplitterLbl = null; } if (DownloadsNavOutNowBtn != null) { DownloadsNavOutNowBtn.Dispose(); DownloadsNavOutNowBtn = null; } if (DownloadsNavUpcomingBtn != null) { DownloadsNavUpcomingBtn.Dispose(); DownloadsNavUpcomingBtn = null; } if (DownloadsNavSearchBar != null) { DownloadsNavSearchBar.Dispose(); DownloadsNavSearchBar = null; } if (DownloadsNavSearchBtn != null) { DownloadsNavSearchBtn.Dispose(); DownloadsNavSearchBtn = null; } if (DownloadsNavCloseBtn != null) { DownloadsNavCloseBtn.Dispose(); DownloadsNavCloseBtn = null; } if (DownloadablesOutNowBtn != null) { DownloadablesOutNowBtn.Dispose(); DownloadablesOutNowBtn = null; } if (DownloadablesUpcomingBtn != null) { DownloadablesUpcomingBtn.Dispose(); DownloadablesUpcomingBtn = null; } if (LoadingView != null) { LoadingView.Dispose(); LoadingView = null; } if (LoadingText != null) { LoadingText.Dispose(); LoadingText = null; } if (LoadingSpinner != null) { LoadingSpinner.Dispose(); LoadingSpinner = null; } if (DownloadableSgmntdBtn != null) { DownloadableSgmntdBtn.Dispose(); DownloadableSgmntdBtn = null; } }
void ReleaseDesignerOutlets() { if (LoadingSpinner != null) { LoadingSpinner.Dispose(); LoadingSpinner = null; } if (LoadingErrorImg != null) { LoadingErrorImg.Dispose(); LoadingErrorImg = null; } if (LoadingText != null) { LoadingText.Dispose(); LoadingText = null; } if (ReleasesNavSearchLoadingSpinner != null) { ReleasesNavSearchLoadingSpinner.Dispose(); ReleasesNavSearchLoadingSpinner = null; } if (ReleasesNavCloseSearchBtn != null) { ReleasesNavCloseSearchBtn.Dispose(); ReleasesNavCloseSearchBtn = null; } if (ReleasesNavSplitterLbl != null) { ReleasesNavSplitterLbl.Dispose(); ReleasesNavSplitterLbl = null; } if (ReleasesSearchBtn != null) { ReleasesSearchBtn.Dispose(); ReleasesSearchBtn = null; } if (ReleasesSearchBar != null) { ReleasesSearchBar.Dispose(); ReleasesSearchBar = null; } if (ReleasesInStoresBtn != null) { ReleasesInStoresBtn.Dispose(); ReleasesInStoresBtn = null; } if (ReleasesUpcomingBtn != null) { ReleasesUpcomingBtn.Dispose(); ReleasesUpcomingBtn = null; } if (SectionHeader != null) { SectionHeader.Dispose(); SectionHeader = null; } if (SectionTitle != null) { SectionTitle.Dispose(); SectionTitle = null; } if (LoadingView != null) { LoadingView.Dispose(); LoadingView = null; } }
void ReleaseDesignerOutlets() { if (LoadingErrorImg != null) { LoadingErrorImg.Dispose(); LoadingErrorImg = null; } if (EventsNavSearchLoadingSpinner != null) { EventsNavSearchLoadingSpinner.Dispose(); EventsNavSearchLoadingSpinner = null; } if (EventsTitleLbl != null) { EventsTitleLbl.Dispose(); EventsTitleLbl = null; } if (EventsNavSearchBar != null) { EventsNavSearchBar.Dispose(); EventsNavSearchBar = null; } if (HomeNavSearchBtn != null) { HomeNavSearchBtn.Dispose(); HomeNavSearchBtn = null; } if (EventsNavSearchBtn != null) { EventsNavSearchBtn.Dispose(); EventsNavSearchBtn = null; } if (EventsNavCloseBtn != null) { EventsNavCloseBtn.Dispose(); EventsNavCloseBtn = null; } if (LoadingView != null) { LoadingView.Dispose(); LoadingView = null; } if (LoadingText != null) { LoadingText.Dispose(); LoadingText = null; } if (LoadingSpinner != null) { LoadingSpinner.Dispose(); LoadingSpinner = null; } }