private InputRow AddInputRow(int y)
        {
            var newRow = new InputRow(y);

            Controls.Add(newRow.Sku);
            Controls.Add(newRow.ProductName);
            Controls.Add(newRow.Size);
            Controls.Add(newRow.Quantity);

            //обновления строки статуса
            newRow.Size.TextChanged     += new EventHandler(UpdateStatus);
            newRow.Quantity.TextChanged += new EventHandler(UpdateStatus);
            newRow.Sku.TextChanged      += new EventHandler(UpdateStatus);

            return(newRow);
        }
 private string NextSize(InputRow lastRow)
 {
     if (lastRow.Size.Text == "")
     {
         return("");
     }
     else if (lastRow.Size.Text == "L")
     {
         return("XS");
     }
     else if (lastRow.Size.Text == "8")
     {
         return("3");
     }
     else
     {
         var index = Array.IndexOf(lastRow.SizeOptions, lastRow.Size.Text);
         return(lastRow.SizeOptions[index + 1]);
     }
 }