Пример #1
0
        public void ShowDataFiles()
        {
            var dataFilesForm = Program.FindOpenForm <DataFilesForm>();

            if (dataFilesForm != null)
            {
                RestoreAndActivate(dataFilesForm);
                return;
            }
            dataFilesForm = new DataFilesForm(Workspace);
            dataFilesForm.Show(dockPanel, DockState.Document);
        }
Пример #2
0
        private void DataGridViewOnCellEndEdit(object sender, DataGridViewCellEventArgs e)
        {
            var row = dataGridView.Rows[e.RowIndex];
            var peptideFileAnalysis = (PeptideFileAnalysis)row.Tag;
            var column = dataGridView.Columns[e.ColumnIndex];
            var cell   = row.Cells[e.ColumnIndex];

            if (column == colCohort)
            {
                peptideFileAnalysis.MsDataFile.Cohort = Convert.ToString(cell.Value);
            }
            else if (column == colTimePoint)
            {
                peptideFileAnalysis.MsDataFile.TimePoint = DataFilesForm.ToDouble(cell.Value);
            }
            else if (column == colDataFileLabel)
            {
                peptideFileAnalysis.MsDataFile.Label = Convert.ToString(cell.Value);
            }
            else if (column == colStatus)
            {
                peptideFileAnalysis.ValidationStatus = (ValidationStatus)cell.Value;
            }
        }
Пример #3
0
 public DataFileDeleteHandler(DataFilesForm form)
 {
     _form = form;
 }
Пример #4
0
 public DataFileRow(DataFilesForm form, MsDataFile dataFile)
 {
     _form     = form;
     _dataFile = dataFile;
 }
Пример #5
0
 public void ShowDataFiles()
 {
     var dataFilesForm = Program.FindOpenForm<DataFilesForm>();
     if (dataFilesForm != null)
     {
         RestoreAndActivate(dataFilesForm);
         return;
     }
     dataFilesForm = new DataFilesForm(Workspace);
     dataFilesForm.Show(dockPanel, DockState.Document);
 }
Пример #6
0
 public DataFileRow(DataFilesForm form, MsDataFile dataFile)
 {
     _form = form;
     _dataFile = dataFile;
 }
Пример #7
0
 public DataFileDeleteHandler(DataFilesForm form)
 {
     _form = form;
 }