diff --git a/DownKyi/Converter/CountConverter.cs b/DownKyi/Converter/CountConverter.cs new file mode 100644 index 0000000..d38fe78 --- /dev/null +++ b/DownKyi/Converter/CountConverter.cs @@ -0,0 +1,21 @@ +using System; +using System.Globalization; +using System.Windows.Data; + +namespace DownKyi.Converter +{ + public class CountConverter : IValueConverter + { + public int Count { get; set; } + + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + return ((int)value) > Count; + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + throw new NotImplementedException(); + } + } +} diff --git a/DownKyi/DownKyi.csproj b/DownKyi/DownKyi.csproj index f309c28..dfab557 100644 --- a/DownKyi/DownKyi.csproj +++ b/DownKyi/DownKyi.csproj @@ -79,6 +79,7 @@ MSBuild:Compile Designer + @@ -447,6 +448,7 @@ PreserveNewest + PreserveNewest diff --git a/DownKyi/Resources/nodata02.png b/DownKyi/Resources/nodata02.png new file mode 100644 index 0000000..301f3df Binary files /dev/null and b/DownKyi/Resources/nodata02.png differ diff --git a/DownKyi/Views/DownloadManager/ViewDownloading.xaml b/DownKyi/Views/DownloadManager/ViewDownloading.xaml index 72c97a0..21c8c89 100644 --- a/DownKyi/Views/DownloadManager/ViewDownloading.xaml +++ b/DownKyi/Views/DownloadManager/ViewDownloading.xaml @@ -2,10 +2,13 @@ x:Class="DownKyi.Views.DownloadManager.ViewDownloading" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:converter="clr-namespace:DownKyi.Converter" xmlns:i="http://schemas.microsoft.com/xaml/behaviors" xmlns:prism="http://prismlibrary.com/" prism:ViewModelLocator.AutoWireViewModel="True"> + + + + + + + +