private void MapAreaRoomControl_Click(object sender, EventArgs e) { if (AllowEdit) { return; //they're editing the room, don't change anyone's statuses. } //they want to change the room's status to 'HelpOnTheWay' if they're needing help. RoomControlClicked?.Invoke(this, e); }
public void MapAreaPanelHQ_RoomControlClicked(object sender, EventArgs e) { MapAreaRoomControl clickedPhone = (MapAreaRoomControl)sender; if (clickedPhone == null) { return; } FillDetails(clickedPhone); RoomControlClicked?.Invoke(sender, e); }
private void MapAreaRoomControl_Click(object sender,EventArgs e) { if(AllowEdit) { return; //they're editing the room, don't change anyone's statuses. } if(!IsFlashing && Status != "OnWay") { //If OnWay we're setting them to available, dont return. return; //why did they click me? I don't know, just return. } //they want to change the room's status to 'HelpOnTheWay' if they're needing help. RoomControlClicked?.Invoke(this, e); }
void roomControl_Clicked(object sender, EventArgs e) { RoomControlClicked?.Invoke(sender, new EventArgs()); }
public void MapAreaPanelHQ_RoomControlClicked(object sender, EventArgs e) { RoomControlClicked?.Invoke(sender, e); }