Module: IronNails::View::Extensions::CommandSupport

Includes:
ThreadingSupport
Included in:
EventSupport, TimerSupport
Defined in:
lib/ironnails/view/xaml_proxy.rb

Instance Method Summary collapse

Methods included from ThreadingSupport

#on_new_thread, #on_ui_thread

Instance Method Details

#execute_command(command) ⇒ Object



35
36
37
38
39
40
41
# File 'lib/ironnails/view/xaml_proxy.rb', line 35

def execute_command(command)
  unless command.asynchronous?
    command.execute
  else
    on_new_thread(lambda { command.execute }) { command.refresh_view }
  end
end