Exemplo n.º 1
0
 public void ReloadProfile()
 {
     if (_profile == null)
     {
         return;
     }
     _profile = FileIOHandler.OpenProfile(_profile.FileName);
     LoadFromProfile();
 }
Exemplo n.º 2
0
        private void AttachToProfile(string profileName)
        {
            var path = Path.Combine(Paths.ProfilePath, profileName + Vendor.ProfileExtension);

            if (File.Exists(path))
            {
                if (null == FileIOHandler)
                {
                    FileIOHandler = FileIOHelper.GetProfileVersion(path);
                }
                // todo this could have the same issue with mismatch as another issue
                AttachToProfile(FileIOHandler.OpenProfile(path));
                Groups = _profile.Groups;
            }
            else
            {
                FileIOHandler.LoadEmbeddedData(FileName, this);
            }
        }