private void OnModelChangeClick(object sender, EventArgs args) { Documento.getInstance().ModelloRiferimento = ModelPane.ShowModelDialog(Documento.getInstance().ModelloRiferimento) ?? Documento.getInstance().ModelloRiferimento; _mainContainer.RightPanel.Controls.Clear(); foreach (ToolStripItem item in _mainContainer.SaveItems) { item.Enabled = false; } }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Modello modello = ModelPane.ShowModelDialog(); if (null == modello) { Environment.Exit(1); } Documento.getInstance().ModelloRiferimento = modello; MainForm form = new MainForm(); MainContainerPresenter presenter = new MainContainerPresenter(form.MainContainer); Application.Run(form); }
public RectangleTool(MainForm workSpace) : base(workSpace) { this.modelSpace = workSpace.ModelWorkSpace; }
public CuboidTool(MainForm workSpace) : base(workSpace) { this.modelSpace = workSpace.ModelWorkSpace; }
public DefaultTool(MainForm workSpace) : base(workSpace) { this.modelSpace = workSpace.ModelWorkSpace; }
public SphereTool(MainForm workSpace) : base(workSpace) { this.modelSpace = workSpace.ModelWorkSpace; }
public CylinderTool(MainForm workSpace) : base(workSpace) { this.modelSpace = workSpace.ModelWorkSpace; }