public override int GetHashCode() { int hash = 1; if (MsgType != global::messageTypes.GetOnlineUsers) { hash ^= MsgType.GetHashCode(); } if (Message.Length != 0) { hash ^= Message.GetHashCode(); } if (Cnt != 0) { hash ^= Cnt.GetHashCode(); } hash ^= users_.GetHashCode(); if (SelfconnetionId.Length != 0) { hash ^= SelfconnetionId.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public int DeleteSampleGroup(Datastore dal, long?SampleGroup_CN) { // check tree table for data if (dal.GetRowCount("Tree", "WHERE SampleGroup_CN = @p1", SampleGroup_CN) > 0) { return(-1); } // Check Count table for each sample group if (dal.GetRowCount("CountTree", "WHERE SampleGroup_CN = @p1 AND TreeCount > 0", SampleGroup_CN) > 0) { return(-1); } //Delete Count Records for stratum var allCountInSg = dal.From <CountTreeDO>() .Where("SampleGroup_CN = @p1") .Read(SampleGroup_CN).ToList(); foreach (CountTreeDO Cnt in allCountInSg) { Cnt.Delete(); } Delete(); return(0); }
public static int DeleteStratum(Datastore dal, StratumDO stratum) { // check tree table for data if (dal.GetRowCount("Tree", "WHERE Stratum_CN = @p1", stratum.Stratum_CN) > 0) { return(-1); } // check plot table for data if (dal.GetRowCount("Plot", "WHERE Stratum_CN = @p1", stratum.Stratum_CN) > 0) { return(-1); } // Check Count table for each sample group if (dal.GetRowCount("CountTree", "JOIN SampleGroup ON CountTree.SampleGroup_CN = SampleGroup.SampleGroup_CN WHERE SampleGroup.Stratum_CN = @p1 AND CountTree.TreeCount > 0", stratum.Stratum_CN) > 0) { return(-1); } //Delete sample groups for stratum List <SampleGroupDO> allSGInStratum = dal.From <SampleGroupDO>() .Where("Stratum_CN = @p1") .Read(stratum.Stratum_CN).ToList(); //.Read<SampleGroupDO>("WHERE Stratum_CN = ?", stratum.Stratum_CN); foreach (SampleGroupDO Sg in allSGInStratum) { //Delete Count Records for stratum List <CountTreeDO> allCountInSG = dal.From <CountTreeDO>() .Where("SampleGroup_CN = @p1") .Read(Sg.SampleGroup_CN).ToList(); //.Read<CountTreeDO>("WHERE SampleGroup_CN = ?", Sg.SampleGroup_CN); foreach (CountTreeDO Cnt in allCountInSG) { Cnt.Delete(); } Sg.Delete(); } //Delete stratum stats for stratum List <StratumStatsDO> allStratumStatsInStratum = dal.From <StratumStatsDO>() .Where("Stratum_CN = @p1") .Read(stratum.Stratum_CN) .ToList(); //.Read<StratumStatsDO>( //"WHERE Stratum_CN = ?", stratum.Stratum_CN); foreach (StratumStatsDO StratumStats in allStratumStatsInStratum) { StratumStats.DeleteStratumStats(dal, StratumStats.StratumStats_CN); } stratum.Delete(); return(0); }
void ShowContent() { if (!m_bitmapSources.Any(bs => bs.IsDownloading)) { Buzy.IsWaiting = false; Buzy.Visibility = Visibility.Collapsed; Cnt.IsHitTestVisible = true; m_clock = m_opacityAnimation.CreateClock(); m_clock.Completed += clock_Completed; Cnt.ApplyAnimationClock(OpacityProperty, m_clock); } }
//Hàm thay xử lí trên thông tin dưới bộ nhớ public void changeInfomation(String queue) { connectData(); Cnt.Open(); String t = queue; SqlCommand cmn = new SqlCommand(); cmn.Connection = Cnt; cmn.CommandType = CommandType.Text; cmn.CommandText = t; cmn.ExecuteNonQuery(); Cnt.Close(); }
public bool changeStateMess(String state, String id1, String id2, String dt) { connectData(); Cnt.Open(); String t = "UPDATE Message set State='" + state + "' where IDUser='******' and IDSender = '" + id2 + "' and DateTime = '" + dt + "'"; SqlCommand cmn = new SqlCommand(); cmn.Connection = Cnt; cmn.CommandType = CommandType.Text; cmn.CommandText = t; cmn.ExecuteNonQuery(); Cnt.Close(); return(true); }
public bool changeStateUser(String state, String id) { connectData(); Cnt.Open(); String t = "UPDATE Users set State='" + state + "' where IDUser='******'"; SqlCommand cmn = new SqlCommand(); cmn.Connection = Cnt; cmn.CommandType = CommandType.Text; cmn.CommandText = t; cmn.ExecuteNonQuery(); Cnt.Close(); return(true); }
public bool insertDatatoMessage(string id_user, string id_sender, DateTime time, string content, String State) { try { connectData(); Cnt.Open(); String t = "insert Message values('" + id_user + "','" + id_sender + "','" + time + "','" + content + "','" + State + "')"; SqlCommand cmn = new SqlCommand(); cmn.Connection = Cnt; cmn.CommandType = CommandType.Text; cmn.CommandText = t; cmn.ExecuteNonQuery(); Cnt.Close(); return(true); } catch { return(false); } }
public override int GetHashCode() { int hashcode = 157; unchecked { if (isset.type) { hashcode = (hashcode * 397) + Type.GetHashCode(); } if (isset.cnt) { hashcode = (hashcode * 397) + Cnt.GetHashCode(); } if (isset.@value) { hashcode = (hashcode * 397) + Value.GetHashCode(); } } return(hashcode); }
public bool insertUsers(String User, String Pass, String State, String FullName, String Email, String Address) { try { //Xử lí dữ liệu: User = (User.Length > 0) ? ("" + "'" + User + "'") : "NULL"; Pass = (Pass.Length > 0) ? ("" + "'" + Pass + "'") : "NULL"; State = (State.Length > 0) ? ("" + "'" + State + "'") : "NULL"; FullName = (FullName.Length > 0) ? ("" + "'" + FullName + "'") : "NULL"; Email = (Email.Length > 0) ? ("" + "'" + Email + "'") : "NULL"; Address = (Address.Length > 0) ? ("" + "'" + Address + "'") : "NULL"; // DateTime dt = new DateTime(); dt = DateTime.Now; int id1 = dt.Day + dt.Month + dt.Year + dt.Hour + dt.Minute + dt.Second; String id = "'" + id1 + "'"; if (findIDfromUsername(User) != 0) { return(false); } connectData(); Cnt.Open(); //Insert Users values('113', 'HieuThanh', '123', 'False', NULL, 'a', NULL) String t = "Insert Users values(" + id + "," + User + "," + Pass + "," + State + "," + FullName + "," + Email + "," + Address + ")"; SqlCommand cmn = new SqlCommand(); cmn.Connection = Cnt; cmn.CommandType = CommandType.Text; cmn.CommandText = t.Trim(); cmn.ExecuteNonQuery(); Cnt.Close(); return(true); //String t = "insert Users values('" +id +"','" + User + "','" + Pass + "','" + State + "','" + FullName +"','"+Email+"','"+Address +"')"; } catch { return(false); } }
public void AfterStart(Cnt CNT) { ActiveLine = manager.GetDialogue(SceneID); MoveList = new Vector3[Actors.Count]; RotateList = new Vector3[Actors.Count]; ScaleList = new Vector3[Actors.Count]; MoveRotSpeed = new float[Actors.Count]; for (int i = 0; i < Actors.Count; i++) { MoveList[i] = Actors[i].transform.position; RotateList[i] = Actors[i].transform.rotation.eulerAngles; ScaleList[i] = Actors[i].transform.localScale; } canUpdate = true; for (int i = 0; i < Buttons.Count; i++) { Buttons[i].transform.parent.gameObject.SetActive(false); } ContinueBtn.interactable = true; SceneIn = true; fade = true; // LoadingPanel.gameObject.SetActive (false); CNT(); }
void clock_Completed(object sender, EventArgs e) { m_clock.Completed -= clock_Completed; Cnt.ApplyAnimationClock(OpacityProperty, null); Cnt.Opacity = 1; }
private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e) { String SnsOrderStr; DialogResult result; /*frm = (Form1)this.Owner; * int r = frm.AutoNastroykaState; * switch (e.ProgressPercentage) * { * * case 1: * textBoxDescription.AppendText(r.ToString() + Environment.NewLine); * break; * }*/ switch (Class1.SensOrder1) { case 0: SnsOrderStr = "1: ABC"; break; case 1: SnsOrderStr = "2: BAC"; break; case 2: SnsOrderStr = "3: BCA"; break; case 3: SnsOrderStr = "4: ACB"; break; case 4: SnsOrderStr = "5: CAB"; break; case 5: SnsOrderStr = "6: CBA"; break; default: SnsOrderStr = "-----"; break; } // textBoxDescription.AppendText(Class1.CntAutoNastroykaState257.ToString() + Environment.NewLine); /* * * * switch (Class1.AutoNastroykaState) * { * case 1: * textBoxDescription.AppendText("-------- Старт автонастройки ---------- " + Environment.NewLine); * textBoxDescription.AppendText(Environment.NewLine); * textBoxDescription.AppendText(Environment.NewLine); * textBoxDescription.AppendText("Включение режима: " + Environment.NewLine); * textBoxDescription.AppendText("Векторный, обычный, фильтр отключен, режим моноцикла выключен, частота ШИМ = 20кГц, ток ограничен " + Environment.NewLine); * textBoxDescription.AppendText(Environment.NewLine); * textBoxDescription.AppendText(Environment.NewLine); * * break; * case 2: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Остановка..." + Environment.NewLine); * break; * case 3: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Калибровка датчика тока . . . "); * textBoxDescription.AppendText(Environment.NewLine); * break; * case 4: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Калибровка датчика тока закончена. "); * textBoxDescription.AppendText(Environment.NewLine); * break; * case 5: * textBoxDescription.AppendText(Environment.NewLine); * if (Class1.InvSin == 0) * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Фазы - " + SnsOrderStr + " Инв. SVPWM = " + "0" + Environment.NewLine); * else * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Фазы - " + SnsOrderStr + " Инв. SVPWM = " + "1" + Environment.NewLine); * break; * * case 6: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Задержка 1 сек." + Environment.NewLine); * break; * * case 7: * if (Class1.TestSIN_Ok == 0) * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Результат: неудачный" + Environment.NewLine); * else * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Результат: ---OK---" + Environment.NewLine); * * break; * case 8: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Остановка" + Environment.NewLine); * break; * * case 10: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + Environment.NewLine); * break; * * * case 11: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Обнаружено рабочих комбинаций: " + Class1.TestSINOkMassCnt.ToString() + Environment.NewLine); * textBoxDescription.AppendText("Определение оптимальной..." + Environment.NewLine); * textBoxDescription.AppendText(Environment.NewLine); * textBoxDescription.AppendText(Environment.NewLine); * break; * * * case 12: * if (Class1.InvSin == 0) * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Фазы - " + SnsOrderStr + " Инв. SVPWM = " + "0" + Environment.NewLine); * else * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Фазы - " + SnsOrderStr + " Инв. SVPWM = " + "1" + Environment.NewLine); * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": Увеличение ШИМ..." ); * textBoxDescription.AppendText(Environment.NewLine); * break; * * case 14: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": Скважность ШИМ увеличена" ); * textBoxDescription.AppendText(Environment.NewLine); * break; * * case 15: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": Задержка. +++ " + Class1.Curr1SnTST); * textBoxDescription.AppendText(Environment.NewLine); * break; * * * * case 16: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": Остановка"); * textBoxDescription.AppendText(Environment.NewLine); * * break; * * * * case 17: * textBoxDescription.AppendText(Environment.NewLine); * if (Class1.InvSin == 0) * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Определен рабочий порядок фаз: " + Environment.NewLine + "-->" +SnsOrderStr + " Инв. SVPWM = " + "0 <--" + Environment.NewLine); * else * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Определен рабочий порядок фаз: " + Environment.NewLine + "--> " + SnsOrderStr + " Инв. SVPWM = " + "1 <--" + Environment.NewLine); * textBoxDescription.AppendText(Environment.NewLine); * textBoxDescription.AppendText(Environment.NewLine); * // textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Оптимизация фазового сдвига... " + Environment.NewLine); * * break; * * case 18: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": Остановка" + Environment.NewLine); * break; * * case 20: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": Скважность ШИМ увеличена" + Environment.NewLine); * break; * * case 21: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + Class1.Curr1SnTST_0.ToString() + Environment.NewLine); * break; * * case 22: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": Сдвиг фазы: " + Class1.Curr1SnTST.ToString() + Environment.NewLine); * break; * * * case 23: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + Class1.Curr1SnTST_0.ToString() + " - " + Class1.Curr1SnTST.ToString() + Environment.NewLine); * * break; * * * case 27: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Нижний порог ручки газа: " + Class1.SensorThresholdDn.ToString() + Environment.NewLine); * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Нижний порог ручки тормоза: " + Class1.BreakThresholdDn.ToString() + Environment.NewLine); * DialogResult result = MessageBox.Show("Нажмите ручку газа до упора и выберите ОК, для пропуска выберите NO", "Информация", MessageBoxButtons.YesNo, MessageBoxIcon.Question); * * * if (result == DialogResult.Yes) * { * d(2); * } * else * { * d(3); * } * break; * * case 29: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Верхний порог ручки газа: " + Class1.SensorThresholdUp.ToString() + Environment.NewLine); * result = MessageBox.Show("Нажмите ручку тормоза до упора и выберите ОК, для пропуска выберите NO", "Информация", MessageBoxButtons.YesNo, MessageBoxIcon.Question); * * * if (result == DialogResult.Yes) * { * d(4); * } * else * { * d(5); * } * break; * * * case 30: * result = MessageBox.Show("Нажмите ручку тормоза до упора и выберите ОК, для пропуска выберите NO", "Информация", MessageBoxButtons.YesNo, MessageBoxIcon.Question); * * * if (result == DialogResult.Yes) * { * d(4); * } * else * { * d(5); * } * break; * * * * * * case 31: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Верхний порог ручки тормоза: " + Class1.BreakThresholdUp.ToString() + Environment.NewLine); * break; * * case 32: * textBoxDescription.AppendText(Environment.NewLine); * textBoxDescription.AppendText(Environment.NewLine); * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Автонастройка завершена" + Environment.NewLine); * MessageBox.Show("Настройка закончена, не забудьте сохранить их в памяти.", "Информация", MessageBoxButtons.OK, MessageBoxIcon.Information); * d(6); * break; * * * * * case 254: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Рабочие комбинации фаз не обнаружены" + Environment.NewLine); * MessageBox.Show("Не обнаружены рабочие комбинации фаз. Проверьте проводку или попробуйте настроить вручную.", "Ошибка", MessageBoxButtons.OK); * break; * * case 255: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Ошибка 255. Произведите настройку сдвига фаз вручную" + Environment.NewLine); * MessageBox.Show("Ошибка 255. Произведите настройку сдвига фаз вручную", "Ошибка", MessageBoxButtons.OK); * break; * * case 256: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Ошибка 256. Произведите настройку сдвига фаз вручную" + Environment.NewLine); * MessageBox.Show("Ошибка 256. Произведите настройку сдвига фаз вручную", "Ошибка", MessageBoxButtons.OK); * break; * * * default: * textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + Environment.NewLine); * break; * * * } * */ Cnt++; switch (Class1.AutoNastroykaState) { case 1: textBoxDescription.AppendText(MyStrings.StartingAutosettings + Environment.NewLine); textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText("Set mode" + Environment.NewLine); textBoxDescription.AppendText(MyStrings.VectorMode + Environment.NewLine); textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText(Cnt.ToString() + ": " + "U_BAT = " + Class1.UBT_V + Environment.NewLine); textBoxDescription.AppendText(Cnt.ToString() + ": " + "PWM = " + Class1.PWM1_SIN_TST + Environment.NewLine); textBoxDescription.AppendText(Environment.NewLine); break; case 2: textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.Stopping + Environment.NewLine); break; case 3: textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.CurrSenorCalibrate); textBoxDescription.AppendText(Environment.NewLine); break; case 4: textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.CurrSenorCalibrateFinished); textBoxDescription.AppendText(Environment.NewLine); d(13); break; case 5: textBoxDescription.AppendText(Environment.NewLine); if (Class1.InvSin == 0) { textBoxDescription.AppendText(Cnt.ToString() + ": " + "Phases - " + SnsOrderStr + " Inv. SVPWM = " + "0" + Environment.NewLine); } else { textBoxDescription.AppendText(Cnt.ToString() + ": " + "Phases - " + SnsOrderStr + " Inv. SVPWM = " + "1" + Environment.NewLine); } break; case 6: textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.Delay1s + Environment.NewLine); break; case 7: if (Class1.TestSIN_Ok == 0) { textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.ResultUnsuccessful + Environment.NewLine); } else { textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.ResultOK + Environment.NewLine); } break; case 8: textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.Stopping + Environment.NewLine); break; case 10: textBoxDescription.AppendText(Cnt.ToString() + ": " + Environment.NewLine); break; case 11: textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.FoundOrders + Class1.TestSINOkMassCnt.ToString() + Environment.NewLine); textBoxDescription.AppendText(MyStrings.FindingOptimal + Environment.NewLine); textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText(Environment.NewLine); break; case 12: if (Class1.InvSin == 0) { textBoxDescription.AppendText(Cnt.ToString() + ": " + "Phases - " + SnsOrderStr + " Inv. SVPWM = " + "0" + Environment.NewLine); } else { textBoxDescription.AppendText(Cnt.ToString() + ": " + "Phases - " + SnsOrderStr + " Inv. SVPWM = " + "1" + Environment.NewLine); } textBoxDescription.AppendText(MyStrings.IncPWM); textBoxDescription.AppendText(Environment.NewLine); break; case 14: textBoxDescription.AppendText(Cnt.ToString() + MyStrings.PWMIncreased); textBoxDescription.AppendText(Environment.NewLine); break; case 15: textBoxDescription.AppendText(Cnt.ToString() + MyStrings.DelayU + Class1.Curr1SnTST); textBoxDescription.AppendText(Environment.NewLine); break; case 16: textBoxDescription.AppendText(Cnt.ToString() + MyStrings.Stp); textBoxDescription.AppendText(Environment.NewLine); break; case 17: textBoxDescription.AppendText(Environment.NewLine); if (Class1.InvSin == 0) { textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.OrderFound + Environment.NewLine + "-->" + SnsOrderStr + " Inv. SVPWM = " + "0 <--" + Environment.NewLine); } else { textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.OrderFound + Environment.NewLine + "--> " + SnsOrderStr + " Inv. SVPWM = " + "1 <--" + Environment.NewLine); } textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText(Environment.NewLine); // textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + ": " + "Оптимизация фазового сдвига... " + Environment.NewLine); break; case 18: textBoxDescription.AppendText(Cnt.ToString() + MyStrings.Stp + Environment.NewLine); break; case 19: textBoxDescription.AppendText(Cnt.ToString() + MyStrings.Stp + Environment.NewLine); result = MessageBox.Show(MyStrings.MotorMovingOkNo, MyStrings.Inform, MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.Yes) { d(9); } else { d(7); } break; case 20: textBoxDescription.AppendText(Cnt.ToString() + MyStrings.PWMIncreased + Environment.NewLine); break; case 21: textBoxDescription.AppendText(Cnt.ToString() + ": " + Class1.Curr1SnTST_0.ToString() + Environment.NewLine); break; case 22: textBoxDescription.AppendText(Cnt.ToString() + ": Phase shift: " + Class1.Curr1SnTST.ToString() + Environment.NewLine); break; case 23: textBoxDescription.AppendText(Cnt.ToString() + ": " + Class1.Curr1SnTST_0.ToString() + " - " + Class1.Curr1SnTST.ToString() + Environment.NewLine); break; case 27: textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.LowLevelThrottle + Class1.SensorThresholdDn.ToString() + Environment.NewLine); textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.LowLevelHallBreak + Class1.BreakThresholdDn.ToString() + Environment.NewLine); d(14); result = MessageBox.Show(MyStrings.ThrottleCalibration, MyStrings.Inform, MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.Yes) { d(2); } else { d(3); } break; case 29: textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.ThrottleHighLevel + Class1.SensorThresholdUp.ToString() + Environment.NewLine); result = MessageBox.Show(MyStrings.BreakCalibration, MyStrings.Inform, MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.Yes) { d(4); } else { d(5); } break; case 30: result = MessageBox.Show(MyStrings.BreakCalibration, MyStrings.Inform, MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.Yes) { d(4); } else { d(5); } break; case 31: textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.HighLevelHallBreak + Class1.BreakThresholdUp.ToString() + Environment.NewLine); break; case 32: textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.AutosettingsCompleted + Environment.NewLine); MessageBox.Show(MyStrings.AutosettingsCompletedMSG, MyStrings.Inform, MessageBoxButtons.OK, MessageBoxIcon.Information); d(6); break; case 33: textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.TooLowThrottle + Environment.NewLine); MessageBox.Show(MyStrings.TooLowThrottleMSG, MyStrings.Inform, MessageBoxButtons.OK, MessageBoxIcon.Information); d(10); break; case 34: textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.TooHighThrottle + Environment.NewLine); MessageBox.Show(MyStrings.TooHighThrottleMsg, MyStrings.Inform, MessageBoxButtons.OK, MessageBoxIcon.Information); d(10); break; case 35: textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.LowMoreHighThrottle + Environment.NewLine); MessageBox.Show(MyStrings.LowMoreHighThrottleMSG, MyStrings.Inform, MessageBoxButtons.OK, MessageBoxIcon.Information); d(10); break; case 36: textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.TooLowBreak + Environment.NewLine); MessageBox.Show(MyStrings.TooLowBreakMSG, MyStrings.Inform, MessageBoxButtons.OK, MessageBoxIcon.Information); d(11); break; case 37: textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.TooHighBreak + Environment.NewLine); MessageBox.Show(MyStrings.TooHighBreakMSG, MyStrings.Inform, MessageBoxButtons.OK, MessageBoxIcon.Information); d(11); break; case 38: textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText(Environment.NewLine); textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.LowMoreHighBreak + Environment.NewLine); MessageBox.Show(MyStrings.LowMoreHighBreakMSG, MyStrings.Inform, MessageBoxButtons.OK, MessageBoxIcon.Information); d(11); break; case 254: textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.OrderNotDetected + Environment.NewLine); MessageBox.Show(MyStrings.OrderNotDetectedMSG, MyStrings.ErrorMsg, MessageBoxButtons.OK); d(12); break; case 255: textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.Error255 + Environment.NewLine); MessageBox.Show(MyStrings.Error255, MyStrings.ErrorMsg, MessageBoxButtons.OK); break; case 256: textBoxDescription.AppendText(Cnt.ToString() + ": " + MyStrings.Error256 + Environment.NewLine); MessageBox.Show(MyStrings.Error256, MyStrings.ErrorMsg, MessageBoxButtons.OK); break; default: textBoxDescription.AppendText(Class1.AutoNastroykaState.ToString() + Environment.NewLine); break; } }