Example #1
0
        public MainWindow()
        {
            NormalMenu.Items.Add(Paste);
            EditMenu.Items.Add(Copy);
            EditMenu.Items.Add(Cut);
            EditMenu.Items.Add(Remove);
            EditMenu.Items.Add(OCR);

            Copy.Click   += Copy_Click;
            Cut.Click    += Cut_Click;
            Paste.Click  += Paste_Click;
            Remove.Click += Remove_Click;
            OCR.Click    += OCR_Click;

            InkTestWpf.Properties.Settings.Default.Reload();
            lineMargine = InkTestWpf.Properties.Settings.Default.Border;
            InitializeComponent();
            InkRecognizerCollection recognizerList = ia.GetInkRecognizersByPriority();

            foreach (InkRecognizer r in recognizerList)
            {
                EngineList.Items.Add(r);
            }
            AddAddTabButton();
            TabAddButton_Click(null, null);//1ページ目
            lastSelectedTab           = 1;
            TabControl1.SelectedIndex = 1;
        }