public bool Close() { try { ImageTranslateControl.Instance = (ImageTranslateControl)null; this.httpBackGroundThread?.Abort(); this.ParentWindow?.HideDimOverlay(); return(true); } catch (Exception ex) { Logger.Error("Exception while trying to close imagetranslateontrol from dimoverlay " + ex.ToString()); } return(false); }
public ImageTranslateControl(MainWindow parentWindow) { this.InitializeComponent(); ImageTranslateControl.Instance = this; this.ParentWindow = parentWindow; if (this.ParentWindow != null) { this.Width = parentWindow.FrontendParentGrid.ActualWidth; this.Height = parentWindow.FrontendParentGrid.ActualHeight; } this.mLoadingImage.Visibility = Visibility.Visible; this.mFrontEndImage.Visibility = Visibility.Collapsed; this.mTopBar.Visibility = Visibility.Collapsed; this.mBootText.Visibility = Visibility.Visible; this.mBootText.Text = LocaleStrings.GetLocalizedString("STRING_LOADING_MESSAGE", ""); }