public TableLayoutMainContentDocuments()
        {
            Documents = new List <FlowLayoutDocument>();

            AddDocumentButton = new AntiAliasedButton();
            Init();
        }
示例#2
0
        public TableLayoutMainContentAlternatives()
        {
            Alternatives = new List <FlowLayoutAlternative>();

            AddAlternativeButton = new AntiAliasedButton();
            Init();
        }
        public FlowLayoutPlanningItem(int planningItemIndex)
        {
            PlanningItemIndex = planningItemIndex;
            PlanningItem      = ProjectSetupWizard.Instance.ModelCopy.PlanningItems.Count > PlanningItemIndex ? ProjectSetupWizard.Instance.ModelCopy.PlanningItems[PlanningItemIndex] : null;
            Dock = DockStyle.Top;
            //this.Anchor = AnchorStyles.Left;
            Location = new Point(3, 3);
            Name     = "flowLayoutPanelPlanningItem" + PlanningItemIndex;
            Size     = new Size(714, 84);
            TabIndex = 0;

            planningItemTextLabel     = new AntiAliasedLabel();
            PlanningItemText          = new TextBox();
            planningItemFinishedLabel = new AntiAliasedLabel();
            PlanningItemFinished      = new CheckBox();
            deletePlanningItemButton  = new AntiAliasedButton();
            SuspendLayout();
            Init();
        }
        public FlowLayoutStakeholder(int stakeholderIndex)
        {
            StakeholderIndex = stakeholderIndex;
            Stakeholder      = ProjectSetupWizard.Instance.ModelCopy.Stakeholders.Count > StakeholderIndex ? ProjectSetupWizard.Instance.ModelCopy.Stakeholders[StakeholderIndex] : null;
            Dock             = DockStyle.Top;
            //this.Anchor = AnchorStyles.Left;
            Location = new Point(3, 3);
            Name     = "flowLayoutPanelStakeholder" + StakeholderIndex;
            Size     = new Size(714, 84);
            TabIndex = 0;

            stakeholderNameLabel    = new AntiAliasedLabel();
            StakeholderName         = new TextBox();
            stakeholderRoleLabel    = new AntiAliasedLabel();
            StakeholderRole         = new TextBox();
            deleteStakeholderButton = new AntiAliasedButton();
            SuspendLayout();
            Init();
        }
示例#5
0
        public FlowLayoutDocument(int documentIndex)
        {
            DocumentIndex = documentIndex;

            Dock = DockStyle.Top;
            //this.Anchor = AnchorStyles.Left;
            Location = new Point(3, 3);
            Name     = "flowLayoutPanelDocument" + DocumentIndex;
            Size     = new Size(714, 84);
            TabIndex = 0;

            fileNameLabel        = new AntiAliasedLabel();
            FileName             = new TextBox();
            filePathLabel        = new AntiAliasedLabel();
            FilePath             = new TextBox();
            chooseFileButton     = new AntiAliasedButton();
            deleteDocumentButton = new AntiAliasedButton();
            SuspendLayout();
            Init();
        }
