Example #1
0
        public LabelBuilder ModifyPrintSpeed(PrintSpeed printSpeed, SlewSpeed slewSpeed, BackfeedSpeed backfeedSpeed)
        {
            Context.PrintSpeed    = printSpeed;
            Context.SlewSpeed     = slewSpeed;
            Context.BackfeedSpeed = backfeedSpeed;

            return(this);
        }
Example #2
0
        /// <summary>
        /// Запись значений для графика.
        /// </summary>
        public static void WritingValuesForTheChart()
        {
            double SpeedValue = double.Parse(PrintSpeed.Replace(" зн/мин", ""));

            SpeedValues.Add(SpeedValue);
            double AccuracyValue = double.Parse(Accuracy.Replace(" %", ""));

            AccuracyValues.Add(AccuracyValue);
        }
Example #3
0
        /// <summary>
        /// Вычисление оценки результата.
        /// </summary>
        /// <returns></returns>
        public static string Rating()
        {
            double coefficient = double.Parse(PrintSpeed.Substring(0, PrintSpeed.Length - 7)) * double.Parse(Accuracy.Substring(0, Accuracy.Length - 2)) / 100;

            if (coefficient < 80)
            {
                return("Попробуйте еще раз.");
            }
            else if (coefficient >= 80 & coefficient < 200)
            {
                return("Неплохо!");
            }
            else if (coefficient >= 200)
            {
                return("Потрясающе!");
            }
            else
            {
                return("");
            }
        }
Example #4
0
 public static ZPLCommand PR(PrintSpeed speed, SlewSpeed slew, BackfeedSpeed backfeed)
 => new ZPLCommand("^PR", (int)speed, (int)slew, (int)backfeed);