private void OnItemClicked(object sender, MenuItemEventArgs e) { switch (e.ItemKey) { case MenuKeys.RegisterImage: var model = new ImageRegistrationModel(); _context.Container.Run <ImageRegistrationPresenter, ImageRegistrationModel>(model); break; } }
/// <summary> /// Runs the tool. /// </summary> public override bool Run() { var model = new ImageRegistrationModel(); return(_context.Container.Run <ImageRegistrationPresenter, ImageRegistrationModel>(model)); }