public ProjectView() { InitializeComponent(); verkstanWindow = new Verkstan.Window(); verkstanWindow.ClearColor = Color.DarkCyan.ToArgb(); unsafe { verkstanWindow.Boot(previewPanel.Handle.ToPointer()); } fastRenderTimer.Enabled = true; slowRenderTimer.Enabled = true; project = new Project(); Page page = new Page(); project.OperatorPages.Add(page); operatorPageView1.Page = page; }
public BuilderForm() { InitializeComponent(); builderWindow = new Verkstan.Window(); builderWindow.RenderOptions.ClearColor = Color.DarkCyan.ToArgb(); tileTextureToolStripMenuItem1.Checked = builderWindow.RenderOptions.TextureTiling; filterTextureToolStripMenuItem1.Checked = builderWindow.RenderOptions.TextureFiltering; shadedMeshToolStripMenuItem1.Checked = builderWindow.RenderOptions.MeshShaded; unsafe { builderWindow.Boot(previewPanel.Handle.ToPointer()); } project = new Project(); page = new Page(); project.Pages.Add(page); operatorPageView1.Page = page; }
public void FromXmlElement(XmlElement root) { foreach (XmlNode node in root.ChildNodes) { if (node.Name == "version") Version = int.Parse(node.InnerText); else if (node.Name == "bpm") BPM = int.Parse(node.InnerText); else if (node.Name == "page") { Page page = new Page(); page.FromXmlElement((XmlElement)node); OperatorPages.Add(page); } } }
private void newMenuItem_Click(object sender, EventArgs e) { project = new Project(); Page page = new Page(); project.OperatorPages.Add(page); operatorPageView1.Page = page; transport1.Project = project; timelinesView1.Timeline = null; timelinesView1.Reset(); Text = "db verkstan 1 - untitled.dbv"; }
private void page_StateChanged(Page.EventArgs e) { foreach (Operator op in e.Operators) Invalidate(new Rectangle(op.Left, op.Top, op.Width + 1, op.Height + 1)); }
private void page_Resized(Page.EventArgs e) { foreach (Operator op in e.Operators) { Invalidate(op.LastDimension); Invalidate(op.Dimension); } UpdateSize(); }
private void page_Removed(Page.EventArgs e) { foreach (Operator op in e.Operators) { if (ViewedOperator == op) ViewedOperator = null; if (ViewedOperatorProperties == op) ViewedOperatorProperties = null; Invalidate(op.Dimension); } }
private void page_Added(Page.EventArgs e) { foreach (Operator op in e.Operators) Invalidate(op.Dimension); }