protected void LoadQWeighButton1_Click(object sender, EventArgs e) { WLMessageTextBox1.Text = ""; WeighingEquipUtils utl = new WeighingEquipUtils(); CheckBoxList chb = (CheckBoxList)WeightsPlaceHolder1.FindControl("WTCheckBoxList1"); if (chb == null) { return; } bool loaded = false; foreach (ListItem itm in chb.Items) { if (itm.Selected) { WLMessageTextBox1.Text += utl.ExportToWE_qload_by_weights_UKMPrice_by_format(itm.Value) + " /n "; loaded = true; Thread.Sleep(1000); } } if (loaded) { WLMessageTextBox1.Text += " Весы загружены."; } }
protected void LoadQWeighButton1_Click(object sender, EventArgs e) { MessageTextBox1.Text = ""; WeighingEquipUtils utl = new WeighingEquipUtils(); CheckBoxList chb = (CheckBoxList)WeightsPlaceHolder1.FindControl("WTCheckBoxList1"); if (chb == null) { return; } foreach (ListItem itm in chb.Items) { if (itm.Selected) { MessageTextBox1.Text += utl.ExportToWE_qload_by_weights_UKMPrice_by_format(itm.Value) + " "; } } }