Example #1
0
        private void newPageMenuItem_Click(object sender, EventArgs e)
        {
            var newPageDialog = new NewPageForm();
            var result        = newPageDialog.ShowDialog(this);

            if (result == DialogResult.OK)
            {
                var name = Guid.NewGuid() + ".wiki";
                var page = new Page(Repository[name]);
                page["Title"] = newPageDialog.PageTitle;
                LoadDocument(page);
            }
        }
Example #2
0
 private void newPageMenuItem_Click(object sender, EventArgs e)
 {
     var newPageDialog = new NewPageForm();
     var result = newPageDialog.ShowDialog(this);
     if (result == DialogResult.OK)
     {
         var name = Guid.NewGuid() + ".wiki";
         var page = new Page( Repository[name] );
         page["Title"] = newPageDialog.PageTitle;
         LoadDocument(page);
     }
 }