コード例 #1
0
 private void Sources_GetSourceNotificationEvent(ulong count, ulong index, CommonDataTypes.SocialElements.IPostSource source)
 {
     if (GetSourcesNotificationEvent != null)
     {
         GetSourcesNotificationEvent(count, index, source);
     }
 }
コード例 #2
0
 private void partSource_SourceChecked(bool status, CommonDataTypes.SocialElements.IPostSource postSource)
 {
     if (Checked != null)
     {
         Checked(status, Data);
     }
 }
コード例 #3
0
 private void Processor_GetSourcesNotificationEvent(ulong count, ulong index, CommonDataTypes.SocialElements.IPostSource source)
 {
     if (source is SocialNetworkCleaner.CommonDataTypes.SocialElements.Group)
     {
         StatusLabel = String.Format("Загружаем группу ({0}/{1}), название группы: {2}", index, count, source.DisplayName);
     }
     if (source is SocialNetworkCleaner.CommonDataTypes.SocialElements.User)
     {
         StatusLabel = String.Format("Загружаем друга ({0}/{1}), Имя друга: {2}", index, count, source.DisplayName);
     }
 }
コード例 #4
0
        private void _source_SourceChecked(bool status, CommonDataTypes.SocialElements.IPostSource postSource)
        {
            if (FilterSources.Contains(postSource))
            {
                if (!status)
                {
                    FilterSources.Remove(postSource);
                }
            }
            else
            {
                if (status)
                {
                    FilterSources.Add(postSource);
                }
            }

            if (SourceFilterSources != null)
            {
                SourceFilterSources(FilterSources);
            }
        }