//코인교환 설정 초기화 public async void Clear() { try { using (RequestTradingCoinAutoTradeDelModel req = new RequestTradingCoinAutoTradeDelModel()) { req.userEmail = MainViewModel.LoginDataModel.userEmail; using (ResponseTradingCoinAutoTradeDelModel res = await WebApiLib.AsyncCall <ResponseTradingCoinAutoTradeDelModel, RequestTradingCoinAutoTradeDelModel>(req)) { //삭제까지 됬으면 팝업 닫기. WindowService.Close(); } } } catch (Exception ex) { SysLog.Error("Message[{0}], StackTrace[{1}]", ex.Message, ex.StackTrace); } }
public async void CmdAlarmCancel() { try { //alert = new Alert(Localization.Resource.Common_Alert_1); //alert.ShowDialog(); //return; alert = new Alert(Localization.Resource.Common_Alert_6); if (alert.ShowDialog() == true) { using (RequestTradingCoinAutoTradeDelModel req = new RequestTradingCoinAutoTradeDelModel()) { req.userEmail = MainViewModel.LoginDataModel.userEmail; using (ResponseTradingCoinAutoTradeDelModel res = await WebApiLib.AsyncCall <ResponseTradingCoinAutoTradeDelModel, RequestTradingCoinAutoTradeDelModel>(req)) { //삭제 성공 AlarmReserveEnabled = true; AlarmCancelEnabled = false; MainViewModel.AutoCoinData = null; ExeSelCoinPrc = nowSelPrc; ExeSelPer = 0; ExeSelUpDown = "-"; ExeChgCoinPrc = nowChgPrc; ExeChgPer = 0; ExeChgUpDown = "-"; State = Localization.Resource.CoinExchangeReservationTrading_1_15_2; } } } } catch (Exception ex) { SysLog.Error("Message[{0}], StackTrace[{1}]", ex.Message, ex.StackTrace); } }
public async void Clear() { try { using (RequestTradingCoinAutoTradeDelModel req = new RequestTradingCoinAutoTradeDelModel()) { req.userEmail = MainViewModel.LoginDataModel.userEmail; using (ResponseTradingCoinAutoTradeDelModel res = await WebApiLib.AsyncCall <ResponseTradingCoinAutoTradeDelModel, RequestTradingCoinAutoTradeDelModel>(req)) { //삭제 AlarmReserveEnabled = true; AlarmCancelEnabled = false; sellCoinAmt = 0; sellCoinAmt_Exe = 0; SelCoin = SelCoinData[0]; ChgCoin = ChgCoinData[0]; coinChgAmt = 0; ExeChgAmt = 0; SelSliderValue = 0; ChgSliderValue = 0; ExeSelCoinPrc = 0; ExeChgCoinPrc = 0; ExeSelPer = 0; ExeChgPer = 0; ExeSelUpDown = "-"; ExeChgUpDown = "-"; StartTime = string.Empty; State = string.Empty; } } } catch (Exception ex) { SysLog.Error("Message[{0}], StackTrace[{1}]", ex.Message, ex.StackTrace); } }