コード例 #1
0
        private void ShowFeederPreView()
        {
            if (dataGridView3.CurrentRow == null)
            {
                return;
            }

            Util.IFolder folder = dataGridView3.CurrentRow.DataBoundItem as Util.IFolder;
            if (folder != null)
            {
                new Util.CompositeBinder(folder.Location, "EMA", dataGridView3);
                return;
            }

            Util.IFile comp = dataGridView3.CurrentRow.DataBoundItem as Util.IFile;
            if (comp == null)
            {
                MessageBox.Show("Feeder를 선택하십시오.");
                return;
            }

            PreView preview = PreView.GetSingleton(comp.FullPath);

            preview.Project = this.MvProject.Project;
            DialogResult dr = preview.ShowDialog();

            if (DialogResult.OK != dr)
            {
                return;
            }

            preview.Close();
            preview.Dispose();

            this.SetAsCurrentFeeder();

            this.ShowSingleline();
        }
コード例 #2
0
 internal void Close()
 {
     _window.Close();
 }