private void GeneralLayout_Load(object sender, EventArgs e) { #if FileAutoLoad // for Testing only int x = 1; String FileOpened = "D:\\ink\\Multi\\SKETCH39.wpi"; int RelativThreshold = 9; int AbsoluteThreshold = 10; int SlidingThreshold = 0; OpenedFile = new PaperInkFile(FileOpened, RelativThreshold, AbsoluteThreshold, SlidingThreshold); IntPtr DasInkHandel = LayoutArea.Panel1.Handle; aInkPage = new PaperInkPage(OpenedFile, DasInkHandel, ref richRecognizedTextBox); InkPagExists = true; aInkPage.AddStokesFromFileAndDisplay(OpenedFile); #else InkPagExists = false; #endif }