private void SigmaChanged(object sender, RoutedEventArgs e) { TextBox tb = sender as TextBox; BatchColumnDesign BatchDesign = (this.DataContext as ViewModel).MyBatchDesignView.BatchDesign; try { double sig = Convert.ToInt32(tb.Text); if (sig != BatchDesign.Sigma) { BatchDesign.Sigma = sig; StartBatchDesign(); } } catch { } }
private void NClustersChanged(object sender, RoutedEventArgs e) { TextBox tb = sender as TextBox; BatchColumnDesign BatchDesign = (this.DataContext as ViewModel).MyBatchDesignView.BatchDesign; try { int nc = Convert.ToInt32(tb.Text); if (nc != BatchDesign.NClusters) { BatchDesign.NClusters = nc; StartBatchDesign(); } } catch { } }