コード例 #1
0
        private void SetAsCurrentFeeder()
        {
            if (!this.SelectionOK())
            {
                return;
            }

            Util.IFile file = dataGridView3.CurrentRow.DataBoundItem as Util.IFile;
            if (file == null)
            {
                return;
            }

            Util.Finder finder = new Util.Finder(this.MvProject, dataGridView1.SelectedRows[0]);

            this._singleline = finder.ReplaceSingleline(file.FullPath);
            this._threeline  = finder.ReplaceThreeline(file.FullPath);

            this.RefreshSingleline(this._singleline);
        }
コード例 #2
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();
        }