void Button_SaveCallib_Click(object sender, RoutedEventArgs e) { int index = this.ListBox_Transporters.SelectedIndex; if (index < 0 || index >= this.ListBox_Transporters.Items.Count) { return; } Data.CallibrationData callibdata = new CallibrationData(); callibdata.SaveCallibration( LabLifeSettings.CallibrationPath + @"\" + this.TextBox_SaveFileName.Text + ".callib", this.List_Transporter[index].src, this.List_Transporter[index].dst ); this.UpdateLists(); }
private void Button_LoadCallib_Click(object sender, RoutedEventArgs e) { int index = this.ListBox_Transporters.SelectedIndex; if (index < 0 || index >= this.ListBox_Transporters.Items.Count) { return; } int callibindex = this.ListBox_CallbPathList.SelectedIndex; if (index < 0 || callibindex >= this.ListBox_CallbPathList.Items.Count) { return; } Data.CallibrationData callibdata = new CallibrationData(); callibdata.LoadCallibration( this.CallibrationDataPathList[this.ListBox_CallbPathList.SelectedIndex].FullName, this.List_Transporter[index].src, this.List_Transporter[index].dst ); this.List_Transporter[index].SetupWrap(this.List_Transporter[index].src, this.List_Transporter[index].dst); }