Advertisement
traceonelast

code

Apr 24th, 2018
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.65 KB | None | 0 0
  1.     private void GetDoc(string DocName, string Doc)
  2.         {
  3.             System.IO.File.WriteAllText(DocName, Doc);
  4.             MessageBox.Show("Файл записан, имя файла " + DocName);
  5.         }
  6.         [CallbackBehavior(UseSynchronizationContext = false)]
  7.         public class AgencyCallback : ServiceReference1.IService1Callback
  8.         {
  9.             public delegate void FormDelegate(string DocName, string Doc);
  10.             public event FormDelegate FormEvent;
  11.             public void FormatDocCallback(string DocName, string Doc)
  12.             {
  13.                 FormEvent?.Invoke(DocName, Doc);
  14.             }
  15.            
  16.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement