public CompareViewRecord(KeyValuePair<ParameterID, Dictionary<String, object>> p_parameterValues, CompareUserControl p_owner, DisplayMethod howToDisplay) { InitializeComponent(); this.Size = new System.Drawing.Size(this.Size.Width, 18); this.Dock = DockStyle.Top; this.BackColor = System.Drawing.Color.White; this.parameterValues = p_parameterValues; this.Set(howToDisplay); this.owner = p_owner; }
public Form1() { InitializeComponent(); _xmlManager.InitXmlFilesList(); autoTestCtrl = new AutomaticTestsUserControl(_xmlManager.XmlFilesList, listBoxXmlFiles); fileGeneratorControl = new FileGeneratorUserControl(listBoxXmlFiles); tabPage2.Controls.Add(autoTestCtrl); tabPage3.Controls.Add(fileGeneratorControl); searchingParameters = new SearchingParameters(); compareUserControl = new CompareUserControl(_xmlManager.XmlFilesList, listBoxXmlFiles); tabPage5.Controls.Add(compareUserControl); FileInfo configFile = new FileInfo("config.ini"); if (configFile.Exists) { string path; using (StreamReader sr = File.OpenText(configFile.ToString())) { path = sr.ReadLine(); } if (!string.IsNullOrEmpty(path)) { SetNewDatabase(path); ClearXmlFilesList(); listBoxXmlFiles.SuspendLayout(); _xmlManager.LoadXmlFilesFromDatabase(); ReloadListBox(); listBoxXmlFiles.ResumeLayout(); listBoxXmlFiles.PerformLayout(); tagPanel1.LoadTagsFromDatabase(_xmlManager.DataBase); tagPanel1.LoadRelationsFromDatabase(_xmlManager.DataBase); } } if (_xmlManager.XmlFilesList.Count == 0) { tabControl1.Enabled = false; } }