mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Automatic Management Fix
- fixed on Login selection of the Auto-Start option - added the AutoStartOnLogin option to the sync
This commit is contained in:
parent
0957d51e96
commit
10e6a08a3e
9 changed files with 103 additions and 136 deletions
|
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
using System.Globalization;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Markup;
|
||||
|
||||
namespace ServerManagerTool.Common.Converters
|
||||
{
|
||||
public class BooleanEqualsConverter : MarkupExtension, IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
var convertedValue = System.Convert.ToBoolean(value);
|
||||
var parameterValue = System.Convert.ToBoolean(parameter);
|
||||
return convertedValue.Equals(parameterValue);
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
var convertedValue = System.Convert.ToBoolean(value);
|
||||
var parameterValue = System.Convert.ToBoolean(parameter);
|
||||
return convertedValue ? parameterValue : Binding.DoNothing;
|
||||
}
|
||||
|
||||
public override object ProvideValue(IServiceProvider serviceProvider)
|
||||
{
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue