private void FrmProject_FormClosing(object sender, FormClosingEventArgs e) { DockPanel = null; timerUpdate.Stop(); timerUpdate.Dispose(); timerUpdate = null; }
private void frmRenderConfigure_Load(object sender, EventArgs e) { InitDocking(); InitConsole(); DataGridViewColumn column = new clsUniformDataColumn(); column.Name = "columnVariableValue"; column.HeaderText = "Variable Value"; datagridUniformsValues.Columns.Add(column); column = new clsEventScriptColumn(); column.Name = "columnEvent"; column.HeaderText = "Event Scripts"; datagridEvents.Columns.Add(column); UpdateLists(); UpdateTables(); timerUpdateLists = new clsHPTimer(this); timerUpdateLists.Interval = 1000.0; timerUpdateLists.SleepInterval = 1000; timerUpdateLists.IntervalEnd += new HPIntervalEventHandler(timerUpdateLists_EndInterval); timerUpdateLists.Start(); timerUpdateUniformDataGrid = new clsHPTimer(this); timerUpdateUniformDataGrid.Interval = 50; timerUpdateUniformDataGrid.SleepInterval = 50; timerUpdateUniformDataGrid.IntervalEnd += new HPIntervalEventHandler(timerUpdateUniformDataGrid_EndInterval); timerUpdateUniformDataGrid.Start(); ProjectDef.AllForms.Add(this); }
private void FrmShader_FormClosing(object sender, FormClosingEventArgs e) { timerAutoCompile.Stop(); timerAutoCompile.Dispose(); timerAutoCompile = null; panelMain.ProjectObject = null; ProjectDef.AllForms.Remove(this); }
private void FrmProjectObject_HandleDestroyed(object sender, EventArgs e) { if (timerUpdate != null) { timerUpdate.Stop(); timerUpdate.Dispose(); timerUpdate = null; } }
private void FrmProgram_FormClosing(object sender, FormClosingEventArgs e) { DockPanel = null; timerAutoLink.Stop(); timerAutoLink.Dispose(); timerAutoLink = null; panelMain.ProjectObject = null; ProjectDef.AllForms.Remove(this); }
private void FrmProgram_Load(object sender, EventArgs e) { UpdateLists(); LinkShaders(); panelMain.Timer_IntervalUpdate += timerUpdateLists_EndInterval; timerAutoLink = new clsHPTimer(this); timerAutoLink.Interval = 4000.0; timerAutoLink.SleepInterval = 4000; timerAutoLink.IntervalEnd += timerAutoLink_EndInterval; timerAutoLink.Start(); ProjectDef.AllForms.Add(this); }
private void FrmProjectObject_HandleCreated(object sender, EventArgs e) { panelStatus.Controls.SetChildIndex(txtName, 1); if (ProjectObject != null) { txtName.Text = ProjectObject.Name; } UpdateTitle(); timerUpdate = new clsHPTimer(this); timerUpdate.Interval = 1000.0; timerUpdate.SleepInterval = 1000; timerUpdate.IntervalEnd += timerUpdate_Tick; timerUpdate.Start(); }
private void frmRenderConfigure_FormClosing(object sender, FormClosingEventArgs e) { UnloadDocking(); UnloadConsole(); DockPanel = null; timerUpdateUniformDataGrid.Stop(); timerUpdateUniformDataGrid.Dispose(); timerUpdateUniformDataGrid = null; timerUpdateLists.Stop(); timerUpdateLists.Dispose(); timerUpdateLists = null; AllForms.Remove(this); ProjectDef.AllForms.Remove(this); }
private void FrmShader_Load(object sender, EventArgs e) { dialogOpenFile.InitialDirectory = System.IO.Path.GetFullPath(strPathBase); dialogOpenFile.InitialDirectory = System.IO.Path.GetFullPath(strPathBase); lstShaderType.Items.AddRange(Array.FindAll(Enum.GetNames(typeof(ShaderType)), itm => !itm.EndsWith("Arb"))); lstShaderType.Text = Regex.Replace(Shader.Type.ToString(), @"Arb\z", ""); timerAutoCompile = new clsHPTimer(this); timerAutoCompile.Interval = 1000.0; timerAutoCompile.SleepInterval = 1000; timerAutoCompile.IntervalEnd += timerAutoCompile_EndInterval; timerAutoCompile.Start(); txtSource.Text = Shader.Source; Compile(); ProjectDef.AllForms.Add(this); }
private void FrmProjects_Load(object sender, EventArgs e) { treeMain.Nodes["nodeProject"].Expand(); ToolStripMenuItem itm = menuNew_Shader; foreach (string str in Enum.GetNames(typeof(ShaderType))) { if (!str.EndsWith("Arb")) { ToolStripMenuItem menuitm = new ToolStripMenuItem(str); menuitm.Click += new EventHandler((itmS, evnt) => { AddNewShader((ShaderType)Enum.Parse(typeof(ShaderType), str)); }); itm.DropDownItems.Add(menuitm); } } timerUpdate = new clsHPTimer(this); timerUpdate.Interval = 1000.0; timerUpdate.SleepInterval = 1000; timerUpdate.IntervalEnd += timerUpdate_Tick; timerUpdate.Start(); }