Example #1
0
        public KPage(KDocument document)
        {
            var formats = PageFormat.GetFormats();

            if (formats.ContainsKey(Configuration.DefaultFormat))
            {
                Format = formats[Configuration.DefaultFormat];
            }
            else
            {
                Format = PageFormat.A4;
            }
            lines         = new List <Line>();
            CreationTime  = DateTime.Now;
            this.document = document;
        }
Example #2
0
 public void SetDocument(KDocument document)
 {
     doc = document;
     inkControl1.LoadPage(doc.Pages[0]);
 }
Example #3
0
 public void ChangeDocument(KDocument doc)
 {
     this.document = doc;
 }
Example #4
0
 private void newToolStripMenuItem_Click(object sender, EventArgs e)
 {
     doc = new KDocument();
 }