Пример #1
0
        protected void UpdateHope()
        {
            IServiceManager serviceManager      = canvas.ServiceManager;
            IHigherOrderProgrammingService hope = serviceManager.Get <IHigherOrderProgrammingService>();

            hope.EnableDisableReceptor(Text.RemoveWhitespace().Replace("\n", ""), enabled);
        }
Пример #2
0
        public PublishSemanticType(string typeName, PropertyContainer pc, object st, IHigherOrderProgrammingService hope)
        {
            if (st is ExpandoObject)
            {
                TypeDescriptor.AddProvider(new ExpandoObjectTypeDescriptionProvider(), st);
            }

            InitializeComponent();
            Text          = typeName;
            this.pc       = pc;
            this.hope     = hope;
            this.typeName = typeName;
            pgSemanticType.SelectedObject = st;
            FormClosing += OnFormClosing;
            TopMost      = true;
        }
Пример #3
0
        public override void RightClick()
        {
            IServiceManager serviceManager      = canvas.ServiceManager;
            IHigherOrderProgrammingService hope = serviceManager.Get <IHigherOrderProgrammingService>();

            // hope.UnloadHopeAssembly();
            // hope.LoadHopeAssembly();

            if (!hope.RunnerLoaded)
            {
                hope.LoadHopeAssembly();
                hope.InstantiateReceptors();
            }

            PropertyContainer pc  = hope.DescribeSemanticType(Text);
            CustomClass       cls = new CustomClass();

            AddProperties(cls, pc);
            PublishSemanticType pst = new PublishSemanticType(Text, pc, cls, hope);

            pst.Show();
        }