public void refreshGrid() { List <DeveloperBug> developerBugs = DeveloperBug.Get(); grdBugs.ItemsSource = developerBugs; }
private void btnReport_Click(object sender, RoutedEventArgs e) { long applicationID, formID, controlID, lineNumber; String action, relatedMethod, relatedParameter, title, comment, Priority; bool check; title = txtTitle.Text; comment = txtComment.Text; applicationID = (long)cboApplication.SelectedValue; formID = (long)cboApplication.SelectedValue; controlID = (long)cboApplication.SelectedValue; lineNumber = (long)Convert.ToDouble(txtLineNumber.Text); action = (String)cboActions.Text; relatedMethod = (String)txtRelatedMethod.Text; relatedParameter = (String)txtRelatedParameter.Text; check = (bool)chkSolutionFound.IsChecked; BugLocation location = new BugLocation(applicationID, formID, controlID, action, relatedMethod, relatedParameter, lineNumber); location.Save(); DeveloperBug bug = new DeveloperBug(title, comment, location, 0, "Priority", check); bug.Save(); }