public bool OnShowMockupDialog(object parameter) { CheckDisposed(); Command command = (Command)parameter; string path = command.GetParameter("path", ""); path = m_mediator.GetRealPath(path); if (!System.IO.File.Exists(path)) { throw new RuntimeConfigurationException("Could not find this file: " + path); } using (ImageDialog dialog = new ImageDialog(path, command.GetParameter("caption", "Mockup"))) { dialog.ShowDialog(); } return(true); }
public bool OnShowMockupDialog(object parameter) { CheckDisposed(); Command command = (Command) parameter; string path = command.GetParameter("path",""); path = m_mediator.GetRealPath(path); if(!System.IO.File.Exists(path)) throw new RuntimeConfigurationException("Could not find this file: "+path); using (ImageDialog dialog = new ImageDialog(path, command. GetParameter("caption", "Mockup"))) { dialog.ShowDialog(); } return true; }