示例#6
0
        public void Init()
        {
            //
            // flowLayoutPanelAlternative1
            //

            Dock     = DockStyle.Top;
            Location = new Point(3, 3);
            Name     = "flowLayoutPanelAlternative" + Alternative.Id;
            Size     = new Size(714, 84);
            TabIndex = 0;

            alternativeIndexLabel    = new AntiAliasedLabel();
            alternativeTitleLabel    = new AntiAliasedLabel();
            TextBoxAlternativeTitle  = new TextBox();
            alternativeStateLabel    = new AntiAliasedLabel();
            alternativeStateDropdown = new ComboBox {
                DropDownStyle = ComboBoxStyle.DropDownList, FormattingEnabled = true
            };
            deleteAlternativeButton = new AntiAliasedButton();

            Controls.Clear();
            Controls.Add(alternativeIndexLabel);
            Controls.Add(alternativeTitleLabel);
            Controls.Add(TextBoxAlternativeTitle);
            Controls.Add(alternativeStateLabel);
            Controls.Add(alternativeStateDropdown);
            Controls.Add(deleteAlternativeButton);
            //
            // alternativeTitleLabel
            //
            alternativeIndexLabel.AutoSize = true;
            alternativeIndexLabel.Location = new Point(3, 15);
            alternativeIndexLabel.Margin   = new Padding(3, 10, 3, 0);
            alternativeIndexLabel.Name     = "alternativeIndexLabel";
            alternativeIndexLabel.Size     = new Size(10, 19);
            alternativeIndexLabel.TabIndex = 0;
            alternativeIndexLabel.Text     = Alternative.IdentifierString;
            //
            // alternativeTitleLabel
            //
            alternativeTitleLabel.AutoSize = true;
            alternativeTitleLabel.Location = new Point(25, 17);
            alternativeTitleLabel.Margin   = new Padding(3, 10, 3, 0);
            alternativeTitleLabel.Name     = "alternativeTitleLabel";
            alternativeTitleLabel.Size     = new Size(100, 19);
            alternativeTitleLabel.TabIndex = 1;
            alternativeTitleLabel.Text     = "Title:";
            //
            // textBoxAlternativeTitle
            //
            TextBoxAlternativeTitle.Location = new Point(127, 15);
            TextBoxAlternativeTitle.Margin   = new Padding(3, 6, 400, 3);
            TextBoxAlternativeTitle.Name     = "textBoxAlternativeTitle";
            TextBoxAlternativeTitle.Size     = new Size(350, 27);
            TextBoxAlternativeTitle.TabIndex = 2;
            //
            // alternativeStateLabel
            //
            alternativeStateLabel.AutoSize = true;
            alternativeStateLabel.Location = new Point(25, 52);
            alternativeStateLabel.Margin   = new Padding(3, 10, 3, 0);
            alternativeStateLabel.Name     = "alternativeStateLabel";
            alternativeStateLabel.Size     = new Size(100, 19);
            alternativeStateLabel.TabIndex = 3;
            alternativeStateLabel.Text     = "State:";
            //
            // alternativeStateDropdown
            //
            alternativeStateDropdown.FormattingEnabled = true;
            alternativeStateDropdown.Items.Clear();
            alternativeStateDropdown.Items.AddRange(Enum.GetNames(typeof(AlternativeState)));
            alternativeStateDropdown.SelectedIndex = 0;
            alternativeStateDropdown.Location      = new Point(127, 50);
            alternativeStateDropdown.Margin        = new Padding(3, 6, 3, 3);
            alternativeStateDropdown.Name          = "alternativeStateDropdown";
            alternativeStateDropdown.Size          = new Size(350, 27);
            alternativeStateDropdown.TabIndex      = 4;
            //
            // deleteAlternativeButton
            //
            deleteAlternativeButton.Name = "deleteAlternativeButton";
            deleteAlternativeButton.UseVisualStyleBackColor = true;
            deleteAlternativeButton.Click   += RemoveAlternative;
            deleteAlternativeButton.TabIndex = 5;
            deleteAlternativeButton.Location = new Point(600, 50);
            deleteAlternativeButton.Size     = new Size(140, 27);
            deleteAlternativeButton.Margin   = new Padding(3, 0, 3, 3);
            deleteAlternativeButton.Text     = "Delete";
            ResumeLayout(false);
            PerformLayout();
        }
示例#7
0
 public TableLayoutMainContentStakeholders()
 {
     Stakeholders         = new List <FlowLayoutStakeholder>();
     AddStakeholderButton = new AntiAliasedButton();
     Init();
 }
 public TableLayoutMainContentPlanningItems()
 {
     PlanningItems         = new List <FlowLayoutPlanningItem>();
     AddPlanningItemButton = new AntiAliasedButton();
     Init();
 }