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; }
public void SetDocument(KDocument document) { doc = document; inkControl1.LoadPage(doc.Pages[0]); }
public void ChangeDocument(KDocument doc) { this.document = doc; }
private void newToolStripMenuItem_Click(object sender, EventArgs e) { doc = new KDocument(); }