Exemple #1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.lithiumControl = new Netron.Lithium.LithiumControl();
     this.txtInput       = new System.Windows.Forms.TextBox();
     this.btnParse       = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // lithiumControl
     //
     this.lithiumControl.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                    | System.Windows.Forms.AnchorStyles.Left)
                                   | System.Windows.Forms.AnchorStyles.Right);
     this.lithiumControl.AutoScroll        = true;
     this.lithiumControl.AutoScrollMinSize = new System.Drawing.Size(-2147483547, -2147483547);
     this.lithiumControl.BackColor         = System.Drawing.SystemColors.Window;
     this.lithiumControl.BranchHeight      = 70;
     this.lithiumControl.ConnectionType    = Netron.Lithium.ConnectionType.Default;
     this.lithiumControl.LayoutDirection   = Netron.Lithium.TreeDirection.Vertical;
     this.lithiumControl.LayoutEnabled     = true;
     this.lithiumControl.Location          = new System.Drawing.Point(0, 48);
     this.lithiumControl.Name        = "lithiumControl";
     this.lithiumControl.Size        = new System.Drawing.Size(200, 352);
     this.lithiumControl.TabIndex    = 0;
     this.lithiumControl.Text        = "lithiumControl";
     this.lithiumControl.WordSpacing = 20;
     //
     // txtInput
     //
     this.txtInput.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                             | System.Windows.Forms.AnchorStyles.Right);
     this.txtInput.Location  = new System.Drawing.Point(8, 16);
     this.txtInput.Name      = "txtInput";
     this.txtInput.Size      = new System.Drawing.Size(568, 20);
     this.txtInput.TabIndex  = 1;
     this.txtInput.Text      = "A rare black squirrel has become a regular visitor to a suburban garden.";
     this.txtInput.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtInput_KeyPress);
     //
     // btnParse
     //
     this.btnParse.Anchor   = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
     this.btnParse.Location = new System.Drawing.Point(584, 16);
     this.btnParse.Name     = "btnParse";
     this.btnParse.TabIndex = 2;
     this.btnParse.Text     = "Parse";
     this.btnParse.Click   += new System.EventHandler(this.btnParse_Click);
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(664, 478);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.btnParse,
         this.txtInput,
         this.lithiumControl
     });
     this.Name = "Form1";
     this.Text = "OpenNLP Parser Demo";
     this.ResumeLayout(false);
 }
Exemple #2
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this._lithiumControl = new Netron.Lithium.LithiumControl();
			this._txtInput = new System.Windows.Forms.TextBox();
			this._btnParse = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// _lithiumControl
			// 
			this._lithiumControl.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right);
			this._lithiumControl.AutoScroll = true;
			this._lithiumControl.AutoScrollMinSize = new System.Drawing.Size(-2147483547, -2147483547);
			this._lithiumControl.BackColor = System.Drawing.SystemColors.Window;
			this._lithiumControl.BranchHeight = 70;
			this._lithiumControl.ConnectionType = Netron.Lithium.ConnectionType.Default;
			this._lithiumControl.LayoutDirection = Netron.Lithium.TreeDirection.Vertical;
			this._lithiumControl.LayoutEnabled = true;
			this._lithiumControl.Location = new System.Drawing.Point(0, 48);
			this._lithiumControl.Name = "_lithiumControl";
			this._lithiumControl.Size = new System.Drawing.Size(200, 352);
			this._lithiumControl.TabIndex = 0;
			this._lithiumControl.Text = "_lithiumControl";
			this._lithiumControl.WordSpacing = 20;
			// 
			// _txtInput
			// 
			this._txtInput.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right);
			this._txtInput.Location = new System.Drawing.Point(8, 16);
			this._txtInput.Name = "_txtInput";
			this._txtInput.Size = new System.Drawing.Size(568, 20);
			this._txtInput.TabIndex = 1;
			this._txtInput.Text = "A rare black squirrel has become a regular visitor to a suburban garden.";
			this._txtInput.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtInput_KeyPress);
			// 
			// _btnParse
			// 
			this._btnParse.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
			this._btnParse.Location = new System.Drawing.Point(584, 16);
			this._btnParse.Name = "_btnParse";
			this._btnParse.TabIndex = 2;
			this._btnParse.Text = "Parse";
			this._btnParse.Click += new System.EventHandler(this.btnParse_Click);
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(664, 478);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this._btnParse,
																		  this._txtInput,
																		  this._lithiumControl});
			this.Name = "Form1";
			this.Text = "OpenNLP Parser Demo";
			this.ResumeLayout(false);

		}
