コード例 #1
0
        public ProgressWindow()
        {
            PassiveMode = false;
            InitializeComponent();
            InitializeComponent();
            Viewbox VendorLogo = null;

            if (VendorCustomizer.Instance != null)
            {
                VendorLogo = VendorCustomizer.Instance.VendorLogo;
            }
            if (VendorLogo == null)
            {
                TianoCoreBranding TianoBranding = new TianoCoreBranding();
                TianoBranding.Children.Remove(TianoBranding.TianoCoreLogo);
                VendorLogo = TianoBranding.TianoCoreLogo;
            }
            double Ratio = VendorLogo.Width / VendorLogo.Height;

            VendorLogo.Height = 48;
            VendorLogo.Width  = Ratio * 48;
            VendorLogo.HorizontalAlignment = HorizontalAlignment.Right;
            VendorLogo.VerticalAlignment   = VerticalAlignment.Top;
            VendorLogo.Margin = new Thickness(0, 5, 11, 0);
            RootGrid.Children.Add(VendorLogo);
            string ProductName = InstallerStrings.ProductName;

            Title = string.Format("{0} Installer", ProductName);
            InstallingLabel.Content = string.Format("Installing {0}", ProductName);
            ActionLabel.Content     = string.Format("Please wait while the Setup Wizard installs {0}.", ProductName);
        }
コード例 #2
0
        public MainWindow()
        {
            InitializeComponent();
            Viewbox WelcomeSplash = null;

            if (VendorCustomizer.Instance != null)
            {
                WelcomeSplash = VendorCustomizer.Instance.WelcomeSplash;
            }
            if (WelcomeSplash == null)
            {
                TianoCoreBranding TianoBranding = new TianoCoreBranding();
                TianoBranding.Children.Remove(TianoBranding.WelcomeSplash);
                WelcomeSplash = TianoBranding.WelcomeSplash;
            }
            RootGrid.Children.Add(WelcomeSplash);
            Title = string.Format("{0} Installer", InstallerStrings.ProductName);
        }