| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- using System.Windows;
- using System.Windows.Controls;
- using Muchinfo.MTPClient.Account.ViewModels;
- using Muchinfo.MTPClient.Infrastructure.Helpers;
- using Muchinfo.MTPClient.Data.Enums;
- using Muchinfo.MTPClient.Infrastructure.Cache;
- namespace Muchinfo.MTPClient.Account.Views
- {
- /// <summary>
- /// TradeHeader.xaml 的交互逻辑
- /// </summary>
- public partial class TradeHeaderView : UserControl
- {
- public TradeHeaderView()
- {
- InitializeComponent();
- #region 是否显示买卖按钮=》顶部买卖按钮与挂牌无关
- //MessengerHelper.DefaultRegister<bool>(this, MessengerTokens.IsEnableBuyAndSellCommondBtn,
- // (e) =>
- // {
- // #region 是否有数据可用
- // if (CacheManager.IsHasListingData == true)
- // {
- // this.btn_SellCommand.IsEnabled = true;
- // this.btn_BuyCommand.IsEnabled = true;
- // }
- // else
- // {
- // this.btn_SellCommand.IsEnabled = false;
- // this.btn_BuyCommand.IsEnabled = false;
- // }
- // #endregion
- // });
- //this.btn_BuyCommand.Visibility = Visibility.Visible;
- //MessengerHelper.DefaultRegister<bool>(this, MessengerTokens.IsShowBuyCommondBtn,
- // (e) =>
- // {
- // if (e == false)
- // {
- // this.btn_BuyCommand.Visibility = Visibility.Collapsed;
- // }
- // else
- // {
- // this.btn_BuyCommand.Visibility = Visibility.Visible;
- // }
- // });
- //this.btn_SellCommand.Visibility = Visibility.Visible;
- //MessengerHelper.DefaultRegister<bool>(this, MessengerTokens.IsShowSellCommondBtn,
- //(e) =>
- //{
-
- // if (e == false)
- // {
- // this.btn_SellCommand.Visibility = Visibility.Collapsed;
- // }
- // else
- // {
- // this.btn_SellCommand.Visibility = Visibility.Visible;
- // }
- //});
- #endregion
-
-
- }
-
- }
- }
|