private void EndRepl() { AllDoButtonsDisable(); ShowProcessMessage("Завершаю внесение размена."); CFCCApi FCCApi = new CFCCApi(); FCCApi.EndReplenishment(EndReplenishmentRes); }
private void btnRepl_Click(object sender, RoutedEventArgs e) { if (State == State_normal) { AddSumm = 0; AddSummCoin = 0; AddSummBill = 0; btnRepl.IsEnabled = false; FCCApi.StartReplenishmentAsync(StartReplenishmentRes); } else if (State == State_replenishInProcess) { ShowProcessMessage("Считаю размен..."); btnRepl.IsEnabled = false; FCCApi.EndReplenishment(EndReplenishmentRes); } }