コード例 #1
0
ファイル: LaunchPoll.cs プロジェクト: mrkmg/TwitchChatinator
        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);
        }
コード例 #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");
            }
        }