Beispiel #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="AppIcon">The icon of the host application.</param>
        public UnrealAboutBox(Icon AppIcon, EngineVersioning Versioning)
        {
            InitializeComponent();

            Assembly EntryAssembly = Assembly.GetEntryAssembly();

            mLabel_AppVersion.Text = mLabel_AppVersion.Text.Replace("N/A", EntryAssembly.GetName().Version.ToString());

            if (Versioning == null)
            {
                Versioning = new EngineVersioning();
            }

            if (Versioning.Changelist > -1)
            {
                mLabel_Changelist.Text = mLabel_Changelist.Text.Replace("N/A", Versioning.Changelist.ToString());
            }

            if (Versioning.EngineVersion > -1)
            {
                mLabel_EngineVersion.Text = mLabel_EngineVersion.Text.Replace("N/A", Versioning.EngineVersion.ToString());
            }

            mPictureBox_AppIcon.Image = AppIcon.ToBitmap();
        }
Beispiel #2
0
		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="AppIcon">The icon of the host application.</param>
		public UnrealAboutBox(Icon AppIcon, EngineVersioning Versioning)
		{
			InitializeComponent();

			Assembly EntryAssembly = Assembly.GetEntryAssembly();
			
			mLabel_AppVersion.Text = mLabel_AppVersion.Text.Replace("N/A", EntryAssembly.GetName().Version.ToString());

			if( Versioning == null )
			{
				Versioning = new EngineVersioning();
			}

			if( Versioning.Changelist > -1 )
			{
				mLabel_Changelist.Text = mLabel_Changelist.Text.Replace( "N/A", Versioning.Changelist.ToString() );
			}

			if( Versioning.EngineVersion > -1 )
			{
				mLabel_EngineVersion.Text = mLabel_EngineVersion.Text.Replace( "N/A", Versioning.EngineVersion.ToString() );
			}

			mPictureBox_AppIcon.Image = AppIcon.ToBitmap();
		}