示例#1
0
        /// <summary>
        /// To execute the selected application
        /// </summary>
        public void ExecuteSelectedApplication()
        {
            if (SelectedItem.Id == null || SelectedAppControlType == AppControlType.Unknown)
            {
                return;
            }

            ApplicationControlHelper.ExecuteApplication(SelectedAppControlType, SelectedItem.Id);
        }
示例#2
0
        /// <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);
        }
示例#3
0
 /// <summary>
 /// To send a message
 /// </summary>
 public void SendMessage()
 {
     ApplicationControlHelper.ExecuteApplication(AppControlType.Send, null, Message);
 }