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

            return(_context.Container.Run <ImageRegistrationPresenter, ImageRegistrationModel>(model));
        }