Exemplo n.º 1
0
        public override void Init()
        {
            base.Init();

            AppSettingConfig.Default.AppConfig.TimeGoalItems.ForEach(x => TimeGoals.Add(x));

            RegeistMessenger <double>(OnRequestFee);
        }
Exemplo n.º 2
0
 void OnRequestFee(double fee)
 {
     if (fee == _defaultFee)
     {
         TimeGoal = TimeGoals.FirstOrDefault(x => x.Key == fee);
     }
     else if (fee == _otherFee)
     {
         OtherChecked = true;
     }
     else
     {
         TradeFee        = fee;
         CustomerChecked = true;
     }
 }