public SEAAnalysis(Hashtable results, SEAEnvironment environment) { _substructureLibrary = environment.subsLib; _hsAssayResults = results; _stats = environment.stats; _customFunctionsDir = environment.CustomFunctionsDir; }
public FormTabbed() { InitializeComponent(); _env = new SEAEnvironment(); // init controls lstSubsLib.DisplayMember = "NameNoExt"; lstAssayResults.DisplayMember = "NameNoExt"; lstAnalysisResults.DisplayMember = "NameNoExt"; // fill substructure library listbox with list of available files DirectoryInfo di = new DirectoryInfo(_env.subLibPath); FileInfo[] rgFiles = di.GetFiles("*.*"); foreach (FileInfo fi in rgFiles) { lstSubsLib.Items.Add(new FileInfoExtended(fi)); } // fill statistics box with list of statistics try { _env.ReloadStatistics(); } catch (Exception ex) { MessageBox.Show("An error occurred while reading the statistics file: \r\n" + ex.Message + "\r\nThe file may not be in the correct format."); } foreach (StatisticsEntry ent in _env.stats.Entries) { lvStatistics.Items.Add(new ListViewItem(ent.Name)); lvStatistics.Items[lvStatistics.Items.Count - 1].Checked = ent.Perform; } lvStatistics.Columns[0].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); }