Exemple #1
0
        private void AttachCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            try
            {
                ProcessListWindow window = new ProcessListWindow();

                if (window.ShowDialog() == true)
                {
                    ShowLoading();
                    _SpyHelper.Attach(window.Selected);
                    InitializeAssets();
                }
            }
            catch (Exception ex)
            {
                ShowNotification(NotificationType.Error, ex);
            }
            finally
            {
                HideLoading();
            }
        }
Exemple #2
0
        private void AttachCommand_Executed( object sender, ExecutedRoutedEventArgs e )
        {
            try
            {
                ProcessListWindow window = new ProcessListWindow();

                if ( window.ShowDialog() == true )
                {
                    ShowLoading();
                    _SpyHelper.Attach( window.Selected );
                    InitializeAssets();
                }
            }
            catch ( Exception ex )
            {
                ShowNotification( NotificationType.Error, ex );
            }
            finally
            {
                HideLoading();
            }
        }