public void StartOperation()
        {
            ApplicationProcessId = GetCurrentProcessId();

            LongOpThreadDispatcher.Invoke(new Action(ShowWindow));
            EndLongOperation();
        }
 private void EndOperation()
 {
     LongOpThreadDispatcher.BeginInvoke(new Action(EndOperationImpl));
 }