コード例 #1
0
        public Win_Bug(Win_Home pHomeWindow) //This is for new bugs
        {                                    //helps with data integrity (everything is updated at once)
            InitializeComponent();
            MyBug        = Data.ActiveProduct.NewBug();
            MyBugControl = null;
            MyHomeWindow = pHomeWindow;
            User TempUser = Data.ActiveUser;

            TempUser.Get();
            label_RaisedBy.Content = TempUser.FullName;

            /*UpdateTags();
             * UpdateNotes();*/
        }
コード例 #2
0
        //This is for editing bugs
        public Win_Bug(Ctrl_Bug pBugControl) //Much faster to pass tags rather than re-download them. Also
        {                                    //helps with data integrity (everything is updated at once)
            InitializeComponent();
            MyBug        = pBugControl.MyBug;
            MyBugControl = pBugControl;
            MyHomeWindow = pBugControl.MyHomeWindow;
            User TempUser = new User(pBugControl.MyBug.RaisedBy.Id);

            TempUser.Get();
            label_RaisedBy.Content = TempUser.FullName;
            input_Title.Text       = pBugControl.MyBug.Title;
            input_Description.Text = pBugControl.MyBug.Description;
            combo_Severity.Text    = pBugControl.MyBug.Severity.ToString();

            BackupNotes();
            BackupTags();
            BackupAssignees();
            UpdateTags();
            UpdateNotes();
            UpdateAssignees();
        }