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 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 TxtSource_TextChanged(object sender, TextChangedEventArgs e) { if (Shader != null) { Shader.Source = txtSource.Text.Trim(); UpdateSourceHighlighting(sender, e); if (chkAutoCompile.Checked) { timerAutoCompile.Stop(); timerAutoCompile.Reset(); timerAutoCompile.Start(); } } }
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 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(); }