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;
			}
		}
Exemplo n.º 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);
            }
        }