private void cmdAddProduct_Click(object sender, RoutedEventArgs e) { MAccountDocDeposit dep = new MAccountDocDeposit(new CTable("")); dep.RatioType = "2"; vw.AddAccountDocDeposit(dep); vw.CalculateDopositTotal(); vw.IsModified = true; }