Ejemplo n.º 1
0
 /// <summary>
 /// Publish a count related event (e.g., plugin_total_count) to the Disa Android client.
 ///
 /// IMPORTANT: Note that this is internal so that only the Disa.Framework assembly can call this function.
 /// </summary>
 /// <param name="eventAction">The type safe representation of the Event Action.</param>
 /// <param name="eventCategory">The type safe representation of the Event Category.</param>
 /// <param name="customDimensionIndex">The type safe representation of the Custom Dimension Index.</param>
 /// <param name="count">The count to be associated with this Google Analytics event.</param>
 internal static void RaiseCountEvent(
     EventAction eventAction,
     EventCategory eventCategory,
     CustomDimensionIndex customDimensionIndex,
     int count)
 {
     CountEvent?.Invoke(eventAction, eventCategory, customDimensionIndex, count);
 }
Ejemplo n.º 2
0
        private void GetFilesInfo()
        {
            DirectoryInfo   dirInfo = new DirectoryInfo(sourcePath);
            List <FileInfo> files   = dirInfo.GetFiles().ToList();

            totalCount = files.Count;
            CountEvent?.Invoke(totalCount);

            Adapter(files);
        }
Ejemplo n.º 3
0
 public void Increment(int amount = 1)
 {
     Count += amount;
     OnChange.Invoke(Count);
 }
Ejemplo n.º 4
0
 void Start()
 {
     Count = StartingCount;
     OnAwake.Invoke(Count);
 }