예제 #1
0
 /// <inheritdoc />
 public void Dispose()
 {
     Mugshot?.Dispose();
     DownLoadRunning?.Dispose();
     MyPluginDataDic.Dispose();
     LockObject?.Dispose();
 }
예제 #2
0
        public void CopyFrom(CharacterCache objExistingCache)
        {
            Background     = objExistingCache.Background;
            BuildMethod    = objExistingCache.BuildMethod;
            CharacterAlias = objExistingCache.CharacterAlias;
            CharacterName  = objExistingCache.CharacterName;
            CharacterNotes = objExistingCache.CharacterNotes;
            Concept        = objExistingCache.Concept;
            Created        = objExistingCache.Created;
            Description    = objExistingCache.Description;
            Essence        = objExistingCache.Essence;
            GameNotes      = objExistingCache.GameNotes;
            Karma          = objExistingCache.Karma;
            FileName       = objExistingCache.FileName;
            Metatype       = objExistingCache.Metatype;
            Metavariant    = objExistingCache.Metavariant;
            PlayerName     = objExistingCache.PlayerName;
            SettingsFile   = objExistingCache.SettingsFile;

            Image imgNewMugshot = objExistingCache.Mugshot.Clone() as Image;

            Mugshot?.Dispose();
            Mugshot = imgNewMugshot;
        }