Esempio n. 1
0
 private void DetachFromProfile()
 {
     FileIOHandler.LoadEmbeddedData(FileName, this);
     _fullChannels.Clear();
     _fullChannels.AddRange(_profile.FullChannels);
     _profile = null;
     UpdateEventValueArray();
 }
Esempio 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);
            }
        }