public PieChartEditorResult GetValue() { double value; bool hasResult = HasNormalResult(out value); if (hasResult) { PieChartEditorResult result = new PieChartEditorResult { Caption = captionTb.Text, Fill = colorSelector.SelectedBrush, Value = value }; return result; } else { return null; } }
public PieChartEditorResult GetValue() { double value; bool hasResult = HasNormalResult(out value); if (hasResult) { PieChartEditorResult result = new PieChartEditorResult { Caption = captionTb.Text, Fill = colorSelector.SelectedBrush, Value = value }; return(result); } else { return(null); } }