//Used on area list field selection private void setFieldsOnAreaListOptionSelection(IDictionary <string, int> newSpecimenUsed, SampleID newCurrentID_used) { specimenList.ItemsSource = newSpecimenUsed.Keys; specimenUsed = newSpecimenUsed; sampleID.Text = newCurrentID_used.getId(); currentID_used = newCurrentID_used; }
IDictionary <string, int> specimenUsed = null;//used for printing the proper # of copies public MainWindow() { InitializeComponent(); //initialize sampleID object with the ID value in recentID.json currentID_A = new SampleID((int)jsonObj["Id_A"]); currentID_B = new SampleID((int)jsonObj["Id_B"]); currentID_C = new SampleID((int)jsonObj["Id_C"]); currentID_D = new SampleID((int)jsonObj["Id_D"]); printerName = jsonObj["printer_name"]; setDefaults(); }