コード例 #1
0
 private void tbPrice_TextChanged(object sender, EventArgs e)
 {
     if (tbPrice.Text != string.Empty)
     {
         labelSum.Text = $"Сумма   {int.Parse(tbPrice.Text) * int.Parse(sqlPrise.PriceOneClasses())}";
     }
     return;
 }
コード例 #2
0
 public BuyForm(SQLPrise qLPrise)
 {
     InitializeComponent();
     sqlPrise = qLPrise;
     labelCountClassGroup.Text     += $"   {qLPrise.CountClassesGroup()}";
     labelPriceOneClass.Text       += $"   {qLPrise.PriceOneClasses()}";
     labelCountClassThisGroup.Text += $"   {qLPrise.CountClassesThisGroup()}";
     labelCountBuyAll.Text         += $"   {qLPrise.CountBuyAll()}";
     labelCountBuyWillAll.Text     += $"   {qLPrise.CountBuyWillAll()}";
     labelPriceWillAll.Text        += $"   {qLPrise.PriceWillAll()}";
     labelGroup.Text    += $"   {qLPrise.Group}";
     labelCustomer.Text += $"   {qLPrise.Customer}";
 }