Beispiel #1
0
        public static void InitializeApplication()
        {
            CMyDialog.DefaultTitleFont = RsViewEngine.TitleFont;
            CMyDialog.MessageFont      = RsViewEngine.DefaultFont;

            _MainForm = new CReportSmartForm();

            _ResMan     = RSResources.GFX;
            _ResManSpec = RSResources.Special;

            _Splash = new CfSplash();
            _Splash.Show();
            _Splash.SetText("");

            ProfileManager = new RsViewProfileManager();
            ProfileManager.OpenProfile(ProfileManager.RsViewProfile);
            CollectionManager = new RsCollectionManager(ProfileManager);
            LoadLocalization();

            _Splash.SetText(Locale.GetMessage("splash_settings"));

            loadSecurity();

            _Splash.SetText(Locale.GetMessage("splash_ui"));
            buildUserInterface();
            FileSystem.ClearDefaultTemp(RsApplicationInfo.ApplicationName);

            _IsInitialized = true;
            _MainForm.CollectionManagement.CollectionBrowser.RefreshControl();
        }
Beispiel #2
0
        public static void InitializeEmbedded(CEmbeddedApplication aHostApp)
        {
            _EmbApp     = aHostApp;
            _IsEmbedded = true;

            _ResMan = new ResourceManager("ReportSmart.Application.Resources.GFX", Assembly.GetExecutingAssembly());

            RsViewEngine.ProfileManager = new RsViewProfileManager();
            RsViewEngine.ProfileManager.OpenProfile(ProfileManager.RsViewProfile);
            LoadLocalization();
            loadSecurity();
            buildEmbeddedUserInterface();

            _IsInitialized = true;
        }
        public override void OpenProfile(string aProfile)
        {
            if (!RsViewProfileManager.IsProfileExists(aProfile))
            {
                InitializeAsNewProfile(aProfile);
            }
            else
            {
                if (RsViewProfileManager.CURRENT_PROFILE_VERSION > GetProfileVersion(aProfile))
                {
                    UpdateProfile(aProfile);
                }

                base.OpenProfile(aProfile);

                Profile.ConfigVersion = RsViewProfileManager.CURRENT_PROFILE_VERSION;
            }
        }
Beispiel #4
0
        public static void InitializeEmbedded(CEmbeddedApplication aHostApp)
        {
            _EmbApp = aHostApp;
            _IsEmbedded = true;

            _ResMan = new ResourceManager("ReportSmart.Application.Resources.GFX", Assembly.GetExecutingAssembly());

            RsViewEngine.ProfileManager = new RsViewProfileManager();
            RsViewEngine.ProfileManager.OpenProfile(ProfileManager.RsViewProfile);
            LoadLocalization();
            loadSecurity();
            buildEmbeddedUserInterface();

            _IsInitialized = true;
        }
Beispiel #5
0
        public static void InitializeApplication()
        {
            CMyDialog.DefaultTitleFont = RsViewEngine.TitleFont;
            CMyDialog.MessageFont = RsViewEngine.DefaultFont;

            _MainForm = new CReportSmartForm();

            _ResMan = RSResources.GFX;
            _ResManSpec = RSResources.Special;

            _Splash = new CfSplash();
            _Splash.Show();
            _Splash.SetText("");

            ProfileManager = new RsViewProfileManager();
            ProfileManager.OpenProfile(ProfileManager.RsViewProfile);
            CollectionManager = new RsCollectionManager(ProfileManager);
            LoadLocalization();

            _Splash.SetText(Locale.GetMessage("splash_settings"));

            loadSecurity();

            _Splash.SetText(Locale.GetMessage("splash_ui"));
            buildUserInterface();
            FileSystem.ClearDefaultTemp(RsApplicationInfo.ApplicationName);

            _IsInitialized = true;
            _MainForm.CollectionManagement.CollectionBrowser.RefreshControl();
        }