Exemple #3
0
 /// <summary>
 /// Constructor with the site of the shape
 /// </summary>
 /// <param name="site">the graphcontrol instance to which the shape is attached</param>
 public ShapeBase(LithiumControl site) : base(site)
 {
     Init();
 }
 /// <summary>
 /// Initializes a new instance of the TreeViewer class.
 /// </summary>
 /// <param name="control">Control to use for viewing.</param>
 public TreeViewer(LithiumControl control)
 {
     lithiumControl = control;
 }
Exemple #5
0
 /// <summary>
 /// Default ctor
 /// </summary>
 /// <param name="control"></param>
 public GraphSerializer(LithiumControl control)
 {
     site = control;
 }
Exemple #6
0
		/// <summary>
		/// Ctor with the site of the entity
		/// </summary>
		/// <param name="site"></param>
		public Entity(LithiumControl site):this()
		{
			this.site = site;
		}
Exemple #7
0
		/// <summary>
		/// Default ctor
		/// </summary>
		/// <param name="s"></param>
		public OvalShape(LithiumControl s) : base(s)
		{
		
		}
 /// <summary>
 /// Constructor with the site of the shape
 /// </summary>
 /// <param name="site">the graphcontrol instance to which the shape is attached</param>
 public ShapeBase(LithiumControl site)
     : base(site)
 {
     Init();
 }
 /// <summary>
 /// Default ctor
 /// </summary>
 /// <param name="s"></param>
 public TextLabel(LithiumControl s)
     : base(s)
 {
     this.shapeColor = Color.Transparent;
 }
 /// <summary>
 /// Default ctor
 /// </summary>
 /// <param name="s"></param>
 public SimpleRectangle(LithiumControl s) : base(s)
 {
 }
Exemple #11
0
 /// <summary>
 /// Ctor with the site of the entity
 /// </summary>
 /// <param name="site"></param>
 public Entity(LithiumControl site) : this()
 {
     this.site = site;
 }
 /// <summary>
 /// Default ctor
 /// </summary>
 /// <param name="s"></param>
 public OvalShape(LithiumControl s) : base(s)
 {
 }
Exemple #13
0
 /// <summary>
 /// Default ctor
 /// </summary>
 /// <param name="s"></param>
 public TextLabel(LithiumControl s) : base(s)
 {
     this.shapeColor = Color.Transparent;
 }
 /// <summary>
 /// Default ctor
 /// </summary>
 /// <param name="control"></param>
 public GraphSerializer(LithiumControl control)
 {
     site = control;
 }
