public UserChampionshipIntro(IUserChampionshipInformation userChampionshipObject, UserChampionshipIntroMode mode = UserChampionshipIntroMode.Intro, string existingName = null) { DataContext = this; UserChampionshipObject = userChampionshipObject; DialogMode = mode; if (mode != UserChampionshipIntroMode.Intro) { CloseButton.Visibility = Visibility.Collapsed; } ExistingName = existingName; Title = UserChampionshipObject.Name; InitializeComponent(); Owner = null; Buttons = new Button[] { }; if (AppAppearanceManager.Instance.BlurImageViewerBackground) { WindowStyle = WindowStyle.None; AllowsTransparency = true; BlurBackground = true; } }
public UserChampionshipIntro(IUserChampionshipInformation userChampionshipObject, UserChampionshipIntroMode mode = UserChampionshipIntroMode.Intro, string existingName = null) { DataContext = this; UserChampionshipObject = userChampionshipObject; DialogMode = mode; if (mode != UserChampionshipIntroMode.Intro) { CloseButton.Visibility = Visibility.Collapsed; } ExistingName = existingName; Title = UserChampionshipObject.Name; InitializeComponent(); Buttons = new Button[] { }; }