public RequirementDetailForm(PresentationModel presentationModel, Requirement requirement)
 {
     InitializeComponent();
     _presentationModel = presentationModel;
     type = UserInterfaceForm.FunctionalType.Hide;
     RefreshRequirementDetail(requirement);
 }
        public RequirementEditorForm(PresentationModel presentationModel, Requirement requirement)
        {
            InitializeComponent();
            this._presentationModel = presentationModel;
            this._requirement = requirement;
            GetUserListByProject();

            _selectedHandler = new User();
            _selectedType = new NormalAttribute();
            _selectedPriority = new NormalAttribute();
            _selectedStatus = new NormalAttribute();

            _projectIds = new List<int>();
            _projectNames = new List<string>();
            _requireIds = new List<int>();
            _requireNames = new List<string>();
            _statusIds = new List<int>();
            _statusNames = new List<string>();
            _projectMemberArrayList = new List<int>();

            GetRequirementMethod(PRIORITY);
            GetRequirementMethod(REQUIREMENT);
            GetRequirementMethod(STATUS);
            CheckPriority();
            nameTextBox.Text = _requirement.Name;
            typeComboBox.SelectedItem = _requirement.Type.Name;
            versionLabel.Text = (Int32.Parse(_requirement.Version) + 1).ToString();
            priorityComboBox.SelectedItem = _requirement.Priority.Name;
            statusComboBox.SelectedItem = _requirement.Status.Name;
            handlerComboBox.Text = _requirement.Handler.Name;
            DescriptionRichTextBox.Text = _requirement.Description;
            MemoRichTextBox.Text = _requirement.Memo;
        }
 //Constructor
 public MainForm()
 {
     InitializeComponent();
     _presentationModel = new PresentationModel(this);
     _loginForm = new LoginForm(_presentationModel);
     _presentationModel.AddFormToPanel(_loginForm);
 }
        public RequirementEditorForm(PresentationModel presentationModel, Project project)
        {
            InitializeComponent();
            this._presentationModel = presentationModel;
            this._project = project;
            versionLabel.Text = "1";
            GetUserListByProject();

            _selectedHandler = new User();
            _selectedType = new NormalAttribute();
            _selectedPriority = new NormalAttribute();
            _selectedStatus = new NormalAttribute();

            _projectIds = new List<int>();
            _projectNames = new List<string>();
            _requireIds = new List<int>();
            _requireNames = new List<string>();
            _statusIds = new List<int>();
            _statusNames = new List<string>();
            _projectMemberArrayList = new List<int>();

            GetRequirementMethod(PRIORITY);
            GetRequirementMethod(REQUIREMENT);
            GetRequirementMethod(STATUS);
            CheckPriority();
        }
 public CommentEditorForm(PresentationModel presentationModel, Requirement requirement)
 {
     InitializeComponent();
     _requirement = requirement;
     _presentationModel = presentationModel;
     _requirementLabel.Text = requirement.Name;
     _ownerLabel.Text = _presentationModel.GetUserName();
 }
 public ProjectEditorForm(PresentationModel presentationModel, Project project)
 {
     InitializeComponent();
     this._presentationModel = presentationModel;
     this._project = project;
     nameTextBox.Text = _project.NAME;
     descriptionRichTextBox.Text = _project.DESC;
 }
 public UserInterfaceForm(PresentationModel presentationModel)
 {
     InitializeComponent();
     this._presentationModel = presentationModel;
     _buttonArrayList = new ArrayList();
     addProjectButton();
     addUserMenu();
 }
 public projectListForm(PresentationModel presentationModel)
 {
     InitializeComponent();
     this._presentationModel = presentationModel;
     this._yourProjectListDataGridView.ClearSelection();
     _joinedProjects = new ArrayList();
     RefreshProjectList();
 }
 public ProjectMainForm(PresentationModel presentationModel, Project project)
 {
     InitializeComponent();
     this._presentationModel = presentationModel;
     RefreshProjectDetail(project);
     type = UserInterfaceForm.FunctionalType.Hide;
     CheckPriority();
 }
        public TestEditorForm(PresentationModel presentationModel, Project project)
        {
            InitializeComponent();
            _project = project;
            _presentationModel = presentationModel;

            GetUserListByProject();
            GetRequirementByProject();
        }
 public UserListForm(PresentationModel presentationModel, Project project)
 {
     InitializeComponent();
     this._project = project;
     this._presentationModel = presentationModel;
     this._arrayList = new ArrayList();
     memberDataGridView.Columns[2].Visible = false;
     GetUserListByProject();
     GetProjectPriorityType();
 }
        public TestEditorForm(PresentationModel presentationModel, Test test)
        {
            InitializeComponent();
            _test = test;

            _presentationModel = presentationModel;
            GetRequirementByProject();
            GetUserListByTest();
            GetTestCaseDetailInformation();
        }
 public TestDetailForm(PresentationModel presentationModel,Test test)
 {
     InitializeComponent();
     _presentationModel = presentationModel;
     _test = test;
     _arrayList = new ArrayList();
     type = UserInterfaceForm.FunctionalType.Hide;
     RefreshTestDetail(test);
     CheckPriority();
 }
 public OthersForm(PresentationModel presentationModel, Project project)
 {
     InitializeComponent();
     _project = project;
     _presentationModel = presentationModel;
     _functionalType = UserInterfaceForm.FunctionalType.Hide;
     type = UserInterfaceForm.FunctionalType.Hide;
     GetRequirementByProject();
     GetNoAssociatedTestCaseByProjectId();
     GetNoAssociatedRequirementByProjectId();
 }
 public TestListForm(PresentationModel presentationModel, Project project)
 {
     InitializeComponent();
     this._presentationModel = presentationModel;
     this._project = project;
     _arrayList = new ArrayList();
     type = UserInterfaceForm.FunctionalType.Hide;
     testListDataGridView.Columns[2].Visible = false;
     RefreshTestList();
     CheckPriority();
 }
 public RequirementListForm(PresentationModel presentationModel, Project project)
 {
     InitializeComponent();
     this._presentationModel = presentationModel;
     this._project = project;
     this.requirementListDataGridView.ClearSelection();
     type = UserInterfaceForm.FunctionalType.Hide;
     _arrayList = new ArrayList();
     requirementListDataGridView.Columns[2].Visible = false;
     requirementListDataGridView.Columns[3].Visible = false;
     GetRequirementByProject();
     CheckPriority();
 }
        public TraceabilityMatrixForm(PresentationModel presentationModel, Project project)
        {
            InitializeComponent();
            _project = project;
            _presentationModel = presentationModel;
            /*
            DataGridViewColumnCollection columns = matrixDataGridView.Columns;
            columns.Add("nullColumn", "Traceability Matrix");
            columns.Add("testColumn1", "Test 1");
            columns.Add("testColumn2", "Test 2");
            columns.Add("testColumn3", "Test 3");
            columns.Add("testColumn4", "Test 4");
            columns.Add("testColumn5", "Test 5");
            columns.Add("testColumn6", "Test 6");
            DataGridViewCheckBoxColumn checkColumn = new DataGridViewCheckBoxColumn();
            checkColumn.Name = "testColumn7";
            checkColumn.HeaderText = "Test 7";
            checkColumn.TrueValue = true;
            checkColumn.FalseValue = false;
            checkColumn.FillWeight = 10; //if the datagridview is resized (on form resize) the checkbox won't take up too much; value is relative to the other columns' fill values
            matrixDataGridView.Columns.Add(checkColumn);

            columns.Cast<DataGridViewColumn>().ToList().ForEach(f => f.SortMode = DataGridViewColumnSortMode.NotSortable);

            DataGridViewRowCollection rows = matrixDataGridView.Rows;
            rows.Add("Requirement 1");
            rows.Add("Requirement 2");
            rows.Add("Requirement 3");
            rows.Add("Requirement 4");
            rows.Add("Requirement 5");
            rows.Add("Requirement 6");
            rows.Add("Requirement 7");
            rows.Add("Requirement 8");
            rows.Add("Requirement 9");
            rows.Add("Requirement 10");
            rows.Add("Requirement 11");
            rows.Add("Requirement 12");
            matrixDataGridView.Columns[0].Frozen = true;
            bool flag = false;
            foreach (DataGridViewRow row in matrixDataGridView.Rows)
            {
                DataGridViewCheckBoxCell chk = (DataGridViewCheckBoxCell)row.Cells[7];
                chk.Selected = flag;
                flag = !flag;
            }*/

            //CreateCell(new string[]{"1", "2"}, new string[]{"1", "2"});
            GetRequirementByProject();
        }
 public ProjectEditorForm(PresentationModel presentationModel)
 {
     InitializeComponent();
     this._presentationModel = presentationModel;
 }
 public LoginForm(PresentationModel presentationModel)
 {
     InitializeComponent();
     this._presentationModel = presentationModel;
 }
 public RegistrantionForm(PresentationModel presentationModel)
 {
     InitializeComponent();
     this._presentationModel = presentationModel;
 }