Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UI/Components/EntryMenuItem.cs')
-rw-r--r--UI/Components/EntryMenuItem.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/UI/Components/EntryMenuItem.cs b/UI/Components/EntryMenuItem.cs
index d9f75515..fd027009 100644
--- a/UI/Components/EntryMenuItem.cs
+++ b/UI/Components/EntryMenuItem.cs
@@ -8,9 +8,13 @@ namespace com.clusterrr.hakchi_gui.UI.Components
public class EntryMenuItem : System.Windows.Forms.ToolStripMenuItem
{
Manager.BookManager.Entry _TheEntry;
- public EntryMenuItem(Manager.BookManager.Entry entr):base(entr.Label)
+ Manager.BookManager.Book _TheBook;
+ Manager.BookManager.Page _ThePage;
+ public EntryMenuItem(Manager.BookManager.Entry entr,Manager.BookManager.Page page,Manager.BookManager.Book book):base(entr.Label)
{
_TheEntry = entr;
+ _TheBook = book;
+ _ThePage = page;
ToolStripMenuItem entryEdititm = new ToolStripMenuItem("Edit");
entryEdititm.Click += EntryEdititm_Click;
@@ -28,7 +32,10 @@ namespace com.clusterrr.hakchi_gui.UI.Components
private void EntryEdititm_Click(object sender, EventArgs e)
{
- throw new NotImplementedException();
+ UI.EntryCreator ec = new EntryCreator(_TheBook);
+ ec.EditEntry(_TheEntry);
+ ec.ShowDialog();
+
}
}
}