private void Tool_Click(object sender, EventArgs e) { ToolStripButton button = (ToolStripButton)sender; if (button.Checked == false) { button.Checked = true; } DeselectOtherToolButtons(button); foreach(TileToolType type in Enum.GetValues(typeof(TileToolType))) { if (type.ToString() == button.Text) { tooltype = type; } } foreach (SetToolTypeDelegate deleg in settooltypedelegate) { if (deleg.Target != null) { deleg(tooltype); } } }
public void TileToolTypeChanged(TileToolType type) { currentTileType = type; CurrentTileToolTypeChanged(currentTileType); }
public void SetTool(TileToolType type) { levelControl1.SetToolType(type); }
void toolManager_CurrentTileToolTypeChanged(TileToolType newType) { SetTool(newType); }
public void SetToolType(TileToolType type) { tooltype = type; }