private void OpenMenuItemClick(object sender, RoutedEventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();
            openFileDialog.InitialDirectory = "Sample PDBs";
            openFileDialog.Filter = "PDB File|*.pdb";

            if (openFileDialog.ShowDialog() ?? false)
            {
                LocalEntity localEntity = new LocalEntity(openFileDialog.FileName);

                //this.Title = localEntity.DisplayName;

                this.tsriImage.Visibility = Visibility.Hidden;

                this.artifactControl.OpenArtifact(localEntity);

                this.closeMenuItem.IsEnabled = true;
            }
        }
        /// <summary>
        /// Opens the specified entity.
        /// </summary>
        /// <param name="entity">The entity to open.</param>
        public void OpenArtifact(LocalEntity entity)
        {
            this.CloseArtifact();

            this.pdbViewer.Entity = entity;
        }
Example #3
0
        /// <summary>
        /// Opens the specified entity.
        /// </summary>
        /// <param name="entity">The entity to open.</param>
        public void OpenArtifact(LocalEntity entity)
        {
            this.CloseArtifact();

            this.pdbViewer.Entity = entity;
        }