private void httpResponse(JSONObject response) { WaitDialog.close(); int error_code = response.getInt("error_code"); if (error_code == 0) { this.Close(); OrderView view = new OrderView(configManager.getOrderID(), configManager.getPath()); view.Show(); } else { string message = response.getString("message"); MessageBox.Show(message); } }
private void httpResponse(JSONObject response) { WaitDialog.close(); int error_code = response.getInt("error_code"); if (error_code == 0) { ChromeUtils.closeChrome(); this.Close(); OrderView view = new OrderView(configManager.getOrderID(),configManager.getPath()); view.Show(); } else { string message = response.getString("message"); MessageBox.Show(message); } }
private void bluetoothListView_SelectedIndexChanged(object sender, EventArgs e) { if (bluetoothList.SelectedItems.Count > 0) { ListView.SelectedListViewItemCollection selected = bluetoothList.SelectedItems; string indexStr = selected[0].SubItems[0].Text; int index = int.Parse(indexStr); JSONObject manager = (JSONObject)resultList[index]; string orderID = manager.getString("orderID"); string path = manager.getString("path"); if (path.Length > 0) { BrainChart view = new BrainChart(path, false, false, null); view.Show(); } else { OrderView view = new OrderView(orderID, outPath); view.Show(); } } }
private void bluetoothListView_SelectedIndexChanged(object sender, EventArgs e) { if (bluetoothList.SelectedItems.Count > 0) { ListView.SelectedListViewItemCollection selected = bluetoothList.SelectedItems; string indexStr = selected[0].SubItems[0].Text; int index = int.Parse(indexStr); JSONObject manager = (JSONObject)resultList[index]; string orderID = manager.getString("orderID"); string path = manager.getString("path"); if (path.Length > 0) { BrainChart view = new BrainChart(path, false,false); view.Show(); } else { OrderView view = new OrderView(orderID, outPath); view.Show(); } } }