示例#1
0
        /// <summary>
        /// The run.
        /// </summary>
        /// <param name="devices">
        /// The devices.
        /// </param>
        /// <returns>
        /// The <see cref="bool"/>.
        /// </returns>
        public bool Run(List <string> devices)
        {
            /*
             * Function not supported by DC
             * Method reports warning message and returns with false
             */

            Logging.Enter(this, MethodBase.GetCurrentMethod().Name);
            Reporting.Info("Function Unregister Device Type is not supported by Host Application: DeviceCare");
            return(false);
        }
        /// <summary>
        /// The run.
        /// </summary>
        /// <returns>
        /// The <see cref="bool"/>.
        /// </returns>
        public bool Run()
        {
            Logging.Enter(this, MethodBase.GetCurrentMethod().Name);

            if (Functions.ApplicationArea.MainView.Validation.HostApplication.WaitUntilHostApplicationOpened())
            {
                if (HostApplication.CloseHostApplication())
                {
                    if (Functions.ApplicationArea.MainView.Validation.HostApplication.WaitUntilHostApplicationClosed())
                    {
                        Reporting.Debug("Closing DeviceCare was successful.");
                        return(true);
                    }
                }
            }

            Reporting.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "Closing DeviceCare was not successful.");
            Reporting.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "DeviceCare process is still running.");
            return(false);
        }
示例#3
0
 /// <summary>
 /// The run.
 /// </summary>
 /// <param name="filePath">
 /// The file path.
 /// </param>
 /// <param name="fileName">
 /// The file name.
 /// </param>
 /// <param name="fileFormat">
 /// The file format.
 /// </param>
 /// <returns>
 /// The <see cref="bool"/>.
 /// </returns>
 public bool Run(string filePath, string fileName, string fileFormat)
 {
     Logging.Enter(this, MethodBase.GetCurrentMethod().Name);
     Reporting.Info("Function Save Device Data is not supported by Host Application: DeviceCare");
     return(false);
 }
示例#4
0
 /// <summary>
 /// The run.
 /// </summary>
 /// <param name="projectName">
 /// The project Name.
 /// </param>
 /// <returns>
 /// The <see cref="bool"/>.
 /// </returns>
 public bool Run(string projectName)
 {
     Logging.Enter(this, MethodBase.GetCurrentMethod().Name);
     Reporting.Info("Function Sabe Project is not supported by Host Application: DeviceCare");
     return(false);
 }
示例#5
0
 /// <summary>
 /// The run.
 /// </summary>
 /// <returns>
 /// The <see cref="bool"/>.
 /// </returns>
 public bool Run()
 {
     Logging.Enter(this, MethodBase.GetCurrentMethod().Name);
     Reporting.Info("Function Unregister Device Type is not implemented by Host Application: DeviceCare");
     return(false);
 }