private void Grid_Loaded(object sender, RoutedEventArgs e) { if (usersRow != null) { Id.Text = usersRow.Id.ToString(); Name.Text = usersRow.Name; if (usersRow.IsisDeleteNull()) { isDelete.IsChecked = false; } else { isDelete.IsChecked = usersRow.isDelete > 0; } } else { isNew = true; } }
public static void Fill(StatusJobDBDataSet.UsersRow row) { Id = row.Id; Name = row.Name; isDelete = row.IsisDeleteNull() ? false : row.isDelete > 0; }