예제 #1
0
        private void cbPaperInfo_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            PaperInformation info = e.AddedItems[0] as PaperInformation;

            _currentPaperInfo = info;

            drawableCanvas_CreateResources(drawableCanvas, null);
        }
예제 #2
0
        public void InitRenderer()
        {
            PaperInformation paper1 = new PaperInformation("Idea Pad", 609, 595.275f, 771.023f, 36.8503f, 107.716f);
            PaperInformation paper2 = new PaperInformation("RingNote", 603, 425.196f, 595.275f, 36.8503f, 36.8503f);
            PaperInformation paper3 = new PaperInformation("Idea Pad Mini", 620, 360f, 566.929f, 36.8503f, 36.8503f);
            PaperInformation paper4 = new PaperInformation("A4", 0, 595f, 842f, 0f, 0f);
            PaperInformation paper5 = new PaperInformation("College Note", 617, 612.283f, 793.7f, 36.8503f, 36.8503f);
            PaperInformation paper6 = new PaperInformation("Plain Note", 604, 498.897f, 708.661f, 36.8503f, 36.8503f);

            cbPaperInfo.Items.Add(paper1);
            cbPaperInfo.Items.Add(paper2);
            cbPaperInfo.Items.Add(paper3);
            cbPaperInfo.Items.Add(paper4);
            cbPaperInfo.Items.Add(paper5);
            cbPaperInfo.Items.Add(paper6);

            _currentPaperInfo = paper1;

            cbPaperInfo.SelectedIndex = 0;

            initStrokesStyle();
        }