public MainCropForm() { Configuration.Current.ActiveCropWindow = this; imageCapture = new ImageCapture(); ApplyConfiguration(); points = new Point[] { new Point(TransparentMargin - TabHeight, TransparentMargin - TabHeight), new Point(TransparentMargin + TabTopWidth, TransparentMargin - TabHeight), new Point(TransparentMargin + TabBottomWidth, TransparentMargin), new Point(TransparentMargin, TransparentMargin), new Point(TransparentMargin, TransparentMargin + TabBottomWidth), new Point(TransparentMargin - TabHeight, TransparentMargin + TabTopWidth) }; colorTables.Add(new CropFormBlueColorTable()); colorTables.Add(new CropFormDarkColorTable()); colorTables.Add(new CropFormLightColorTable()); currentColorTable = (CropFormColorTable) colorTables[0]; SetColors(); SetUpForm(); SetUpMenu(); if (LimitMaxWorkingSet()) Process.GetCurrentProcess().MaxWorkingSet = (IntPtr) 5000000; SaveConfiguration(); }
public MainCropForm() { Configuration.Current.ActiveCropWindow = this; imageCapture = new ImageCapture(); ApplyConfiguration(); colorTables.Add(new CropFormBlueColorTable()); colorTables.Add(new CropFormDarkColorTable()); colorTables.Add(new CropFormLightColorTable()); currentColorTable = (CropFormColorTable) colorTables[0]; SetColors(); SetUpForm(); SetUpMenu(); if (LimitMaxWorkingSet()) Process.GetCurrentProcess().MaxWorkingSet = (IntPtr) 5000000; SaveConfiguration(); }