private void BtnUpdateComplete_Click(object sender, RoutedEventArgs e) { if (tb_AccountType.IsSelected) { at.CompleteUpdate(); } else if (tb_AccountSubType.IsSelected) { ast.CompleteUpdate(); } else if (tb_AccountSubTypeCategory.IsSelected) { astc.CompleteUpdate(); } else if (Tb_ProfitLostType.IsSelected) { plt.CompleteUpdate(); } else if (Tb_SpecialAccountType.IsSelected) { sat.CompleteUpdate(); } }