mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-24 05:35:00 +00:00
feature<WorkingCopy>: finish recent commit message picker
This commit is contained in:
parent
88b9b0fb2f
commit
b40ca42d73
6 changed files with 45 additions and 28 deletions
|
@ -1,6 +1,4 @@
|
|||
using Avalonia.Data.Converters;
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
namespace SourceGit.Converters {
|
||||
public static class IntConverters {
|
||||
|
@ -10,18 +8,7 @@ namespace SourceGit.Converters {
|
|||
public static FuncValueConverter<int, bool> IsZero =
|
||||
new FuncValueConverter<int, bool>(v => v == 0);
|
||||
|
||||
public class NotEqualConverter : IValueConverter {
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) {
|
||||
int v = (int)value;
|
||||
int target = (int)parameter;
|
||||
return v != target;
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public static NotEqualConverter NotEqual = new NotEqualConverter();
|
||||
public static FuncValueConverter<int, bool> IsOne =
|
||||
new FuncValueConverter<int, bool>(v => v == 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue