private void LoadDatabase(string dbpath) { DataBase = new DataBaseFile(dbpath); databaseTB.Text = DataBase.FilePath; if ((ValidState & InValidType.Database) == InValidType.Database) { ValidState ^= InValidType.Database; } UpdateEnables(); }
public MainForm() { ValidState = InValidType.Database | InValidType.DtaFiles; InitializeComponent(); Omssa = new Omssa(); Omssa.Exited += new EventHandler(Omssa_Exited); Omssa.UpdateStatus += new DataReceivedEventHandler(Omssa_UpdateStatus); // Update Form Header Text = "OMSSA Navigator (" + ReadVersion() + ")"; ReadInEnzymes(); ReadInIonSeries(); ReadMods(); LoadTaxIds(); SetDefaults(); ReadInArgumentLine(); UpdateEnables(); }
public MainForm() { ValidState = InValidType.Database | InValidType.DtaFiles; InitializeComponent(); Omssa = new Omssa(); Omssa.Exited += new EventHandler(Omssa_Exited); Omssa.UpdateStatus += new DataReceivedEventHandler(Omssa_UpdateStatus); // Update Form Header Text = "OMSSA Navigator (" + ReadVersion() + ")"; ReadInEnzymes(); ReadInIonSeries(); ReadMods(); LoadTaxIds(); SetDefaults(); ReadInArgumentLine(); UpdateEnables(); }
private void UpdateDtaList() { dtafileLB.Items.Clear(); if (DTAFiles != null) { ValidState |= InValidType.DtaFiles; if (OutputFilePath == String.Empty) { OutputFilePath = SuggestedOutputFilePath; } foreach (DtaFile dtaFile in DTAFiles) { dtafileLB.Items.Add(dtaFile.Name); ValidState &= ~InValidType.DtaFiles; } } else { ValidState |= InValidType.DtaFiles; } UpdateEnables(); }
private void IsValid(bool value) { ValidArgumentLine = value; if (value) { ValidState &= ~InValidType.Argument; } else { ValidState |= InValidType.Argument; } if ((ValidState & InValidType.Argument) != InValidType.Argument) { argTB.BackColor = Color.White; } else { argTB.BackColor = Color.Red; } CheckStart(); }
private void LoadDatabase(string dbpath) { DataBase = new DataBaseFile(dbpath); databaseTB.Text = DataBase.FilePath; if((ValidState & InValidType.Database) == InValidType.Database) { ValidState ^= InValidType.Database; } UpdateEnables(); }
private void IsValid(bool value) { ValidArgumentLine = value; if(value) { ValidState &= ~InValidType.Argument; } else { ValidState |= InValidType.Argument; } if((ValidState & InValidType.Argument) != InValidType.Argument) { argTB.BackColor = Color.White; } else { argTB.BackColor = Color.Red; } CheckStart(); }
private void UpdateDtaList() { dtafileLB.Items.Clear(); if(DTAFiles != null) { ValidState |= InValidType.DtaFiles; if(OutputFilePath == String.Empty) { OutputFilePath = SuggestedOutputFilePath; } foreach(DtaFile dtaFile in DTAFiles) { dtafileLB.Items.Add(dtaFile.Name); ValidState &= ~InValidType.DtaFiles; } } else { ValidState |= InValidType.DtaFiles; } UpdateEnables(); }