Skip to content

Instantly share code, notes, and snippets.

@Willy-Kimura
Last active November 7, 2017 06:08
Show Gist options
  • Save Willy-Kimura/ca002989626624ce51bf94b39e9ae1ff to your computer and use it in GitHub Desktop.
Save Willy-Kimura/ca002989626624ce51bf94b39e9ae1ff to your computer and use it in GitHub Desktop.
Timer method for running the "GenerateSpline" method.
private void Dashboard_Load(object sender, EventArgs e)
{
// Add a colorset for beautifying our charts.
BunifuDataViz1.colorSet.Add(Color.FromArgb(60, 158, 241));
BunifuDataViz1.colorSet.Add(Color.FromArgb(39, 180, 109));
BunifuDataViz1.colorSet.Add(Color.FromArgb(255, 60, 49));
}
private void Timer1_Tick(object sender, EventArgs e)
{
// After the set number of milliseconds, stop the timer.
Timer1.Stop();
// Then run the method.
GenerateSpline();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment