public RawDataView OpenRawDataView( object obj, Uri url, string caption ) { RawDataView wnd = new RawDataView( obj, url, caption ); wnd.MdiParent = this; wnd.Show(); return wnd; }
public RawDataView OpenRawDataView( string path ) { try { Libx42.Model model = new Libx42.Model( path ); RawDataView wnd = new RawDataView( model, path ); wnd.MdiParent = this; wnd.Show(); return wnd; } catch( Exception err ) { MessageBox.Show( this, string.Format( "Error opening '{0}':\n\n{1} - '{2}'", path, err.GetType().Name, err.Message ), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error ); return null; } }