private void Build_ToolStripButton_Click(object sender, EventArgs e) { for (int i = 0; i < tabControlCode.TabCount; i++) { if (tabControlCode.TabPages[i].Focus()) { foreach (FastColoredTextBox item in tabControlCode.TabPages[i].Controls) { if (item is FastColoredTextBox) { this.proj.csfile[i].Text = item.Text; } } } } BuildEvent?.Invoke(this, new ProjectEventArgs() { project = this.proj }); }
public void OnBuildMethod(GameObject Tile) { BuildEvent?.Invoke(CopyobjectToBuild, Tile); CopyobjectToBuild.GetComponent <TowerLogic>().BeginLogic(); CopyobjectToBuild = null; }
/// <summary> /// Raises the <see cref="E:BuildErrorEvent" /> event. /// </summary> /// <param name="e">The <see cref="BuildEventArgs"/> instance containing the event data.</param> private static void OnBuildEvent(BuildEventArgs e) { BuildEvent?.Invoke(null, e); }
private void BuildMN_Click(object sender, EventArgs e) { BuildEvent.Invoke(sender, e); }
public void BuildTL_Click(object sender, EventArgs e) { BuildEvent.Invoke(sender, e); }