Exemple #15
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
     this.mainMenu               = new System.Windows.Forms.MainMenu(this.components);
     this.mnuFile                = new System.Windows.Forms.MenuItem();
     this.mnuSaveAs              = new System.Windows.Forms.MenuItem();
     this.mnuOpen                = new System.Windows.Forms.MenuItem();
     this.mnuDash1               = new System.Windows.Forms.MenuItem();
     this.mnuExit                = new System.Windows.Forms.MenuItem();
     this.menuItem3              = new System.Windows.Forms.MenuItem();
     this.mnuNewDiagram          = new System.Windows.Forms.MenuItem();
     this.mnuRandomDiagram       = new System.Windows.Forms.MenuItem();
     this.mnuDash4               = new System.Windows.Forms.MenuItem();
     this.mnuAddRandomNode       = new System.Windows.Forms.MenuItem();
     this.mnuCenterRoot          = new System.Windows.Forms.MenuItem();
     this.mnuAddChild            = new System.Windows.Forms.MenuItem();
     this.mnuDash3               = new System.Windows.Forms.MenuItem();
     this.mnuCollapseAll         = new System.Windows.Forms.MenuItem();
     this.mnuExpandAll           = new System.Windows.Forms.MenuItem();
     this.mnuDash2               = new System.Windows.Forms.MenuItem();
     this.mnuForceLayout         = new System.Windows.Forms.MenuItem();
     this.mnuLayoutDirection     = new System.Windows.Forms.MenuItem();
     this.mnuVerticalDirection   = new System.Windows.Forms.MenuItem();
     this.mnuHorizontalDirection = new System.Windows.Forms.MenuItem();
     this.menuItem1              = new System.Windows.Forms.MenuItem();
     this.mnuDFTInfo             = new System.Windows.Forms.MenuItem();
     this.mnuBFTInfo             = new System.Windows.Forms.MenuItem();
     this.mnuXMLExport           = new System.Windows.Forms.MenuItem();
     this.mnuColorLevels         = new System.Windows.Forms.MenuItem();
     this.mnuHelp                = new System.Windows.Forms.MenuItem();
     this.mnuHelpHelp            = new System.Windows.Forms.MenuItem();
     this.mnuDash5               = new System.Windows.Forms.MenuItem();
     this.mnuGotoGraphLib        = new System.Windows.Forms.MenuItem();
     this.mnuGotoNetronLight     = new System.Windows.Forms.MenuItem();
     this.mnuTheNetronProject    = new System.Windows.Forms.MenuItem();
     this.mnuClassReference      = new System.Windows.Forms.MenuItem();
     this.statusBar              = new System.Windows.Forms.StatusBar();
     this.rightPanel             = new System.Windows.Forms.Panel();
     this.rightTabControl        = new System.Windows.Forms.TabControl();
     this.tabProperties          = new System.Windows.Forms.TabPage();
     this.propertyGrid           = new System.Windows.Forms.PropertyGrid();
     this.tabOutput              = new System.Windows.Forms.TabPage();
     this.outputBox              = new System.Windows.Forms.TextBox();
     this.splitter1              = new System.Windows.Forms.Splitter();
     this.mainPanel              = new System.Windows.Forms.Panel();
     this.lithiumMenu            = new System.Windows.Forms.ContextMenu();
     this.cmnuNewDiagram         = new System.Windows.Forms.MenuItem();
     this.cmnuDash1              = new System.Windows.Forms.MenuItem();
     this.cmnuCenterRoot         = new System.Windows.Forms.MenuItem();
     this.cmnuAddChild           = new System.Windows.Forms.MenuItem();
     this.cmnuDelete             = new System.Windows.Forms.MenuItem();
     this.cmnuDash2              = new System.Windows.Forms.MenuItem();
     this.lithiumControl         = new Netron.Lithium.LithiumControl();
     this.rightPanel.SuspendLayout();
     this.rightTabControl.SuspendLayout();
     this.tabProperties.SuspendLayout();
     this.tabOutput.SuspendLayout();
     this.mainPanel.SuspendLayout();
     this.SuspendLayout();
     //
     // mainMenu
     //
     this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mnuFile,
         this.menuItem3,
         this.menuItem1,
         this.mnuHelp
     });
     //
     // mnuFile
     //
     this.mnuFile.Index = 0;
     this.mnuFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mnuSaveAs,
         this.mnuOpen,
         this.mnuDash1,
         this.mnuExit
     });
     this.mnuFile.Text = "File";
     //
     // mnuSaveAs
     //
     this.mnuSaveAs.Index  = 0;
     this.mnuSaveAs.Text   = "Save as...";
     this.mnuSaveAs.Click += new System.EventHandler(this.mnuSaveAs_Click);
     //
     // mnuOpen
     //
     this.mnuOpen.Index  = 1;
     this.mnuOpen.Text   = "Open...";
     this.mnuOpen.Click += new System.EventHandler(this.mnuOpen_Click);
     //
     // mnuDash1
     //
     this.mnuDash1.Index = 2;
     this.mnuDash1.Text  = "-";
     //
     // mnuExit
     //
     this.mnuExit.Index  = 3;
     this.mnuExit.Text   = "Exit";
     this.mnuExit.Click += new System.EventHandler(this.mnuExit_Click);
     //
     // menuItem3
     //
     this.menuItem3.Index = 1;
     this.menuItem3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mnuNewDiagram,
         this.mnuRandomDiagram,
         this.mnuDash4,
         this.mnuAddRandomNode,
         this.mnuCenterRoot,
         this.mnuAddChild,
         this.mnuDash3,
         this.mnuCollapseAll,
         this.mnuExpandAll,
         this.mnuDash2,
         this.mnuForceLayout,
         this.mnuLayoutDirection
     });
     this.menuItem3.Text = "Diagram";
     //
     // mnuNewDiagram
     //
     this.mnuNewDiagram.Index  = 0;
     this.mnuNewDiagram.Text   = "New diagram";
     this.mnuNewDiagram.Click += new System.EventHandler(this.mnuNewDiagram_Click);
     //
     // mnuRandomDiagram
     //
     this.mnuRandomDiagram.Index  = 1;
     this.mnuRandomDiagram.Text   = "Random diagram";
     this.mnuRandomDiagram.Click += new System.EventHandler(this.mnuRandomDiagram_Click);
     //
     // mnuDash4
     //
     this.mnuDash4.Index = 2;
     this.mnuDash4.Text  = "-";
     //
     // mnuAddRandomNode
     //
     this.mnuAddRandomNode.Index  = 3;
     this.mnuAddRandomNode.Text   = "Add random node";
     this.mnuAddRandomNode.Click += new System.EventHandler(this.mnuAddRandom_Click);
     //
     // mnuCenterRoot
     //
     this.mnuCenterRoot.Index  = 4;
     this.mnuCenterRoot.Text   = "Center root";
     this.mnuCenterRoot.Click += new System.EventHandler(this.mnuCenterRoot_Click);
     //
     // mnuAddChild
     //
     this.mnuAddChild.Index  = 5;
     this.mnuAddChild.Text   = "Add child";
     this.mnuAddChild.Click += new System.EventHandler(this.mnuAddChild_Click);
     //
     // mnuDash3
     //
     this.mnuDash3.Index = 6;
     this.mnuDash3.Text  = "-";
     //
     // mnuCollapseAll
     //
     this.mnuCollapseAll.Index  = 7;
     this.mnuCollapseAll.Text   = "Collapse all";
     this.mnuCollapseAll.Click += new System.EventHandler(this.mnuCollapseAll_Click);
     //
     // mnuExpandAll
     //
     this.mnuExpandAll.Index  = 8;
     this.mnuExpandAll.Text   = "Expand all";
     this.mnuExpandAll.Click += new System.EventHandler(this.mnuExpandAll_Click);
     //
     // mnuDash2
     //
     this.mnuDash2.Index = 9;
     this.mnuDash2.Text  = "-";
     //
     // mnuForceLayout
     //
     this.mnuForceLayout.Checked = true;
     this.mnuForceLayout.Index   = 10;
     this.mnuForceLayout.Text    = "Force layout";
     this.mnuForceLayout.Click  += new System.EventHandler(this.mnuForceLayout_Click);
     //
     // mnuLayoutDirection
     //
     this.mnuLayoutDirection.Index = 11;
     this.mnuLayoutDirection.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mnuVerticalDirection,
         this.mnuHorizontalDirection
     });
     this.mnuLayoutDirection.Text = "Layout direction";
     //
     // mnuVerticalDirection
     //
     this.mnuVerticalDirection.Index  = 0;
     this.mnuVerticalDirection.Text   = "Vertical";
     this.mnuVerticalDirection.Click += new System.EventHandler(this.mnuVerticalDirection_Click);
     //
     // mnuHorizontalDirection
     //
     this.mnuHorizontalDirection.Checked = true;
     this.mnuHorizontalDirection.Index   = 1;
     this.mnuHorizontalDirection.Text    = "Horizontal";
     this.mnuHorizontalDirection.Click  += new System.EventHandler(this.mnuHorizontalDirection_Click);
     //
     // menuItem1
     //
     this.menuItem1.Index = 2;
     this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mnuDFTInfo,
         this.mnuBFTInfo,
         this.mnuXMLExport,
         this.mnuColorLevels
     });
     this.menuItem1.Text = "Examples";
     //
     // mnuDFTInfo
     //
     this.mnuDFTInfo.Index  = 0;
     this.mnuDFTInfo.Text   = "DFT of the diagram";
     this.mnuDFTInfo.Click += new System.EventHandler(this.mnuDFTInfo_Click);
     //
     // mnuBFTInfo
     //
     this.mnuBFTInfo.Index  = 1;
     this.mnuBFTInfo.Text   = "BFT of the diagram";
     this.mnuBFTInfo.Click += new System.EventHandler(this.mnuBFTInfo_Click);
     //
     // mnuXMLExport
     //
     this.mnuXMLExport.Index  = 2;
     this.mnuXMLExport.Text   = "XML export";
     this.mnuXMLExport.Click += new System.EventHandler(this.mnuXMLExport_Click);
     //
     // mnuColorLevels
     //
     this.mnuColorLevels.Index  = 3;
     this.mnuColorLevels.Text   = "Color levels";
     this.mnuColorLevels.Click += new System.EventHandler(this.mnuColorLevels_Click);
     //
     // mnuHelp
     //
     this.mnuHelp.Index = 3;
     this.mnuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mnuHelpHelp,
         this.mnuDash5,
         this.mnuGotoGraphLib,
         this.mnuGotoNetronLight,
         this.mnuTheNetronProject,
         this.mnuClassReference
     });
     this.mnuHelp.Text = "Help";
     //
     // mnuHelpHelp
     //
     this.mnuHelpHelp.Index  = 0;
     this.mnuHelpHelp.Text   = "Lithium Help";
     this.mnuHelpHelp.Click += new System.EventHandler(this.mnuHelpHelp_Click);
     //
     // mnuDash5
     //
     this.mnuDash5.Index = 1;
     this.mnuDash5.Text  = "-";
     //
     // mnuGotoGraphLib
     //
     this.mnuGotoGraphLib.Index  = 2;
     this.mnuGotoGraphLib.Text   = "Graph Library";
     this.mnuGotoGraphLib.Click += new System.EventHandler(this.mnuGotoGraphLib_Click);
     //
     // mnuGotoNetronLight
     //
     this.mnuGotoNetronLight.Index  = 3;
     this.mnuGotoNetronLight.Text   = "Netron Light";
     this.mnuGotoNetronLight.Click += new System.EventHandler(this.mnuGotoNetronLight_Click);
     //
     // mnuTheNetronProject
     //
     this.mnuTheNetronProject.Index  = 4;
     this.mnuTheNetronProject.Text   = "The Netron Project";
     this.mnuTheNetronProject.Click += new System.EventHandler(this.mnuTheNetronProject_Click);
     //
     // mnuClassReference
     //
     this.mnuClassReference.Index  = 5;
     this.mnuClassReference.Text   = "Class reference";
     this.mnuClassReference.Click += new System.EventHandler(this.mnuClassReference_Click);
     //
     // statusBar
     //
     this.statusBar.Location = new System.Drawing.Point(0, 510);
     this.statusBar.Name     = "statusBar";
     this.statusBar.Size     = new System.Drawing.Size(832, 22);
     this.statusBar.TabIndex = 0;
     //
     // rightPanel
     //
     this.rightPanel.Controls.Add(this.rightTabControl);
     this.rightPanel.Dock     = System.Windows.Forms.DockStyle.Right;
     this.rightPanel.Location = new System.Drawing.Point(632, 0);
     this.rightPanel.Name     = "rightPanel";
     this.rightPanel.Size     = new System.Drawing.Size(200, 510);
     this.rightPanel.TabIndex = 3;
     //
     // rightTabControl
     //
     this.rightTabControl.Appearance = System.Windows.Forms.TabAppearance.FlatButtons;
     this.rightTabControl.Controls.Add(this.tabProperties);
     this.rightTabControl.Controls.Add(this.tabOutput);
     this.rightTabControl.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.rightTabControl.Location      = new System.Drawing.Point(0, 0);
     this.rightTabControl.Name          = "rightTabControl";
     this.rightTabControl.SelectedIndex = 0;
     this.rightTabControl.Size          = new System.Drawing.Size(200, 510);
     this.rightTabControl.TabIndex      = 0;
     //
     // tabProperties
     //
     this.tabProperties.Controls.Add(this.propertyGrid);
     this.tabProperties.Location = new System.Drawing.Point(4, 25);
     this.tabProperties.Name     = "tabProperties";
     this.tabProperties.Size     = new System.Drawing.Size(192, 481);
     this.tabProperties.TabIndex = 0;
     this.tabProperties.Text     = "Properties";
     //
     // propertyGrid
     //
     this.propertyGrid.Dock           = System.Windows.Forms.DockStyle.Fill;
     this.propertyGrid.LineColor      = System.Drawing.SystemColors.ScrollBar;
     this.propertyGrid.Location       = new System.Drawing.Point(0, 0);
     this.propertyGrid.Name           = "propertyGrid";
     this.propertyGrid.Size           = new System.Drawing.Size(192, 481);
     this.propertyGrid.TabIndex       = 0;
     this.propertyGrid.ToolbarVisible = false;
     //
     // tabOutput
     //
     this.tabOutput.Controls.Add(this.outputBox);
     this.tabOutput.Location = new System.Drawing.Point(4, 25);
     this.tabOutput.Name     = "tabOutput";
     this.tabOutput.Size     = new System.Drawing.Size(192, 502);
     this.tabOutput.TabIndex = 1;
     this.tabOutput.Text     = "Output";
     //
     // outputBox
     //
     this.outputBox.BackColor   = System.Drawing.SystemColors.Info;
     this.outputBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.outputBox.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.outputBox.Location    = new System.Drawing.Point(0, 0);
     this.outputBox.Multiline   = true;
     this.outputBox.Name        = "outputBox";
     this.outputBox.ReadOnly    = true;
     this.outputBox.ScrollBars  = System.Windows.Forms.ScrollBars.Vertical;
     this.outputBox.Size        = new System.Drawing.Size(192, 502);
     this.outputBox.TabIndex    = 0;
     //
     // splitter1
     //
     this.splitter1.Dock     = System.Windows.Forms.DockStyle.Right;
     this.splitter1.Location = new System.Drawing.Point(629, 0);
     this.splitter1.Name     = "splitter1";
     this.splitter1.Size     = new System.Drawing.Size(3, 510);
     this.splitter1.TabIndex = 4;
     this.splitter1.TabStop  = false;
     //
     // mainPanel
     //
     this.mainPanel.Controls.Add(this.lithiumControl);
     this.mainPanel.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.mainPanel.Location = new System.Drawing.Point(0, 0);
     this.mainPanel.Name     = "mainPanel";
     this.mainPanel.Size     = new System.Drawing.Size(629, 510);
     this.mainPanel.TabIndex = 5;
     //
     // lithiumMenu
     //
     this.lithiumMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.cmnuNewDiagram,
         this.cmnuDash1,
         this.cmnuCenterRoot,
         this.cmnuAddChild,
         this.cmnuDelete,
         this.cmnuDash2
     });
     //
     // cmnuNewDiagram
     //
     this.cmnuNewDiagram.Index  = 0;
     this.cmnuNewDiagram.Text   = "New diagram";
     this.cmnuNewDiagram.Click += new System.EventHandler(this.mnuNewDiagram_Click);
     //
     // cmnuDash1
     //
     this.cmnuDash1.Index = 1;
     this.cmnuDash1.Text  = "-";
     //
     // cmnuCenterRoot
     //
     this.cmnuCenterRoot.Index  = 2;
     this.cmnuCenterRoot.Text   = "Center root";
     this.cmnuCenterRoot.Click += new System.EventHandler(this.mnuCenterRoot_Click);
     //
     // cmnuAddChild
     //
     this.cmnuAddChild.Index  = 3;
     this.cmnuAddChild.Text   = "Add child";
     this.cmnuAddChild.Click += new System.EventHandler(this.mnuAddChild_Click);
     //
     // cmnuDelete
     //
     this.cmnuDelete.Index  = 4;
     this.cmnuDelete.Text   = "Delete";
     this.cmnuDelete.Click += new System.EventHandler(this.mnuDelete_Click);
     //
     // cmnuDash2
     //
     this.cmnuDash2.Index = 5;
     this.cmnuDash2.Text  = "-";
     //
     // lithiumControl
     //
     this.lithiumControl.AutoScroll      = true;
     this.lithiumControl.BackColor       = System.Drawing.Color.WhiteSmoke;
     this.lithiumControl.BranchHeight    = 120;
     this.lithiumControl.ConnectionType  = Netron.Lithium.ConnectionType.Traditional;
     this.lithiumControl.ContextMenu     = this.lithiumMenu;
     this.lithiumControl.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.lithiumControl.Font            = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lithiumControl.LayoutDirection = Netron.Lithium.TreeDirection.Horizontal;
     this.lithiumControl.LayoutEnabled   = true;
     this.lithiumControl.Location        = new System.Drawing.Point(0, 0);
     this.lithiumControl.Name            = "lithiumControl";
     this.lithiumControl.Size            = new System.Drawing.Size(629, 510);
     this.lithiumControl.TabIndex        = 3;
     this.lithiumControl.Text            = "lithiumControl1";
     this.lithiumControl.WordSpacing     = 20;
     this.lithiumControl.OnShowProps    += new Netron.Lithium.ShowProps(this.lithiumControl_OnShowProps);
     this.lithiumControl.OnNewNode      += new Netron.Lithium.ShapeData(this.lithiumControl_OnNewNode);
     this.lithiumControl.OnDeleteNode   += new Netron.Lithium.ShapeData(this.lithiumControl_OnDeleteNode);
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize        = new System.Drawing.Size(832, 532);
     this.Controls.Add(this.mainPanel);
     this.Controls.Add(this.splitter1);
     this.Controls.Add(this.rightPanel);
     this.Controls.Add(this.statusBar);
     this.Font          = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.KeyPreview    = true;
     this.Menu          = this.mainMenu;
     this.Name          = "MainForm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Tree control example";
     this.rightPanel.ResumeLayout(false);
     this.rightTabControl.ResumeLayout(false);
     this.tabProperties.ResumeLayout(false);
     this.tabOutput.ResumeLayout(false);
     this.tabOutput.PerformLayout();
     this.mainPanel.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #16
0
		/// <summary>
		/// Default ctor
		/// </summary>
		/// <param name="s"></param>
		public SimpleRectangle(LithiumControl s) : base(s)
		{
			
		}
Exemple #17
0
		/// <summary>
		/// Default ctor
		/// </summary>
		/// <param name="site"></param>
		public Proxy(LithiumControl site)
		{this.site = site;}
Exemple #18
0
 /// <summary>
 /// Default ctor
 /// </summary>
 /// <param name="site"></param>
 public Proxy(LithiumControl site)
 {
     this.site = site;
 }