void pr(string _msg) { if (verbose) { ProtocolST.pr(_msg); } }
void pr(string _msg) { if (verbose) { ProtocolST.pr("JDemagnetizer:" + _msg); } }
public void LoadFormRect(Control _form, ref int _splitter1, ref int _splitter2, ref int _splitterDistance, ref bool _IsVisible) { WindowLPars win = this[_form]; if (win == null) { return; } try { SetWinSize(win); _form.Left = win.Left; _form.Top = win.Top; _form.Width = win.Width; _form.Height = win.Height; } catch { //_form.Left = 100; //_form.Top = 100; //_form.Width = 200; //_form.Height = 100; } _splitter1 = win.Splitter1; _splitter2 = win.Splitter2; _splitterDistance = win.SplitterDistance; _IsVisible = win.IsVisible; ProtocolST.pr("Load: " + win.ToStringFull()); }
void pr(string _msg) { if (verbose) { ProtocolST.pr(_msg); } // Application.DoEvents(); }
public void prsl(uint _level, string _msg) { if (_level == 0) { toolStripStatusLabel1.Text = _msg; } else { toolStripStatusLabel2.Text = _msg; if (_msg != null) { LErrors.Add(_msg); } } ProtocolST.pr("Uwork: " + _msg); }
public void SaveFormRect(Control _form, int _splitter1, int _splitter2, int _splitterDistance, bool _IsVisible) { WindowLPars win = this[_form]; if (win == null) { win = this.AddNew() as WindowLPars; win.Name = GetName(_form); } win.Left = _form.Left; win.Top = _form.Top; win.Width = _form.Width; win.Height = _form.Height; win.Splitter1 = _splitter1; win.Splitter2 = _splitter2; win.SplitterDistance = _splitterDistance; win.IsVisible = _IsVisible; ProtocolST.pr("Save: " + win.ToStringFull()); }
void pr(string _msg) { ProtocolST.pr("ThickResultLite: " + _msg); }
void pr(string _msg) { ProtocolST.pr("JInverterTh: " + _msg); }
void pr(string _msg) { ProtocolST.pr(_msg); }
void pr(string _msg) { ProtocolST.pr("BankCLUnitA: " + _msg); }
protected void pr(string _msg) { ProtocolST.pr(ToString() + " " + _msg); }
void pr(string _msg) { ProtocolST.pr("FLBase[" + pr_nn++.ToString() + "]: " + _msg); }
static void pr(string _msg) { ProtocolST.pr("RemoveFiles: " + _msg); }
void pr(string _msg) { ProtocolST.pr("JTestThick: " + _msg); }
void pr(string _msg) { ProtocolST.pr("Main: " + _msg); }
//public void SaveToDB(double? _revolutions = null) //{ // if (tubePars == null) // return; // if (tubePars.Local == true) // return; // string fieldPath = null; // string fieldtresh = null; // string tableResult = null; // switch (Share.Current.UnitType) // { // case EUnit.Cross: // fieldPath = "pathFileNameCross"; // fieldtresh = "thresholdC"; // tableResult = "resultCross"; // break; // case EUnit.Line: // fieldPath = "pathFileNameLong"; // fieldtresh = "thresholdL"; // tableResult = "resultLong"; // break; // } // string head = "update resultTubeShort set "; // string where = string.Format(" where numFusion={0} and numTube={1}", // tubePars.iFusion.ToString(), // tubePars.iTube.ToString()); // string SQL = head; // SQL += spar(fieldPath, FileName, true); // SQL += spar("countZones", MZone.Count, true); // DefCL dcl = new DefCL(Tp); // SQL += spar(fieldtresh + "1", dcl.Border1, true); // SQL += spar(fieldtresh + "2", dcl.Border2, false); // SQL += where; // ExecSQL E = new ExecSQL(SQL); // if (E.RowsAffected != 1) // throw new Exception("ResultDef.SaveToDB: Не смогли записать: " + SQL); // head = string.Format("update {0} set ", tableResult); // where = string.Format(" where numFusion={0} and numTube={1}", // tubePars.iFusion.ToString(), // tubePars.iTube.ToString()); // if (MZone.Count == 0) // return; // if (MZone[0].MSensor.Length == 0) // return; // int lsensors = MZone[0].MSensor.Length; // L_L502Ch lch = dcl.LCh; // for (int iS = 0; iS < lsensors; iS++) // { // SQL = head; // for (int i = 0; i < MZone.Count; i++) // // SQL += spar("Z" + (i + 1).ToString(), Classer.ToInt(MZone[i].MSensor[iS].Class), i != MZone.Count - 1); // SQL += spar("Z" + (i + 1).ToString(), MZone[i].MSensor[iS].Level * lch[iS].Gain, i != MZone.Count - 1); // SQL += where; // SQL += " and sensorNum=" + (iS + 1).ToString(); // pr(SQL); // E = new ExecSQL(SQL); // if (E.RowsAffected != 1) // throw new Exception("ResultDef.SaveToDB: Не смогли записать: " + SQL); // } // RDPars1 rt = new RDPars1(ParAll.ST.TSSet.Current, Tp); // rt.Revolutions = _revolutions; // rt.SaveToDB(tubePars); // using (ExecSQL EE = new ExecSQL("update flags set isDataSendCompleet='true'")) // { // if (E.RowsAffected != 1) // throw new Exception("ResultDef.SaveToDB: Не смогли записать во flags: " + SQL); // } //} void pr(string _msg) { ProtocolST.pr("ResultDef: " + _msg); }
void pr(string _msg) { ProtocolST.pr("JTransport: " + _msg); }
void pr(string _msg) { ProtocolST.pr("USensorData: " + _msg); }
void pr(string _msg) { ProtocolST.pr("FMeases: " + _msg); }
void pr(string _msg) { ProtocolST.pr("UScanRotation: " + _msg); }
void pr(string _msg) { ProtocolST.pr("BankTUnit: " + _msg); }
void pr(string _msg) { ProtocolST.pr("LBLine: " + _msg); }
void pr(string _msg) { ProtocolST.pr("UManage: " + _msg); }
void pr(string _msg) { ProtocolST.pr("JWork: " + _msg); }
void pr(string _msg) { ProtocolST.pr("JResult: " + _msg); }
void pr(string _msg) { ProtocolST.pr("PDView: " + _msg); }
// int PointIndex = -1; void pr(string _msg) { ProtocolST.pr("FTubeGraph: " + _msg); }
void pr(string _msg) { ProtocolST.pr("JRectifierTh" + _msg); }
void pr(string _msg) { ProtocolST.pr("FTubeHalfPeriod: " + _msg); }