Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 3
0
 /// <summary>
 /// To send a message
 /// </summary>
 public void SendMessage()
 {
     ApplicationControlHelper.ExecuteApplication(AppControlType.Send, null, Message);
 }