Example #1
0
        public override void OnImportsSatisfied()
        {
            base.OnImportsSatisfied();

            this.CustomizeFormular = true;

            var init = Formular.Clone() as MessageFormular;

            init.Require(RequireEnum.None);

            LayoutPanel.Formular      = init;
            LayoutPanel.CanEditFields = init.IsDynamic;

            FormularUpdate += (sender, formular) => UpdateWindow(formular, formular.IsDynamic);// sender is commonly MessageFormularRegistry
            FormularUpdate += (sender, formular) => TryDefinePins(sender, formular);

            LayoutPanel.Changed += ReadLayoutPanel;
        }