void ImbCommandReceived(object sender, csImb.Command c) { //switch (c.CommandName) //{ // case "ScreenOn": // if (!IsRunning) // { // this.ScreenOn(); // IsRunning = true; // } // break; // case "ScreenOff": // if (IsRunning) // { // this.ScreenOff(); // IsRunning = false; // } // break; //} }
void Imb_CommandReceived(object sender, csImb.Command c) { Execute.OnUIThread(() => { if (c.CommandName == FollowMapOnCommand) { var client = AppState.Imb.FindClient(c.SenderId); if (client != null) { AppState.TriggerNotification(client.Name + " is now following your map position", pathData: MenuHelpers.MapIcon); UpdateMapExtent(); client.IsFollowingMyMap = true; } } if (c.CommandName == FollowMapOffCommand) { var client = AppState.Imb.FindClient(c.SenderId); if (client != null) { AppState.TriggerNotification(client.Name + " stopped following your map position", pathData: MenuHelpers.MapIcon); client.IsFollowingMyMap = false; } } if (c.CommandName == ScreenOnCommand) { var client = AppState.Imb.FindClient(c.SenderId); if (client!=null) AppState.TriggerNotification(client.Name + " is now following your screen",pathData:MenuHelpers.ScreenIcon); } if (c.CommandName == ScreenOffCommand) { var client = AppState.Imb.FindClient(c.SenderId); if (client != null) AppState.TriggerNotification(client.Name + " stopped following your screen",pathData:MenuHelpers.ScreenIcon); } if (c.CommandName == "Exit") { AppState.CloseApplication(); } }); }
void Imb_CommandReceived(object sender, csImb.Command c) { /*if(c.CommandName.ToLower() == "skypecontacts") { // Got it! }*/ }