Ejemplo n.º 1
0
        public AddSocialExchange(CommeillFautAsset asset, SocialExchangeDTO dto)
        {
            InitializeComponent();

            this.dto   = dto;
            this.asset = asset;

            //Validators
            EditorTools.AllowOnlyGroundedLiteral(nameTextBox);
            EditorTools.AllowOnlyVariable(wfNameTarget);

            nameTextBox.Value       = dto.Name;
            textBoxDescription.Text = dto.Description;
            wfNameTarget.Value      = dto.Target;

            if (dto.Steps.Count > 0)
            {
                foreach (var s in dto.Steps)
                {
                    stepsTextBox.Text += s.ToString() + ", ";
                }

                stepsTextBox.Text = stepsTextBox.Text.ToString().Remove(stepsTextBox.Text.Length - 2);
            }
            buttonAdd.Text = (dto.Id == Guid.Empty) ? "Add" : "Update";
        }
Ejemplo n.º 2
0
        public AddSocialExchange(CommeillFautAsset asset, SocialExchangeDTO dto)
        {
            InitializeComponent();

            this.dto   = dto;
            this.asset = asset;

            //Validators
            EditorTools.AllowOnlyGroundedLiteral(nameTextBox);
            EditorTools.AllowOnlyVariable(wfNameTarget);

            nameTextBox.Value       = dto.Name;
            textBoxDescription.Text = dto.Description;
            wfNameTarget.Value      = dto.Target;


            stepsTextBox.Text = dto.Steps;


            buttonAdd.Text = (dto.Id == Guid.Empty) ? "Add" : "Update";
        }
Ejemplo n.º 3
0
 public AddCharacterForm(IntegratedAuthoringToolAsset asset)
 {
     InitializeComponent();
     _asset = asset;
     EditorTools.AllowOnlyGroundedLiteral(wfNameFieldBoxCharacterName);
 }