private void FMain_Load(object sender, EventArgs e) { // new Execute("Uran.SGtubesLock").Exec(); L_WindowLPars.CurrentWins.LoadFormRect(this); BaseItem.Schema = Schema; splitContainer1.SplitterDistance = ParAll.SG.Some.FMain_SplitterDistance; foreach (DGV p in splitContainer1.Panel1.Controls.OfType <DGV>()) { p.LoadRectangle(); p.CC = splitContainer1.Panel1.Controls; p.OnPrs = prs; } ucGraph1.Schema = Schema; //TODO: // dgvTypeSize.AddButton("График", OnGraphCur); dgvGroup.OnCurrent += dgvEtalon.RLoad; dgvGroup.AddButton("Перерасчет", GroupRecalc); dgvEtalon.OnCurrent += dgvEtalonPars.RLoad; dgvEtalon.AddButton("Действия", OnExec); dgvTube.OnCurrent += dgvTubePars.RLoad; dgvTube.AddButton("Действия", OnExec); TypeSize.Adjust(); TSKey = new TypeSize.DBKey(ParAll.CTS.Name); dgvTresh.RLoad(TSKey); dgvGroup.RLoad(TSKey); dgvTube.RLoad(TSKey); }