コード例 #1
0
        // View management (menu handlers)

        protected void ShowPropertyGrid(object sender, EventArgs args)
        {
            PropertyGridController.IfNull(() =>
            {
                NewDocument("propertyGrid.xml");
            });
        }
コード例 #2
0
        protected void LoadSymbols()
        {
            XmlSerializer xs = new XmlSerializer(typeof(Schema));
            StreamReader  sr = new StreamReader(SchemaFilename);

            Schema = (Schema)xs.Deserialize(sr);
            sr.Close();
            SymbolEditorController.IfNotNull(ctrl => ctrl.PopulateTree());
            PropertyGridController.IfNotNull(pgrid => pgrid.View.ShowObject(Schema));
            MruMenu.AddFile(SchemaFilename);
        }
コード例 #3
0
        protected void CreateSymbolsRootNode()
        {
            SymbolEditorController.IfNotNull(ctrl => ctrl.View.Clear());
            schemaController = new GenericController <Schema>();
            Schema           = (Schema)schemaController.Instance;

            SymbolEditorController.IfNotNull(ctrl =>
            {
                ctrl.View.AddNode(schemaController, null);
                PropertyGridController.IfNotNull(pgrid => pgrid.View.ShowObject(Schema));
            });
        }