Esempio n. 1
0
 private void ShowAllert(string allertText)
 {
     WindowAlerts wndOK = new WindowAlerts();
     wndOK.textBlock1.Text = allertText;
     wndOK.ShowDialog();
 }
Esempio n. 2
0
 /// <summary>
 /// Нажали кнопку Поиск
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void button2_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (SalesDocument != null)
         {
             goodsSales = GetSalesByParams(textBox1.Text, textBox2.Text, textBox3.Text);
             PopulateList();
         }
     }
     catch (Exception err)
     {
         WindowAlerts wndOK = new WindowAlerts();
         wndOK.textBlock1.Text = err.Message;
         wndOK.ShowDialog();
     }
 }