Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void GetDoc(string DocName, string Doc)
- {
- System.IO.File.WriteAllText(DocName, Doc);
- MessageBox.Show("Файл записан, имя файла " + DocName);
- }
- [CallbackBehavior(UseSynchronizationContext = false)]
- public class AgencyCallback : ServiceReference1.IService1Callback
- {
- public delegate void FormDelegate(string DocName, string Doc);
- public event FormDelegate FormEvent;
- public void FormatDocCallback(string DocName, string Doc)
- {
- FormEvent?.Invoke(DocName, Doc);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement