コード例 #1
0
ファイル: GeneralLayout.cs プロジェクト: postite/inklonvert
        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
        }
コード例 #2
0
ファイル: GeneralLayout.cs プロジェクト: n8willis/inklonvert
 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
 }