public Mixture() { InitializeComponent(); Checker.cEmpty = Color.Yellow; //Checker.cOutOfRange = Color.MediumOrchid; Checker.cErr = Color.DeepPink; mainConf = System.Configuration.ConfigurationManager.OpenExeConfiguration(""); GetValueByKey("IronTask", txbIronTask); GetValueByKey("IronTemp", txbIronTemp); GetValueByKey("ScrapTemp", txbScrapTemp); GetValueByKey("SteelTemp", txbSteelTemp); GetValueByKey("Basiticy", txbBasiticy); GetValueByKey("LimeTask", txbLimeIn); GetValueByKey("DolomSTask", txbLimeStoneIn); GetValueByKey("FomTask", txbFomIn); GetValueByKey("DolmaxTask", txbDolomIn); GetValueByKey("CokeTask", txbCokeIn); GetValueByKey("PercentMgO", txbMgO); GetValueByKey("PercentFeO", txbFeO); ch_Iron = new ChemTable("Химия чугуна", "IRON"); ch_Iron.LoadCSVData(); ch_Scrap = new ChemTable("Химия лома", "SCRAP"); ch_Scrap.LoadCSVData(); ch_Lime = new ChemTable("Химия извести", "LIME"); ch_Lime.LoadCSVData(); ch_Dolmax = new ChemTable("Химия доломита сушеного (ДОЛОМС)", "DOLOMS"); ch_Dolmax.LoadCSVData(); ch_Fom = new ChemTable("Химия ФОМа", "FOM"); ch_Fom.LoadCSVData(); if (Program.slagFormerIsMaxG) { lblLimeStoneIn.Text = "Магнезит"; lblLimeStoneOut.Text = "Магнезит"; ch_Doloms = new ChemTable("Химия магнезита (МАХГ)", "MAXG"); } else { lblLimeStoneIn.Text = "Доломит"; lblLimeStoneOut.Text = "Доломит"; ch_Doloms = new ChemTable("Химия доломита (ДОЛМИТ)", "DOLMIT"); } ch_Doloms.LoadCSVData(); ch_Coke = new ChemTable("Химия кокса", "COKE"); ch_Coke.LoadCSVData(); ch_Dust = new ChemTable("Химия отходящих пылей", "OFFDUST"); ch_Dust.LoadCSVData(); scrapTable = new ScrapTable(); ironTable = new IronTable(); btnCalculate.Select(); }
private void initChemistry(FPCarrier fp, ChemTable tbl) { LogStr(tbl.Text); _fp = fp; tbl.Enumerate(rp); }