Example #1
0
        static void Main(string[] Args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            _Settings.Reload();
            BuildControlProfile();

            //Get paths..... I never trust the .\
            try
            {
                if (_Settings.StateFloder.Substring(0, 2) == @".\")
                {
                    _Settings.StateFloder = Path.GetFullPath(_Settings.StateFloder);
                }
                if (_Settings.SnapshotsFolder.Substring(0, 2) == @".\")
                {
                    _Settings.SnapshotsFolder = Path.GetFullPath(_Settings.SnapshotsFolder);
                }
                if (_Settings.BrowserDataBasePath.Substring(0, 2) == @".\")
                {
                    _Settings.BrowserDataBasePath = Path.GetFullPath(_Settings.BrowserDataBasePath);
                }
            }
            catch { }
            _Form_Main = new Frm_Main(Args);
            Application.Run(_Form_Main);
        }
 public Frm_Browser(Frm_Main TheMainForm)
 {
     _TheMainForm = TheMainForm;
     InitializeComponent();
 }