private void btnAdd_Click(object sender, RoutedEventArgs e) { bool?nullable = new SystemParamAddDialog(new ProductDetailDto(), true).ShowDialog(); bool flag = true; if ((nullable.GetValueOrDefault() == flag ? (nullable.HasValue ? 1 : 0) : 0) == 0) { return; } this.RefreshData(textBox.Text); }
private void EditSystemParam(ProductDetailDto model) { bool?nullable = new SystemParamAddDialog(model, false) { }.ShowDialog(); bool flag = true; if ((nullable.GetValueOrDefault() == flag ? (nullable.HasValue ? 1 : 0) : 0) == 0) { return; } this.RefreshData(textBox.Text); }