|
@@ -52,22 +52,23 @@ namespace Muchinfo.MTPClient.Trade.ViewModels.ERMCP
|
|
|
//_canUseSell = true;
|
|
//_canUseSell = true;
|
|
|
//RaisePropertyChanged(() => CanUseSell);
|
|
//RaisePropertyChanged(() => CanUseSell);
|
|
|
|
|
|
|
|
- SellBackGroundBrush = new SolidColorBrush(Color.FromRgb(100, 100, 100));
|
|
|
|
|
- CanUseSell = false;
|
|
|
|
|
|
|
+ SellBackGroundBrush = Brushes.Green;
|
|
|
|
|
+ CanUseSell = true;
|
|
|
|
|
|
|
|
- BuyBackGroundBrush = Brushes.Red;
|
|
|
|
|
- CanUseBuy = true;
|
|
|
|
|
|
|
+ BuyBackGroundBrush = new SolidColorBrush(Color.FromRgb(100, 100, 100));
|
|
|
|
|
+ CanUseBuy = false;
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
//_canUseBuy = true;
|
|
//_canUseBuy = true;
|
|
|
//RaisePropertyChanged(() => CanUseBuy);
|
|
//RaisePropertyChanged(() => CanUseBuy);
|
|
|
|
|
|
|
|
- SellBackGroundBrush = Brushes.Green;
|
|
|
|
|
- CanUseSell = true;
|
|
|
|
|
|
|
+ SellBackGroundBrush = new SolidColorBrush(Color.FromRgb(100, 100, 100));
|
|
|
|
|
+ CanUseSell = false;
|
|
|
|
|
|
|
|
- BuyBackGroundBrush = new SolidColorBrush(Color.FromRgb(100, 100, 100));
|
|
|
|
|
- CanUseBuy = false;
|
|
|
|
|
|
|
+
|
|
|
|
|
+ BuyBackGroundBrush = Brushes.Red;
|
|
|
|
|
+ CanUseBuy = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
_spotcontractID = spotcontractID;
|
|
_spotcontractID = spotcontractID;
|