// Copyright (C) Stichting Deltares 2016. All rights reserved. // // This file is part of the D-Soil Model application. // // The D-Soil Model application is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see . // // All names, logos, and references to "Deltares" are registered trademarks of // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. using System; using System.Drawing; using Deltares.DSoilModel.Forms; using Deltares.Geometry.Forms; using Deltares.Geotechnics.Forms; using Deltares.Standard; using Deltares.Standard.Forms.DExpress; using Deltares.Standard.Language; using DevExpress.UserSkins; namespace Deltares.DSoilModel.Application { internal class Program : IProgramInfo { /// /// The main entry point for the application. /// [STAThread] private static void Main() { const string splashResourceName = "Deltares.DSoilModel.Application.Resources.DSoilModel_splash_screen.png"; const string aboutResourceName = "Deltares.DSoilModel.Application.Resources.DSoilModel_about.png"; System.Windows.Forms.Application.EnableVisualStyles(); System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false); BonusSkins.Register(); var splashImage = new Bitmap(typeof(Program).Assembly.GetManifestResourceStream(splashResourceName)); var aboutImage = new Bitmap(typeof(Program).Assembly.GetManifestResourceStream(aboutResourceName)); var mainForm = new MainForm(typeof(Program), splashImage, false, new SplashDialogWti(), true, LanguageType.English); mainForm.AboutDialog = new AboutDialogWti(aboutImage); mainForm.Register(new GeometryPlugin()); mainForm.Register(new GeotechnicsPlugin()); mainForm.Register(new DSoilModelPlugin()); System.Windows.Forms.Application.Run(mainForm); } #region IProgramInfo private const string BetaString = "(BETA)"; private const bool IsReleaseVersion = true; private readonly AssemblyInfoHelper info = new AssemblyInfoHelper(typeof(Program)); string IProgramInfo.LicenseType { get { return "Unknown"; } } bool IProgramInfo.IsReleaseVersion { get { return IsReleaseVersion; } } string IProgramInfo.Company { get { return info.Company; } } string IProgramInfo.Phone { get { return info.Phone; } } string IProgramInfo.Email { get { return info.Email; } } string IProgramInfo.Copyright { get { return info.Copyright; } } string IProgramInfo.Product { get { return info.Product + (!IsReleaseVersion ? " " + BetaString : string.Empty); } } string IProgramInfo.Title { get { return info.Title; } } string IProgramInfo.AssemblyVersion { get { return info.AssemblyVersion; } } #endregion } }