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