예제 #1
0
 private void InvokeStarted(object sender, object e)
 {
     // Should only have a single invocation of the started event
     CoreApplication.MainView.CoreWindow.Activated -= InvokeStarted;
     _started   = true;
     _suspended = false;
     ApplicationStarted?.Invoke(sender, EventArgs.Empty);
 }
예제 #2
0
 public void LaunchApplication(string appPath)
 {
     var myProcess = new Process { StartInfo = new ProcessStartInfo(appPath) };
     myProcess.Start();
     ApplicationStarted?.Invoke(this, EventArgs.Empty);
     myProcess.WaitForExit();
     ApplicationStopped?.Invoke(this, EventArgs.Empty);
 }
예제 #3
0
        public int FDoIdle(uint grfidlef)
        {
            if (!_startupComplete)
            {
                ApplicationStarted?.Invoke(this, EventArgs.Empty);
                _startupComplete = true;
            }

            Idle?.Invoke(this, EventArgs.Empty);
            return(VSConstants.S_OK);
        }
 public void InvokeStarted()
 {
     // Need to notify DeviceInformationHelper to refresh display cache here too because there is no guarantee that
     // it will automatically happen beforehand
     DeviceInformationHelper.RefreshDisplayCache();
     if (Enabled)
     {
         HasShownWindow = true;
         IsSuspended    = false;
         ApplicationStarted?.Invoke(null, null);
     }
 }
 private void OnApplicationStarted()
 {
     ApplicationStarted?.Invoke();
 }
예제 #6
0
 private void InvokeStarted()
 {
     ApplicationStarted?.Invoke(null, EventArgs.Empty);
 }
 /// <summary>
 /// Raises the <see cref="ApplicationStarted"/> event.
 /// </summary>
 /// <param name="e">The event arguments.</param>
 private void OnApplicationStarted(ApplicationStartedEventArgs e)
 {
     ApplicationStarted?.Invoke(this, e);
 }
 public void Handle(ApplicationStarted e)
 {
     UpdateView(true);
 }