public void Configure(FragmentMetaWindow w)
 {
     window = w;
     window.Menu.AddMenuItem("Fragments", "Load From Xml", LoadFromXml);
     window.Menu.AddMenuItem("Fragments", "Save To Xml", SaveToXml);
     window.Menu.AddMenuItem("Fragments",
                             "Review Flagged Fragments",
                              ReviewFlaggedFragments);
     window.Menu.AddMenuItem("Fragments",
                             "Filter By Selected DisplayKey Value",
                             FilterBySelected);
     window.Menu.AddMenuItem("Fragments",
                             "Extract By Keys",
                             ExtractByKeys);
     window.Menu.AddMenuItem("Fragments",
                             "Trim Prefix To New Key",
                             TrimPrefixToNewKey);
     window.Menu.AddMenuItem("Workbench",
                             "Send To Workbench First",
                             SendToWorkbenchFirst);
     window.Menu.AddMenuItem("Workbench",
                             "Send To Workbench Last",
                             SendToWorkbench);
     window.Menu.AddMenuItem("Meta",
                             "Remove Selected Meta",
                             RemoveSelectedMeta);
 }
예제 #2
0
 private void ShowFragmentMetaWindow()
 {
     FragmentMetaWindow fmw =
         new FragmentMetaWindow();
     DemoController dc = new DemoController();
     dc.Configure(fmw);
     fmw.Show();
 }
예제 #3
0
 public void Configure(FragmentMetaWindow fmw)
 {
     this.fmw = fmw;
     this.fmw.Menu.AddMenuItem("Demo",
                               "Load Demo Frags",
                               MenuItemDemo_Click);
     this.fmw.Menu.AddMenuItem("Demo",
                               "Demo Progress Bar",
                               DemoProgressBar);
 }
 public void Configure(FragmentMetaWindow w)
 {
     ConfigureClosingEvent(w);
 }
 private void Send(ListView lv)
 {
     if (mainGrid != null)
     {
         if (listViews.Count > 0)
         {
             FragmentMetaWindow fmw = new FragmentMetaWindow();
             fmw.Receive(GetFragments(lv).DeepCopy());
             fmw.Show();
         }
     }
 }