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(); }
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; } }
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 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(); }