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;
			}
		}
예제 #2
0
        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);
            }
        }