private void btnOpenFile_Click( object sender, EventArgs e ) { OpenFileDialog dlg = new OpenFileDialog(); string FilePath = String.Empty; dlg.Filter = "RSM Model (*.rsm)|*.rsm"; if( dlg.ShowDialog() != DialogResult.OK ) return; FilePath = dlg.FileName; txtFile.Text = FilePath; Map_Formats.RSM rsm = new Map_Formats.RSM( FilePath, true ); }
private void btnOpenFile_Click(object sender, EventArgs e) { OpenFileDialog dlg = new OpenFileDialog(); string FilePath = String.Empty; dlg.Filter = "RSM Model (*.rsm)|*.rsm"; if (dlg.ShowDialog() != DialogResult.OK) { return; } FilePath = dlg.FileName; txtFile.Text = FilePath; Map_Formats.RSM rsm = new Map_Formats.RSM(FilePath, true); }
/// <summary> /// is the Parent from <see cref="Mesh"/> == MainMesh ? /// </summary> /// <param name="MainMesh"></param> /// <param name="Mesh"></param> /// <returns></returns> public static bool IsParent( this RSM.Mesh MainMesh, RSM.Mesh Mesh ) { return ( MainMesh.Head.Name == Mesh.Head.ParentName ); }