IUIService.cs 893 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // System.Windows.Forms.Design.IUIService.cs
  3. //
  4. // Author:
  5. // Andreas Nahr ([email protected])
  6. //
  7. using System.Runtime.InteropServices;
  8. using System.Collections;
  9. namespace System.Windows.Forms.Design
  10. {
  11. [Guid ("06a9c74b-5e32-4561-be73-381b37869f4f")]
  12. public interface IUIService
  13. {
  14. IDictionary Styles {get;}
  15. bool CanShowComponentEditor (object component);
  16. IWin32Window GetDialogOwnerWindow ();
  17. void SetUIDirty ();
  18. bool ShowComponentEditor (object component, IWin32Window parent);
  19. void ShowError (Exception ex);
  20. void ShowError (string message);
  21. void ShowError (Exception ex, string message);
  22. DialogResult ShowDialog (Form form);
  23. void ShowMessage (string message);
  24. void ShowMessage (string message, string caption);
  25. DialogResult ShowMessage (string message, string caption, MessageBoxButtons buttons);
  26. bool ShowToolWindow (Guid toolWindow);
  27. }
  28. }