public TaskTestMeasuring() { InitializeComponent(); if (Common.Db != null) { Control = new CheckedSpectrCollectionControl( Common.Db.GetFolder(Common.DbNameTunningFolder), clSpList, SpView, null, null, null); } clSpList.AfterSelect += new TreeViewEventHandler(clSpList_AfterSelect); }
public TaskLinkingMatrixControl() { Disp = new Dispers(); InitializeComponent(); if (Common.Db != null) { Folder = Common.Db.GetFolder(Common.DbNameLinkingFolder); Control = new CheckedSpectrCollectionControl( Folder, clSpList, SpView, null, null, null); Control.AfterMeasuringProc += new AfterMeasuringDel(AfterMeasuringCall); Control.FirstFileName = BaseMatrixName; } if (Common.Env != null) { if (Common.Env.LinkintEditorText == null || Common.Env.LinkintEditorText.Length == 0) { cmtLoadDefaultLinks_Click(null, null); /*string def_d = Common.Dev.DefaultDipsers(); * if (def_d == null) * tbLinks.Text = "#Заготовка" + serv.Endl + serv.Endl + * "s1:3 #сенс.1 полином3" + serv.Endl + * "10-2200" + serv.Endl + * "200-2210" + serv.Endl; * else * tbLinks.Text = def_d;*/ } else { tbLinks.Text = Common.Env.LinkintEditorText; } } try { tbLinks.Cursor = Common.GetCursor("TextWithMenu.cur"); } catch (Exception ex) { Common.Log(ex); } Common.SetupFont(menuStrip1); Log.Reg(MLSConst, menuStrip1); }