private async void RestartAsync(object sender, EventArgs e)
        {
            var target = _systemManager.GetTargetNetId();

            if (!NotificationProvider.ShowQueryMessage("Target <" + target + ">", "Reboot"))
            {
                return;
            }

            try
            {
                await RemoteControl.RebootAsync(new Ads.AmsNetId(target), TimeSpan.FromSeconds(1), CancellationToken.None);

                NotificationProvider.DisplayInStatusBar("Reboot successfully on target <" + target + ">");
            }
            catch (Exception ex)
            {
                NotificationProvider.ShowErrorMessage(ex.Message, "Reboot failed on target <" + target + ">");
            }
        }
        private async void SetTickAsync(object sender, EventArgs e)
        {
            var target = _systemManager.GetTargetNetId();

            if (!NotificationProvider.ShowQueryMessage("Execute win8settick.bat on target <" + target + "> ?", "win8settick.bat"))
            {
                return;
            }

            try
            {
                var path = @"C:\TwinCAT\3.1\System\win8settick.bat";
                var dir  = @"C:\TwinCAT\3.1\System";

                await RemoteControl.StartProcessAsync(new Ads.AmsNetId(target), path, dir, string.Empty, CancellationToken.None);

                NotificationProvider.DisplayInStatusBar("win8settick.bat successfully executed on target <" + target + ">");
            }
            catch (Exception ex)
            {
                NotificationProvider.ShowErrorMessage(ex, "Execution of win8settick.bat on target <" + target + "> failed!");
            }
        }