Dodaj pliki projektów.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
2015-01-05 nowa kolumna Dichte_do, powiazana z Dichte
|
||||
2015-01-05 zdjęcie ograniczeń procentowych z Viskozitat
|
||||
2015-02-05 nowa kolumna Dichte_do
|
||||
pokazywanie domyślnego opakowania zakupu
|
||||
wyrzucenie ograniczenie wartości na parametrze FS%
|
||||
2015-02-06 program pyta się przy zamknięciu o niezapisane zmiany
|
||||
2015-02-12 sortowanie kodów CAS i możliwość użycia skrótów klawiszowych
|
||||
2015-03-09 rozszerzenie ilości składników Inhaltstoffe do 20
|
||||
składniki przyjmują wartości ułamkowe
|
||||
2015-03-12 nowe piktogramy i ich opisy, uproszczona historia
|
||||
2021-03-29 cztery nowe pola tekstowe
|
||||
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace Haftmittel
|
||||
{
|
||||
[ValueConversion(typeof(Brushes), typeof(bool))]
|
||||
class ClassKonwerterNaKolory : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
||||
{
|
||||
if (value is bool)
|
||||
{
|
||||
if ((bool)value)
|
||||
{
|
||||
return Brushes.Red;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Brushes.White;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return Brushes.White;
|
||||
}
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
||||
{
|
||||
if (value is Brushes)
|
||||
{
|
||||
if ((value as Brush) == Brushes.Red)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user