list = new List<string>
{
" SLIDE SHOW ",
- "DETAIL INFO",
+ "DISK INFO",
"DELETE"
};
OptionList = list;
list = new List<string>
{
- " DETAIL INFO ",
+ " DISK INFO ",
"DELETE"
};
{
Program.TransitionTo(new ImageViewerSlideShow());
}
- else if (label.Equals("detail info"))
+ else if (label.Equals("disk info"))
{
- // TODO : Display the alerty popup
+ ShowDiskInfoPopup();
}
}
}
}
+
+ /// <summary>
+ /// A method for showing Disk Information Popup
+ /// </summary>
+ private async void ShowDiskInfoPopup()
+ {
+ int numberOfFiles = 0;
+
+ foreach (var item in ImageGroupList)
+ {
+ numberOfFiles += item.ImageItemList.Count;
+ }
+
+ var message = "Number of files : " + numberOfFiles + "\n";
+ await DisplayAlert("Disk Information", message, "Close");
+ }
}
}
FooterDelete.IsVisible = true;
SetFooterFocusChain(MusicTabScrollView.ScrollX);
}
- else if (label.Equals("detail info"))
+ else if (label.Equals("disk info"))
{
- // TODO : Display the alert popup
+ ShowDiskInfoPopup();
}
}
}
/// <summary>
+ /// A method for showing Disk Information Popup
+ /// </summary>
+ private async void ShowDiskInfoPopup()
+ {
+ int numberOfFiles = 0;
+
+ foreach (MusicGroup group in MusicContentView.Children)
+ {
+ numberOfFiles += group.MusicItemList.Count;
+ }
+
+ var message = "Number of files : " + numberOfFiles + "\n";
+ await DisplayAlert("Disk Information", message, "Close");
+ }
+
+ /// <summary>
/// Moves the scroller to the given target
/// </summary>
/// <param name="targetX">The given target</param>
}
else if (label.Equals("disk info"))
{
- // TODO : Display the alerty popup
+ ShowDiskInfoPopup();
}
}
break;
}
}
+
+ /// <summary>
+ /// A method for showing Disk Information Popup
+ /// </summary>
+ private async void ShowDiskInfoPopup()
+ {
+ int numberOfFiles = 0;
+
+ foreach (var item in VideoGroupList)
+ {
+ numberOfFiles += item.VideoItemList.Count;
+ }
+
+ var message = "Number of files : " + numberOfFiles + "\n";
+ await DisplayAlert("Disk Information", message, "Close");
+ }
}
}