Standalone LogExpert

Mar 31, 2016 at 10:03 PM
Edited Mar 31, 2016 at 10:10 PM
Hi,

Sorry for my poor English.

Is it possible to include an embedded mode for futur version of LogExpert ? (read/write settings from executable's directory)

here's my implementation from last source code. I've modified the ConfigDir property in ConfigManager class to load "settings.dat" from application directory in first place :
public static string ConfigDir
        {
            get
            {
                String appPath = Path.GetDirectoryName(Application.ExecutablePath);              
                if (File.Exists(Path.Combine(appPath, "settings.dat")))
                {
                    // Check if settings.dat exits from executable directory in first place.
                    return appPath;
                }
                else
                {
                    // Otherwise, the default path is ApplicationData folder.
                    return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "LogExpert");
                }
            }
        }
Thanks