private void btnAdd_Click(object sender, RoutedEventArgs e) { bool?nullable = new RoleAddDialog().ShowDialog(); bool flag = true; if ((nullable.GetValueOrDefault() == flag ? (nullable.HasValue ? 1 : 0) : 0) == 0) { return; } this.RefreshData(); }
private void EditRole(RoleModel user) { bool?nullable = new RoleAddDialog() { RoleId = user.RoleId }.ShowDialog(); bool flag = true; if ((nullable.GetValueOrDefault() == flag ? (nullable.HasValue ? 1 : 0) : 0) == 0) { return; } this.RefreshData(); }