private static void InspectMenhirActionClick(object sender, EventArgs e) { var l = LocationsHelper.GetLCControl(((LocationSelectionButton)sender).LocationNumber); if (MessageBox.Show(MenhirHelper.GetMenhirActivationDescription(l), "", MessageBoxButtons.YesNo) == DialogResult.Yes) { //_MainForm.Instance.LocationCardsPanel.ActivateMenhir(l,l.men } }
public static void DisableMoveMode() { IsTravelModeEnabled = !IsTravelModeEnabled; mainActionButtons.ForEach(_ => _.Enable()); var b = mainActionButtons.First(_ => _.ActionType == ActionType.Travel); b.Text = "Travel"; foreach (var item in _MainForm.Instance.LocationCardsPanel.LocationCards) { var l = LocationsHelper.GetLCControl(item.LocationNumber); if (l.LocationActionBtn.Visible) { l.LocationActionBtn.Hide(); l.LocationActionBtn.Click -= MoveClick; } } _MainForm.Instance.Refresh(); }
public void AddLocationCardToMap(int locationNumber, int alsoActivateMenhirWithValue = -1) { AddLocationCardToMap(LocationsHelper.GetLCControl(locationNumber), alsoActivateMenhirWithValue); }