private void btnAdd_Click(object sender, RoutedEventArgs e) { //TODO: bool?nullable = new ProductParamAddDialog(new ProductDto(), true).ShowDialog(); bool flag = true; if ((nullable.GetValueOrDefault() == flag ? (nullable.HasValue ? 1 : 0) : 0) == 0) { return; } this.RefreshData(textBox.Text); }
private void EditProductParam(ProductDto productDto) { // bool? nullable = new ProductParamAddDialog() { ITEM_CD = productParam.ITEM_CD }.ShowDialog(); bool?nullable = new ProductParamAddDialog(productDto, false).ShowDialog(); bool flag = true; if ((nullable.GetValueOrDefault() == flag ? (nullable.HasValue ? 1 : 0) : 0) == 0) { return; } this.RefreshData(textBox.Text); }