Beispiel #1
0
 private void proteinSeperationProcessToolStripMenuItem_Click(object sender, EventArgs e)
 {
     _ProteinDataSeperator = new ProteinDataSeperator(_SourceDataTable, "PID", "Sequence", "Position");
     _ProteinDataSeperator.SeperationCompleted      += new WorkerCompletedEventHandler(_ProteinDataSeperator_SeperationCompleted);
     _ProteinDataSeperator.SeperationProgressUpdate += new WorkerProgressUpdateEventHandler(_ProteinDataSeperator_SeperationProgressUpdate);
     _ProteinDataSeperator.SeperationStarted        += new WorkerStartedEventHandler(_ProteinDataSeperator_SeperationStarted);
     lblTotalSourceRecords.Text = _SourceDataTable.Rows.Count.ToString();
     _ProteinDataSeperator.Run();
     _ProteinDataTable       = _ProteinDataSeperator.ProteinDataTable;
     gridProteins.DataSource = _ProteinDataTable;
     lblProteinCount.Text    = _ProteinDataTable.Rows.Count.ToString();
 }
Beispiel #2
0
 private void openToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (_SourceDataTable != null)
     {
         _SourceDataTable.Dispose();
         _SourceDataTable = null;
     }
     if (_ProteinDataTable != null)
     {
         _ProteinDataTable.Dispose();
         _ProteinDataTable = null;
     }
     if (_ProteinDataSeperator != null)
     {
         _ProteinDataSeperator.Dispose();
         _ProteinDataSeperator = null;
     }
     openDlg.ShowDialog(this);
 }