Exemplo n.º 1
0
		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 );

		}
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
		/// <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 );
		}