Esempio n. 1
0
        public override void SaveSettings(string path, AppManagerSettings settings)
        {
            string userSettingsDir = WorkItem.DataDir;

            userSettingsDir = Path.Combine(userSettingsDir, path);
            base.SaveSettings(userSettingsDir, settings);
        }
Esempio n. 2
0
        public override AppManagerSettings LoadSettings(string path)
        {
            string userSettingsDir = WorkItem.DataDir;

            userSettingsDir = Path.Combine(userSettingsDir, path);
            var result = base.LoadSettings(userSettingsDir);

            if (result == null)
            {
                result = new AppManagerSettings();
            }

            var heights = result.MianFormRowHeights;

            for (int i = 0; i < heights.Length; i++)
            {
                if (heights[i] < 0.00001)
                {
                    heights[i] = 0.1;
                }
            }

            MathHelper.Normilize(heights, 1000);

            return(result);
        }