Пример #1
0
        public FormMain()
        {
            var host = HydrometInfoUtility.HydrometServerFromPreferences();

            if (host == HydrometHost.PN)
            {
                UserPreference.SetDefault("HydrometServer", HydrometHost.PNLinux.ToString(), false);
            }

            HydrometInfoUtility.SetDefaultHydrometServer();

            UserPreference.SetDefault("HideStatusDialog", "False", false);
            UserPreference.SetDefault("AutoFlagDayFiles", "True", false);

            InitializeComponent();

            this.Text += " " + Application.ProductVersion;

            // FileUtility.CleanTempPath();
            Application.EnableVisualStyles();
            TabPageManager tabManager = new TabPageManager(tabControl1);

            Logger.OnLogEvent += new StatusEventHandler(Logger_OnLogEvent);
            UpdateTabs();
            //MakeMinimalVersion();
            this.Text = "Hydromet/Agrimet Tools V" + Application.ProductVersion;
        }
        public void Init()
        {
            OutputManager.Init();
            PowerPointManager.Instance.SettingsChanged += (o, e) => OutputManager.UpdateColors();

            HelpManager.LoadHelpLinks();

            ThemeManager.Load();
            PowerPointManager.Instance.SettingsChanged += (o, e) => ThemeManager.Load();

            TabPageManager  = new TabPageManager(Core.AdSchedule.ResourceManager.Instance.TabsConfigFile);
            ActivityManager = ActivityManager.OpenStorage();
            Gallery1Manager = new GalleryManager(Core.AdSchedule.ResourceManager.Instance.Gallery1ConfigFile);
            Gallery2Manager = new GalleryManager(Core.AdSchedule.ResourceManager.Instance.Gallery2ConfigFile);
            RateCardManager = new RateCardManager(Core.Common.ResourceManager.Instance.RateCardFolder);
            RateCardManager.LoadRateCards();
        }
Пример #3
0
		public void Init()
		{
			OutputManager.Init();
			PowerPointManager.Instance.SettingsChanged += (o, e) => OutputManager.UpdateColors();

			HelpManager.LoadHelpLinks();

			ThemeManager.Load();
			PowerPointManager.Instance.SettingsChanged += (o, e) => ThemeManager.Load();

			TabPageManager = new TabPageManager(Core.AdSchedule.ResourceManager.Instance.TabsConfigFile);
			ActivityManager = ActivityManager.OpenStorage();
			Gallery1Manager = new GalleryManager(Core.AdSchedule.ResourceManager.Instance.Gallery1ConfigFile);
			Gallery2Manager = new GalleryManager(Core.AdSchedule.ResourceManager.Instance.Gallery2ConfigFile);
			RateCardManager = new RateCardManager(Core.Common.ResourceManager.Instance.RateCardFolder);
			RateCardManager.LoadRateCards();
		}