/// <summary> /// Adds completed hash item to mylist. /// </summary> private void FinishHash(HashItem item) { ppSize += item.Size; if (item.FromMPC) { m_aniDBAPI.MyListAdd(item); if (ConfigFile.Read("mpcShowOSD").ToBoolean() && m_mpcAPI != null && m_mpcAPI.isHooked) { m_mpcAPI.OSDShowMessage(String.Format("{0}: File marked as watched{1}", m_AppName, m_mpcAPI.CurrentFileName != item.Name ? String.Format(", ({0})", item.Name) : String.Empty)); } } else if (addToMyListCheckBox.IsChecked == true) { item.Watched = (bool)watchedCheckBox.IsChecked; item.State = stateComboBox.SelectedIndex; m_aniDBAPI.MyListAdd(item); } }