Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
        public void MapAreaPanelHQ_RoomControlClicked(object sender, EventArgs e)
        {
            MapAreaRoomControl clickedPhone = (MapAreaRoomControl)sender;

            if (clickedPhone == null)
            {
                return;
            }
            FillDetails(clickedPhone);
            RoomControlClicked?.Invoke(sender, e);
        }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 void roomControl_Clicked(object sender, EventArgs e)
 {
     RoomControlClicked?.Invoke(sender, new EventArgs());
 }
Ejemplo n.º 5
0
 public void MapAreaPanelHQ_RoomControlClicked(object sender, EventArgs e)
 {
     RoomControlClicked?.Invoke(sender, e);
 }