Пример #1
0
        public ReportBugForm(int bugId, BugList bugListRef)
        {
            this.iniForm();

            this.bugListRef = bugListRef;

            this.Text              = "Edit Bug";
            this.headerLabel.Text  = "Edit Bug";
            this.reportBugBtn.Text = "Update Bug";

            this.bugId = bugId;

            this.loadBugDetails();
        }
Пример #2
0
        public BugView(int bugId, BugList bugListRef)
        {
            InitializeComponent();

            this.bugId      = bugId;
            this.bugListRef = bugListRef;

            sourceCodeTextArea = new CodeEditorTextArea(this, searchBoxTxt, searchBoxPanel);
            sourceCodePanel.Controls.Add(sourceCodeTextArea);

            loadBugDetails();

            loadButtonsByPrivileges();

            this.MinimumSize = new Size(this.Width - 250, this.Height);
        }
Пример #3
0
        private void showBugsList(string search)
        {
            BugList bugList = (BugList)this.alreadyOpenedChildForm(typeof(BugList));

            if (bugList != null)
            {
                bugList.WindowState = FormWindowState.Normal;

                return;
            }

            bugList = new BugList();

            bugList.TopLevel = false;

            bugList.setSearch(search).loadBugs();

            containerPanel.Controls.Add(bugList);
            bugList.Show();

            bugList.BringToFront();
        }