/// <summary> /// To execute the selected application /// </summary> public void ExecuteSelectedApplication() { if (SelectedItem.Id == null || SelectedAppControlType == AppControlType.Unknown) { return; } ApplicationControlHelper.ExecuteApplication(SelectedAppControlType, SelectedItem.Id); }
/// <summary> /// To execute the selected application /// </summary> public void ExecuteSelectedApplication() { if (SelectedItem == null || SelectedItem?.Id == null || SelectedAppControlType == AppControlType.Unknown) { return; } Console.WriteLine($"Execute id:{SelectedItem.Id}, type:{SelectedAppControlType}"); ApplicationControlHelper.ExecuteApplication(SelectedAppControlType, SelectedItem.Id); }
/// <summary> /// To send a message /// </summary> public void SendMessage() { ApplicationControlHelper.ExecuteApplication(AppControlType.Send, null, Message); }