public void generateQr() { if (Source != null || License != null) { var dataqu = scannerServices.reqQrCode(License); Images = new ScannerModel { ImageSource = generatecodeQr.makeQrCode(dataqu["kode_parkir"]), License_number = License, AreaKatName = dataqu["areaKatName"], Areanumber = Convert.ToInt32(dataqu["areaNumber"]), FeesValue = Convert.ToInt32(dataqu["fees"]), Kodeparkir = dataqu["kode_parkir"], ImageOri = Sourceres }; if (scanerwindow == null) { scanerwindow = new ScannerPage(Images); scanerwindow.Show(); } else { resetForm(Images); } } else { Messages = "License manual wajib di isi"; } //Console.WriteLine(License); //scannerServices.reqQrCode(License); }
public void resetForm(ScannerModel scannerModel) { scanerwindow.Close(); scanerwindow = new ScannerPage(Images); scanerwindow.Show(); }