static void Main()
        {
            AssetManager.Instance.Bridge = new ApplicationBridge();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var form = new MainForm();
            form.CreateNewAsset();
            Application.Run(form);
        }
        public AddOrEditDialogueActionForm(MainForm form, bool isPlayerDialogue, Guid dialogId)
            : this(form,isPlayerDialogue)
        {
            buttonAddOrUpdate.Text = "Update";
            _dialogueStateActionToEdit =
                form.CurrentAsset.GetDialogActionById(
                    isPlayerDialogue ? IntegratedAuthoringToolAsset.PLAYER : IntegratedAuthoringToolAsset.AGENT, dialogId);

            textBoxCurrentState.Text = _dialogueStateActionToEdit.CurrentState;
            textBoxNextState.Text = _dialogueStateActionToEdit.NextState;
            textBoxMeaning.Text = _dialogueStateActionToEdit.Meaning.Length == 0 ? string.Empty : _dialogueStateActionToEdit.Meaning.Aggregate((s, s1) => s + ", " + s1);
            textBoxStyle.Text = _dialogueStateActionToEdit.Style.Length == 0 ? string.Empty : _dialogueStateActionToEdit.Style.Aggregate((s, s1) => s + ", " + s1);
            textBoxUtterance.Text = _dialogueStateActionToEdit.Utterance;
        }
 public AddOrEditDialogueActionForm(MainForm form, bool isPlayerDialogue)
 {
     InitializeComponent();
     _parentForm = form;
     _isPlayerDialogue = isPlayerDialogue;
 }