コード例 #1
0
        public void refreshGrid()
        {
            List <DeveloperBug> developerBugs = DeveloperBug.Get();


            grdBugs.ItemsSource = developerBugs;
        }
コード例 #2
0
        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();
        }