Esempio n. 1
0
            GetStandardValues(ITypeDescriptorContext context)
            {
                TransitionEditor    instance = (TransitionEditor)context.Instance;
                RequirementSetPanel panel    = (RequirementSetPanel)instance.Control.Panel;

                return(GetValues(panel.Model));
            }
Esempio n. 2
0
        /// <summary>
        ///     Handles a double click event on the control
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="mouseEventArgs"></param>
        public override void HandleDoubleClick(object sender, MouseEventArgs mouseEventArgs)
        {
            base.HandleDoubleClick(sender, mouseEventArgs);

            RequirementSetPanel panel = (RequirementSetPanel)Panel;

            if (panel != null)
            {
                RequirementSetDiagramWindow window = new RequirementSetDiagramWindow();
                GuiUtils.MdiWindow.AddChildWindow(window);
                window.Text = TypedModel.Name;
                OpenRequirementSetOperation openRequirementSet = new OpenRequirementSetOperation(window, TypedModel);
                openRequirementSet.ExecuteUsingProgressDialog(GuiUtils.MdiWindow, "Opening requirement set " + TypedModel.Name);
            }
        }
Esempio n. 3
0
        public override BoxArrowPanel <IHoldsRequirementSets, RequirementSet, RequirementSetDependancy> CreatePanel()
        {
            BoxArrowPanel <IHoldsRequirementSets, RequirementSet, RequirementSetDependancy> retVal =
                new RequirementSetPanel();

            return(retVal);
        }
Esempio n. 4
0
 /// <summary>
 ///     Constructor
 /// </summary>
 /// <param name="panel"></param>
 /// <param name="model"></param>
 public RequirementSetDependancyControl(RequirementSetPanel panel, RequirementSetDependancy model)
     : base(panel, model)
 {
 }
Esempio n. 5
0
 /// <summary>
 ///     Constructor
 /// </summary>
 public RequirementSetControl(RequirementSetPanel panel, RequirementSet model)
     : base(panel, model)
 {
 }