Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
        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[] { };
        }