public void SetUp() { this.serviceLocator = new Mock <IServiceLocator>(); ServiceLocator.SetLocatorProvider(() => this.serviceLocator.Object); this.serviceLocator.Setup(x => x.GetInstance <IThingCreator>()).Returns(Mock.Of <IThingCreator>()); this.diagramControl = new DiagramControl(); this.elementDefinition = new ElementDefinition(); this.parameter1 = new Parameter { ParameterType = new SimpleQuantityKind() }; this.parameter2 = new Parameter { ParameterType = new SimpleQuantityKind() }; this.elementDefinition.Parameter.Add(this.parameter1); this.elementDefinition.Parameter.Add(this.parameter2); this.diagramObject = new DiagramObject { DepictedThing = this.elementDefinition }; this.session = Mock.Of <ISession>(); this.diagramContentItem = new DiagramContentItem(); this.cdp4DiagramOrgChartBehavior = new Cdp4DiagramOrgChartBehavior(); this.diagramDropInfo = new Mock <IDiagramDropInfo>(); this.dropTarget = new Mock <IDropTarget>(); this.iDropTarget = new Mock <IIDropTarget>(); this.iDropTarget.Setup(x => x.DropTarget).Returns(this.dropTarget.Object); }
protected override void OnDetaching() { base.OnDetaching(); AssociatedObject.Loaded -= OnAssociatedObjectLoadedOrUloaded; AssociatedObject.Unloaded -= OnAssociatedObjectLoadedOrUloaded; Diagram = null; }
public UMLDiagram(UMLupdater umlupdater) { InitializeComponent(); this.Dock = DockStyle.Fill; project = new Project(NClass.GUI.Settings.DefaultLanguage); ProjectCore.raptorUpdater = umlupdater as RAPTORUpdater; diagram = new DiagramControl(project); diagram.Dock = DockStyle.Fill; diagram.ZoomChanged += new EventHandler(diagram_ZoomChanged); toolStripContainer.ContentPanel.Controls.Add(diagram); optionsDialog = new NClass.GUI.OptionsDialog(); //lblStatus.Text = Strings.GetString("ready"); project.FileStateChanged += new EventHandler(project_FileStateChanged); project.LanguageChanged += delegate { UpdateLanguageChanges(); }; project.RelationAdded += new RelationEventHandler(project_RelationAdded); diagram.SelectionChanged += new System.EventHandler(this.diagram_SelectionChanged); optionsDialog.Applied += new EventHandler(optionsDialog_Apply); optionsDialog.CurrentStyleChanged += new EventHandler(optionsDialog_CurrentStyleChanged); Strings.LanguageChanged += new EventHandler(Strings_LanguageChanged); //LoadPlugins(); UpdateTexts(); UpdateLanguageChanges(); }
protected override void Seed(DiagramStorage storage) { base.Seed(storage); var diagram = new DiagramControl(); for (int i = 0; i < 5; i++) { diagram.Items.Add(new DiagramShape() { Position = new Point(200, 100 + i * 100), Width = 100, Height = 50, Content = "Item " + (i + 1).ToString(), }); if (i == 0) { continue; } using (var stream = new MemoryStream()) { diagram.SaveDocument(stream); var diagramData = new DiagramData() { Name = (i + 1).ToString() + " items", Data = stream.ToArray(), }; storage.DiagramData.Add(diagramData); } } storage.SaveChanges(); }
protected override void Seed(DiagramStorage storage) { base.Seed(storage); var diagram = new DiagramControl(); for (int i = 0; i < 5; i++) { diagram.Items.Add(new DiagramShape() { Position = new DevExpress.Utils.PointFloat(200, 100 + i * 100), Width = 100, Height = 50, Content = "Item " + (i + 1).ToString(), }); if (i == 0) { continue; } diagram.SelectedStencils = new StencilCollection(new string[] { DiagramToolboxRegistrator.Stencils.ElementAt(i).Id }); using (var stream = new MemoryStream()) { diagram.SaveDocument(stream); var diagramData = new DiagramData() { Name = (i + 1).ToString() + " items", Data = stream.ToArray(), }; storage.DiagramData.Add(diagramData); } } storage.SaveChanges(); }
public DiagramWindowService( [NotNull] IDiagramUi diagramViewModel, [NotNull] DiagramControl diagramControl, [NotNull] Func <DiagramViewModel, IDiagramStyleProvider, IDiagramImageCreator> diagramImageCreatorFactory) : base(diagramViewModel, diagramControl, diagramImageCreatorFactory) { }
private void Init() { InitializeComponent(); LoadWindowSettings(); if (MonoHelper.IsRunningOnMono) { this.AllowDrop = false; } project = new Project(Settings.DefaultLanguage); diagram = new DiagramControl(project); diagram.Dock = DockStyle.Fill; diagram.ZoomChanged += new EventHandler(diagram_ZoomChanged); toolStripContainer.ContentPanel.Controls.Add(diagram); optionsDialog = new OptionsDialog(); lblStatus.Text = Strings.GetString("ready"); project.FileStateChanged += new EventHandler(project_FileStateChanged); project.LanguageChanged += delegate { UpdateLanguageChanges(); }; project.RelationAdded += new RelationEventHandler(project_RelationAdded); diagram.SelectionChanged += new System.EventHandler(this.diagram_SelectionChanged); optionsDialog.Applied += new EventHandler(optionsDialog_Apply); optionsDialog.CurrentStyleChanged += new EventHandler(optionsDialog_CurrentStyleChanged); Strings.LanguageChanged += new EventHandler(Strings_LanguageChanged); LoadPlugins(); UpdateTexts(); UpdateLanguageChanges(); #if !DEBUG AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(AppDomain_UnhandledException); #endif }
/// <summary> /// Creates the diagram canvas. /// </summary> private static void CreateDiagramCanvas() { DiagramForm frm = new DiagramForm(); mDiagram = frm.DiagramControl; frm.Show(DockPanel, Properties.Settings.Default.DiagramDockState); Tabs.Diagram = frm; }
static void AddIdealLine(DiagramControl diagram, IEnumerable <DateTime> days, decimal maximum, double lineWidth, double x0, double y0, double x1, double y1) { var workDaysCount = days.Count(x => !IsHolyday(x)); var dayValue = (double)maximum * y1 / workDaysCount; var points = days.Aggregate(((double)maximum * y1).Yield(), (r, x) => r.Concat((IsHolyday(x) ? r.Last() : r.Last() - dayValue).Yield())).ToArray(); DrawLine(diagram, points, Brushes.Honeydew, lineWidth, x0, y0, x1, y1); }
private void ListviewMarkdownHtml_OnSelectionChanged(object sender, SelectionChangedEventArgs e) { RenderingSettingsItemContent.Children.Clear(); var item = (RenderModel)((ListView)sender).SelectedItem; switch (item) { case CoreRenderModel coreRenderModel: var coreControl = new CoreControl(); coreControl.Init(coreRenderModel); RenderingSettingsItemContent.Children.Add(coreControl); break; case EmphasisExtraRenderModel emphasisExtraModel: var emphasisExtraControl = new EmphasisExtraControl(); emphasisExtraControl.Init(emphasisExtraModel); RenderingSettingsItemContent.Children.Add(emphasisExtraControl); break; case TableRenderModel tableModel: var tableControl = new TableControl(); tableControl.Init(tableModel); RenderingSettingsItemContent.Children.Add(tableControl); break; case ListRenderModel listModel: var listControl = new ListControl(); listControl.Init(listModel); RenderingSettingsItemContent.Children.Add(listControl); break; case MathRenderModel mathModel: var mathControl = new MathControl(); mathControl.Init(mathModel); RenderingSettingsItemContent.Children.Add(mathControl); break; case SyntaxHighlightingRenderModel syntaxHighlightingModel: var syntaxHighlightingControl = new SyntaxHighlightingControl(); syntaxHighlightingControl.Init(syntaxHighlightingModel); RenderingSettingsItemContent.Children.Add(syntaxHighlightingControl); break; case DiagramRenderModel diagramModel: var diagramControl = new DiagramControl(); diagramControl.Init(diagramModel); RenderingSettingsItemContent.Children.Add(diagramControl); break; default: // TODO Error UI model does not exist // TODO Analytics break; } }
public NetronController(Project project, DiagramControl netronDiagram) : base(project) { _presentation = netronDiagram; _mathBridges = new Dictionary <Guid, Bridge>(); _netronBridges = new Dictionary <Document, Bridge>(); Init(); _presentation.OnEntityAdded += NetronEntityAddedHandler; _presentation.OnEntityRemoved += NetronEntityRemovedHandler; }
public DevExpressVisualControl(MainForm link, Point loc, Size size) { //initialize and adding control on MainForm diagramControl = new DiagramControl() { Location = loc, Size = size }; link.Controls.Add(diagramControl); }
//Defines the nodes public void createLeftNodes(Node Root, BowtieSubTreePlacement place) { double width = 70; double height = 25; int fontSize = 10; //Defining nodes. Node n0 = AddNode("Good Feelings", "#ED0006", Brushes.Black, Shapes.Rectangle, 80, height, fontSize); Node n02 = AddNode("Positive", "#E02B5F", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n03 = AddNode("Thankful", "#E02B5F", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n04 = AddNode("Happy", "#E02B5F", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n05 = AddNode("Comfortable", "#E02B5F", Brushes.Black, Shapes.Rectangle, width, height, fontSize); //Level two nodes Node n021 = AddNode("Enthusiastic", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n022 = AddNode("Excited", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n031 = AddNode("Grateful", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n032 = AddNode("Lucky", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n041 = AddNode("Cheerful", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n042 = AddNode("Wonderful", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n043 = AddNode("Joyful", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n044 = AddNode("Great", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n051 = AddNode("Relaxed", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n052 = AddNode("Peaceful", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n053 = AddNode("Calm", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); DiagramControl.SetBowtieSubTreePlacement(n0, place); //Creating conections between nodes Connect(Root, n0); Connect(n0, n02); Connect(n0, n03); Connect(n0, n04); Connect(n0, n05); Connect(n02, n021); Connect(n02, n022); Connect(n03, n031); Connect(n03, n032); Connect(n04, n041); Connect(n04, n042); Connect(n04, n043); Connect(n04, n044); Connect(n05, n051); Connect(n05, n052); Connect(n05, n053); }
//Defines the nodes public void createRightNodes(Node Root, BowtieSubTreePlacement place) { double width = 70; double height = 25; int fontSize = 10; Node n0 = AddNode("Bad Feelings", "#ED0006", Brushes.Black, Shapes.Rectangle, 80, height, fontSize); Node n01 = AddNode("Angry", "#E02B5F", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n02 = AddNode("Alone", "#E02B5F", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n03 = AddNode("Sad", "#E02B5F", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n04 = AddNode("Confused", "#E02B5F", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n011 = AddNode("Annoyed", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n012 = AddNode("Furious", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n021 = AddNode("Lonely", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n022 = AddNode("Lost", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n031 = AddNode("Upset", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n032 = AddNode("Disappointed", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n041 = AddNode("Tensed", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n042 = AddNode("Embarrassed", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n043 = AddNode("Ashamed", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n044 = AddNode("Frustrated", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); Node n045 = AddNode("Guilty", "#25A0DA", Brushes.Black, Shapes.Rectangle, width, height, fontSize); DiagramControl.SetBowtieSubTreePlacement(n0, place); //Creating conections between nodes Connect(Root, n0); Connect(n0, n01); Connect(n0, n04); Connect(n0, n02); Connect(n0, n03); Connect(n01, n011); Connect(n01, n012); Connect(n02, n021); Connect(n02, n022); Connect(n03, n031); Connect(n03, n032); Connect(n04, n041); Connect(n04, n042); Connect(n04, n043); Connect(n04, n044); Connect(n04, n045); }
private void DiagramControl1_SelectionChanged(object sender, DevExpress.XtraDiagram.DiagramSelectionChangedEventArgs e) { // https://www.devexpress.com/Support/Center/Question/Details/T323487/does-diagramshape-support-click-event DiagramControl control = sender as DiagramControl; if (control.SelectedItems.Count > 0) { DiagramShape diagramShape = control.SelectedItems[0] as DiagramShape; MessageBox.Show(diagramShape.Content); } }
private void CreateView(ContextViewMode mode, DiagramControl source, DiagramControl target) { ContextViewManager ContextView = new ContextViewManager(source, target); ContextView.ContextViewMode = mode; DirectedTreeLayout layout = new DirectedTreeLayout(diagramModel, diagramView); diagramModel.HorizontalSpacing = 10; diagramModel.VerticalSpacing = 80; diagramModel.SpaceBetweenSubTrees = 10; ContextView.Layout = layout; }
public WpfDiagramUiService( [NotNull] IDiagramUi diagramUi, [NotNull] DiagramControl diagramControl, [NotNull] Func <DiagramViewModel, IDiagramStyleProvider, IDiagramImageCreator> diagramImageCreatorFactory) { DiagramViewModel = (DiagramViewModel)diagramUi; DiagramControl = diagramControl; DiagramControl.DataContext = DiagramViewModel; _diagramImageCreatorFactory = diagramImageCreatorFactory; }
static DiagramControl FillDiagram(IEnumerable <DateTime> days, IEnumerable <decimal> estimates) { var diagram = new DiagramControl(); var size = PaperSizeCalculator.GetPixelSize(PaperKind.A4); diagram.PageSize = new Size(size.Height, size.Width); double lineWidth, x0, y0, x1, y1; AddAxes(diagram, days.Count(), estimates.First(), out lineWidth, out x0, out y0, out x1, out y1); AddIdealLine(diagram, days, estimates.First(), lineWidth, x0, y0, x1, y1); AddRealLine(diagram, days, estimates, lineWidth, x0, y0, x1, y1); return(diagram); }
public DiagramUi(IHostUiServices hostUiServices, IArrangedDiagram diagram) { _hostUiServices = hostUiServices; _resourceDictionary = ResourceHelpers.GetResourceDictionary(DiagramStylesXaml, Assembly.GetExecutingAssembly()); _diagramViewModel = new DiagramViewModel(diagram, minZoom: .1, maxZoom: 10, initialZoom: 1); _diagramControl = new DiagramControl(_resourceDictionary) { DataContext = _diagramViewModel }; hostUiServices.HostDiagram(_diagramControl); SubscribeToDiagramViewModelEvents(_diagramViewModel); }
static void DrawLine(DiagramControl diagram, double[] points, Brush brush, double lineWidth, double x0, double y0, double x1, double y1) { var lines = points.Take(points.Length - 1).Zip(points.Skip(1), (x, y) => new { start = x, end = y }).ToArray(); var shapes = lines.Select((x, i) => new DiagramShape() { Background = brush, Height = lineWidth, Width = Math.Sqrt((x.start - x.end) * (x.start - x.end) + x1 * x1), Angle = Math.Atan2(x.end - x.start, x1) * 180.0 / Math.PI, Position = new Point(x0 + i * x1 + x1 / 2 - Math.Sqrt((x.start - x.end) * (x.start - x.end) + x1 * x1) / 2, y0 - (x.start + x.end) / 2 - lineWidth / 2) }).ToArray(); shapes.ForEach(x => diagram.Items.Add(x)); }
public RoslynUiService(IHostUiServices hostUiServices, RoslynDiagramViewModel diagramViewModel) : base(diagramViewModel) { _hostUiServices = hostUiServices; _diagramViewModel = diagramViewModel; _resourceDictionary = ResourceHelpers.GetResourceDictionary(DiagramStylesXaml, Assembly.GetExecutingAssembly()); _diagramControl = new DiagramControl(_resourceDictionary) { DataContext = _diagramViewModel }; Initialize(_resourceDictionary, _diagramControl); hostUiServices.HostDiagram(_diagramControl); }
private void LoadModel() { splitContainer1.Panel1.Controls.Clear(); propertyEditor.Workflow = Model.Workflow; view = new View(model, propertyEditor); diagram = new DiagramControl(view); diagram.Name = "DiagramControl"; diagram.BackColor = SystemColors.Window; diagram.Dock = DockStyle.Fill; splitContainer1.Panel1.Controls.Add(diagram); model.Router = new ConnectionRouter(model); model.RouteConnections(model.Router); Text = $"{Model.Workflow.Name} {Model.Workflow.Version}"; }
private void LoadModel() { diagramPanel.Controls.Clear(); propertyEditor.Workflow = Model.Workflow; view = new View(model, propertyEditor); diagram = new DiagramControl(view) { Name = "DiagramControl", Dock = DockStyle.Fill }; diagramPanel.Controls.Add(diagram); model.RouteConnections(); EnableEditing(enable: true); // Text = $"{Model.Workflow.Name} {Model.Workflow.Version}"; }
public NetronController(DiagramControl netronDiagram) : base() { _presentation = netronDiagram; _mathBridges = new Dictionary <Guid, Bridge>(); _netronBridges = new Dictionary <Document, Bridge>(); _presentation.OnEntityAdded += NetronEntityAddedHandler; _presentation.OnEntityRemoved += NetronEntityRemovedHandler; _signalFlies = new Dictionary <MathIdentifier, IFlyweightShape <SignalShape> >(); _busFlies = new Dictionary <MathIdentifier, IFlyweightShape <BusShape> >(); _portFlies = new Dictionary <MathIdentifier, IFlyweightShape <PortShape> >(); _defaultSignalFly = new DefaultSignalShape(); _defaultBusFly = new DefaultBusShape(); _defaultPortFly = new DefaultPortShape(); _portFlies.Add(new MathIdentifier("Transition", "PetriNet"), new PetriNetPortShape()); Service <MathNet.Symbolics.Library.IPackageLoader> .Instance.LoadPackage("PetriNet"); }
static void AddAxes(DiagramControl diagram, int daysCount, decimal maximum, out double lineWidth, out double x0, out double y0, out double x1, out double y1) { var day = Math.Floor(diagram.PageSize.Width * 0.8 / daysCount); var storyPoint = Math.Floor(diagram.PageSize.Height * 0.8 / (double)maximum); var areaX = day * daysCount; var areaY = storyPoint * (double)maximum; x0 = (diagram.PageSize.Width - areaX) / 2.0 - 10.0; y0 = diagram.PageSize.Height - (diagram.PageSize.Height - areaY) / 2.0 + 10.0; lineWidth = 10.0; var axisX = new DiagramShape() { Shape = ArrowShapes.NotchedArrow, Position = new Point(x0, y0), Width = areaX + 60.0, Height = 2 * lineWidth }; var axisY = new DiagramShape() { Shape = ArrowShapes.NotchedArrow, Position = new Point(x0 - areaY / 2 - 30.0, y0 - areaY / 2 - 30.0), Width = areaY + 60.0, Angle = 90.0, Height = 2 * lineWidth }; diagram.Items.Add(axisX); diagram.Items.Add(axisY); x1 = day; y1 = storyPoint; }
/// <summary> /// Default ctor /// </summary> /// <param name="s"></param> public TextLabel(DiagramControl s) : base(s) { this.backGroundColor = Color.Transparent; }
public static void Init(DiagramControl parent) { diagramControl = parent; parent.Controls.Add(Editor); Editor.Visible = false; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { Rylogic.Gui.WinForms.DiagramControl.DiagramOptions diagramOptions1 = new Rylogic.Gui.WinForms.DiagramControl.DiagramOptions(); Rylogic.Gui.WinForms.DiagramControl.DiagramOptions.NodeOptions nodeOptions1 = new Rylogic.Gui.WinForms.DiagramControl.DiagramOptions.NodeOptions(); Rylogic.Gui.WinForms.DiagramControl.DiagramOptions.ScatterOptions scatterOptions1 = new Rylogic.Gui.WinForms.DiagramControl.DiagramOptions.ScatterOptions(); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.m_status_mouse_pos = new System.Windows.Forms.ToolStripStatusLabel(); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.m_menu_tools_save = new System.Windows.Forms.ToolStripMenuItem(); this.m_menu_tools_load = new System.Windows.Forms.ToolStripMenuItem(); this.m_menu_tools_clear = new System.Windows.Forms.ToolStripMenuItem(); this.m_menu_tools_loadmmapdiag = new System.Windows.Forms.ToolStripMenuItem(); this.m_menu_tools_load_options = new System.Windows.Forms.ToolStripMenuItem(); this.m_menu_tools_allowediting = new System.Windows.Forms.ToolStripMenuItem(); this.m_toolstripcont = new ToolStripContainer(); this.m_diag = new Rylogic.Gui.WinForms.DiagramControl(); this.statusStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout(); this.m_toolstripcont.BottomToolStripPanel.SuspendLayout(); this.m_toolstripcont.ContentPanel.SuspendLayout(); this.m_toolstripcont.TopToolStripPanel.SuspendLayout(); this.m_toolstripcont.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.m_diag)).BeginInit(); this.SuspendLayout(); // // statusStrip1 // this.statusStrip1.Dock = System.Windows.Forms.DockStyle.None; this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.m_status_mouse_pos }); this.statusStrip1.Location = new System.Drawing.Point(0, 0); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new System.Drawing.Size(552, 22); this.statusStrip1.TabIndex = 1; this.statusStrip1.Text = "statusStrip1"; // // m_status_mouse_pos // this.m_status_mouse_pos.Name = "m_status_mouse_pos"; this.m_status_mouse_pos.Size = new System.Drawing.Size(118, 17); this.m_status_mouse_pos.Text = "toolStripStatusLabel1"; // // menuStrip1 // this.menuStrip1.Dock = System.Windows.Forms.DockStyle.None; this.menuStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Visible; this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolsToolStripMenuItem }); this.menuStrip1.Location = new System.Drawing.Point(3, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new System.Drawing.Size(152, 24); this.menuStrip1.Stretch = false; this.menuStrip1.TabIndex = 2; this.menuStrip1.Text = "menuStrip1"; // // toolsToolStripMenuItem // this.toolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.m_menu_tools_save, this.m_menu_tools_load, this.m_menu_tools_clear, this.m_menu_tools_loadmmapdiag, this.m_menu_tools_load_options, this.m_menu_tools_allowediting }); this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem"; this.toolsToolStripMenuItem.Size = new System.Drawing.Size(48, 20); this.toolsToolStripMenuItem.Text = "&Tools"; // // m_menu_tools_save // this.m_menu_tools_save.Name = "m_menu_tools_save"; this.m_menu_tools_save.Size = new System.Drawing.Size(166, 22); this.m_menu_tools_save.Text = "Save"; // // m_menu_tools_load // this.m_menu_tools_load.Name = "m_menu_tools_load"; this.m_menu_tools_load.Size = new System.Drawing.Size(166, 22); this.m_menu_tools_load.Text = "Load"; // // m_menu_tools_clear // this.m_menu_tools_clear.Name = "m_menu_tools_clear"; this.m_menu_tools_clear.Size = new System.Drawing.Size(166, 22); this.m_menu_tools_clear.Text = "Clear"; // // m_menu_tools_loadmmapdiag // this.m_menu_tools_loadmmapdiag.Name = "m_menu_tools_loadmmapdiag"; this.m_menu_tools_loadmmapdiag.Size = new System.Drawing.Size(166, 22); this.m_menu_tools_loadmmapdiag.Text = "Load mmap_diag"; // // m_menu_tools_load_options // this.m_menu_tools_load_options.Name = "m_menu_tools_load_options"; this.m_menu_tools_load_options.Size = new System.Drawing.Size(166, 22); this.m_menu_tools_load_options.Text = "Load Options"; // // m_menu_tools_allowediting // this.m_menu_tools_allowediting.Name = "m_menu_tools_allowediting"; this.m_menu_tools_allowediting.Size = new System.Drawing.Size(166, 22); this.m_menu_tools_allowediting.Text = "AllowEditing"; // // m_toolstripcont // // // m_toolstripcont.BottomToolStripPanel // this.m_toolstripcont.BottomToolStripPanel.Controls.Add(this.statusStrip1); // // m_toolstripcont.ContentPanel // this.m_toolstripcont.ContentPanel.Controls.Add(this.m_diag); this.m_toolstripcont.ContentPanel.Size = new System.Drawing.Size(527, 520); this.m_toolstripcont.Dock = System.Windows.Forms.DockStyle.Fill; this.m_toolstripcont.Location = new System.Drawing.Point(0, 0); this.m_toolstripcont.Margin = new System.Windows.Forms.Padding(0); this.m_toolstripcont.Name = "m_toolstripcont"; this.m_toolstripcont.Size = new System.Drawing.Size(552, 566); this.m_toolstripcont.TabIndex = 4; this.m_toolstripcont.Text = "toolStripContainer1"; // // m_toolstripcont.TopToolStripPanel // this.m_toolstripcont.TopToolStripPanel.Controls.Add(this.menuStrip1); // // m_diag // this.m_diag.Dock = System.Windows.Forms.DockStyle.Fill; this.m_diag.Location = new System.Drawing.Point(0, 0); this.m_diag.Name = "m_diag"; diagramOptions1.BkColour = System.Drawing.SystemColors.ControlDark; nodeOptions1.AnchorSharingBias = 70F; nodeOptions1.AnchorSpacing = 25F; nodeOptions1.AutoRelink = false; nodeOptions1.Margin = 30F; diagramOptions1.Node = nodeOptions1; scatterOptions1.ConnectorScale = 1F; scatterOptions1.CoulombConstant = 1000F; scatterOptions1.Equilibrium = 0.01F; scatterOptions1.MaxIterations = 20; scatterOptions1.SpringConstant = 0.01F; diagramOptions1.Scatter = scatterOptions1; this.m_diag.Options = diagramOptions1; this.m_diag.Size = new System.Drawing.Size(527, 520); this.m_diag.TabIndex = 0; // // DiagramControlUI // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(552, 566); this.Controls.Add(this.m_toolstripcont); this.MainMenuStrip = this.menuStrip1; this.Name = "DiagramControlUI"; this.Text = "DiagramControl"; this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); this.m_toolstripcont.BottomToolStripPanel.ResumeLayout(false); this.m_toolstripcont.BottomToolStripPanel.PerformLayout(); this.m_toolstripcont.ContentPanel.ResumeLayout(false); this.m_toolstripcont.TopToolStripPanel.ResumeLayout(false); this.m_toolstripcont.TopToolStripPanel.PerformLayout(); this.m_toolstripcont.ResumeLayout(false); this.m_toolstripcont.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.m_diag)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Default ctor /// </summary> /// <param name="s"></param> public OvalShape(DiagramControl s) : base(s) { rectangle.Width = 100; rectangle.Height = 33; }
private DesignerItem CreateRootItem(string id, string text, object itemData, DiagramControl diagramControl = null) { return new DesignerItem(id, text, itemData, diagramControl); }
/// <summary> /// Default ctor /// </summary> /// <param name="s"></param> public Circle(DiagramControl s) : base(s) { rectangle.Width = 50; rectangle.Height = 50; }
public DiagramControlViewInfoEx(DiagramControl owner) : base(owner) { }
public DiagramControllerEx(DiagramControl diagram) : base(diagram) { }