private void GetPropertiesAndSetModel() { try { var type = Enum.GetValues(typeof(DistanceType)).Cast <DistanceType>().First(x => x.ToString() == comboBox1.SelectedItem.ToString()); var model = new BruteForceModel() { Type = type }; cudaBruteForce.UpdateModel(model); this.Close(); } catch (Exception e) { } }
public void UpdateModel <T>(T model) { this.model = model as BruteForceModel; }