Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public PrintController PrintController {
- get {
- IntSecurity.SafePrinting.Demand();
- if (printController == null) {
- printController = new StandardPrintController();
- new ReflectionPermission(PermissionState.Unrestricted).Assert();
- try {
- try {
- // SECREVIEW 332064: this is here because System.Drawing doesnt want a dependency on
- // System.Windows.Forms. Since this creates a public type in another assembly, this
- // appears to be OK.
- Type type = Type.GetType("System.Windows.Forms.PrintControllerWithStatusDialog, " + AssemblyRef.SystemWindowsForms);
- printController = (PrintController) Activator.CreateInstance(type,
- BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.CreateInstance,
- null, new object[] { printController}, null);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement