private void btnRun_Click(object sender, RoutedEventArgs e) { EpiDashboard.LogisticRegressionControl lrc = new EpiDashboard.LogisticRegressionControl(this.DashboardHelper); lrc = (EpiDashboard.LogisticRegressionControl)Gadget; lrc.cbxFieldOutcome = this.cbxFieldOutcome; lrc.lbxOtherFields = this.lbxOtherFields; lrc.lbxDummyTerms = this.lbxDummyTerms; lrc.cbxFieldWeight = this.cbxFieldWeight; lrc.checkboxNoIntercept = this.checkboxNoIntercept; lrc.checkboxIncludeMissing = this.checkboxIncludeMissing; lrc.cbxFieldMatch = this.cbxFieldMatch; lrc.cbxConf = this.cbxConf; lrc.lbxInteractionTerms = this.lbxInteractionTerms; lrc.txtFilterString = null; lrc.DataFilters = RowFilterControl.DataFilters; lrc.RefreshResults(); btnCancel_Click(sender, e); // RefreshResults(); }