Beispiel #1
0
        public MainForm()
        {
            InitializeComponent();
            Control.CheckForIllegalCrossThreadCalls = false;

            SquadronContext.MainForm = this;
            SquadronHelper.Instance.InitializeControls(this);

            DisclaimerForm.CheckAndShowDisclaimer();
            ThemeRegister.RegisterKey("jpva2014feb22shadowbrook");
            ThemePainter.Instance.Theme = new GrayTheme();

            SetAdCode();
        }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="services"></param>
        /// <param name="folderPath"></param>
        /// <returns></returns>
        public static IServiceCollection WeeRegisterPackages(this IServiceCollection services, string folderPath = "")
        {
            if (string.IsNullOrWhiteSpace(folderPath))
            {
                folderPath = PlatformServices.Default.Application.ApplicationBasePath;
            }

            var razorViewInstance = new RazorViewFileProvidersRegister(services, folderPath);

            razorViewInstance.Invoke <IWeePackage>();

            var themeInstance = new ThemeRegister(services, folderPath);

            themeInstance.Invoke <IWeePackage>();

            return(services);
        }