Beispiel #1
0
        private void NewPieButton_Click(object sender, EventArgs e)
        {
            var result = InputBox.Show("Name:", "New Pie Graph", "", PieGraphOptions.ValidateNameHandler);

            if (result.Ok)
            {
                //TODO: Add Exception Control
                PieGraphOptions.CreateNew(result.Text);
            }
            PopulateList();
            EditPieGraph(result.Text);
        }
Beispiel #2
0
        private static void CreateDefaultTypes()
        {
            if (BarGraphOptions.GetAvaliable().Count == 0)
            {
                BarGraphOptions.CreateNew("Default");
            }

            if (PieGraphOptions.GetAvaliable().Count == 0)
            {
                PieGraphOptions.CreateNew("Default");
            }

            if (GiveawayOptions.GetAvaliable().Count == 0)
            {
                GiveawayOptions.CreateNew("Default");
            }
        }