コード例 #1
0
        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;
            }
        }
コード例 #2
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;
        }
コード例 #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;
        }