Exemplo n.º 1
0
        private void Add_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            DataCommon.Remove("COMPANY_EDIT");
            PopupCompanyInsure pop = new PopupCompanyInsure();

            pop.ShowDialog();
            ReloadData();
        }
Exemplo n.º 2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         int               index = grdInsure.SelectedIndex;
         string            code  = ((DataRowView)grdInsure.SelectedItem).Row.ItemArray[0].ToString();
         InsureCompanyData item  = new InsureCompanyDAL().GetItem(code);
         DataCommon.Set("COMPANY_EDIT", item);
         PopupCompanyInsure pop = new PopupCompanyInsure();
         pop.ShowDialog();
         ReloadData();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }