Ejemplo n.º 1
0
        protected override void OnHandleDestroyed( EventArgs e )
        {
            myMarkupDocument.Dispose();
            myMarkupDocument = null;

            myDocumentBrowser.Browser.DocumentCompleted -= myBrowser_DocumentCompleted;
            myDocumentBrowser.Dispose();
            myBrowser.Dispose();
            myBrowser = null;

            base.OnHandleDestroyed( e );
        }
Ejemplo n.º 2
0
        private static Form Create(MarkupDocument document, IGraphicsObjectFactory factory)
        {
            var mapper = new UIMapper(factory);

            lock (customTypes)
            {
                foreach (var ctype in customTypes)
                {
                    mapper.RegisterType(ctype.Value, ctype.Key);
                }
            }
            return(mapper.Instantiate(document));
        }
Ejemplo n.º 3
0
        public BrowserForm()
        {
            InitializeComponent();

            myDocumentBrowser = new LegacyDocumentBrowser( myBrowser );
            myDocumentBrowser.Browser.Navigating += myBrowser_Navigating;
            myDocumentBrowser.Browser.DocumentCompleted += myBrowser_DocumentCompleted;

            // disable links
            // TODO: we cannot use this, it disables navigation in general (Navigate() too)
            //myBrowser.AllowNavigation = false;

            // TODO: how to disable images in browser

            myMarkupDocument = new MarkupDocument();
            myMarkupDocument.ValidationChanged += SeriesName_ValidationChanged;

            myDimension.DataSource = Enum.GetValues( typeof( CellDimension ) );
        }
 static void TestDocument(MarkupDocument document)
 {
 }
Ejemplo n.º 5
0
 public new Form Instantiate(MarkupDocument document) => (Form)this.Map(document);
Ejemplo n.º 6
0
 public LayoutDocument Instantiate(MarkupDocument document) => (LayoutDocument)this.Map(document);
Ejemplo n.º 7
0
        public Skin Instantiate(MarkupDocument document)
        {
            var doc = (Document)this.Map(document);

            return(doc.Skin);
        }
Ejemplo n.º 8
0
 static void TestDocument(MarkupDocument document)
 {
 }