This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub MoveIndicator(ByVal sender As Object) | |
' Convert the object clicked to a label for easier access to its properties. | |
Dim clicked_label As Bunifu.Framework.UI.BunifuCustomLabel = CType(sender, Bunifu.Framework.UI.BunifuCustomLabel) | |
' Set the location of the separator (horizontally) to be below the clicked label. | |
BunifuSeparator1.Location = New Point(clicked_label.Location.X, BunifuSeparator4.Location.Y) | |
' Set the width of the separator to be equal to the clicked label's width. | |
BunifuSeparator1.Width = clicked_label.Width |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub GenerateSpline() | |
' Create a new canvas for rendering our chart. | |
Dim canvas1 As New Canvas | |
' Create the first spline chart datapoints-set. | |
Dim datapoint_1 As New DataPoint(BunifuDataViz._type.Bunifu_spline) | |
' Add all the datapoints for the first spline chart. | |
datapoint_1.addLabely("", "27") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub Dashboard_Load(sender As Object, e As EventArgs) Handles MyBase.Load | |
' 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)) | |
End Sub | |
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void GenerateSpline() | |
{ | |
// Create a new canvas for rendering our chart. | |
Canvas canvas1 = new Canvas(); | |
// Create the first spline chart datapoints-set. | |
DataPoint datapoint_1 = new DataPoint(BunifuDataViz._type.Bunifu_spline); | |
// Add all the datapoints for the first spline chart. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void MoveIndicator(object sender) | |
{ | |
// Convert the object clicked to a label for easier access to its properties. | |
Bunifu.Framework.UI.BunifuCustomLabel clicked_label = (Bunifu.Framework.UI.BunifuCustomLabel)sender; | |
// Set the location of the separator (horizontally) to be below the clicked label. | |
BunifuSeparator.Location = new Point(clicked_label.Location.X, BunifuSeparator4.Location.Y); | |
// Set the width of the separator to be equal to the clicked label's width. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Custom TaskItem Class. | |
Public Class TaskItem | |
' This adds a new TaskItem control. | |
Public Sub Add(ByVal task_label As TaskLabels, ByVal show_separator As Boolean, ByVal task_subject As String, ByVal task_title As String, ByVal task_subtitle As String) | |
' Set the texts for the three Task values. | |
subject.Text = task_subject | |
title.Text = task_title | |
subtitle.Text = task_subtitle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Custom TaskItem Class. | |
public class TaskItem | |
{ | |
// This adds a new TaskItem control. | |
public void Add(TaskLabels task_label, bool show_separator, string task_subject, string task_title, string task_subtitle) | |
{ | |
// Set the texts for the three Task values. | |
subject.Text = task_subject; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' This adds a new TaskItem inside our task-list panel section. | |
Sub AddTask(ByVal task_label As TaskItem.TaskLabels, ByVal show_separator As Boolean, ByVal task_subject As String, ByVal task_title As String, ByVal task_subtitle As String) | |
' Create a new TaskItem and set the required parameters with the "Add" method. | |
Dim task_item As New TaskItem | |
task_item.Add(task_label, show_separator, task_subject, task_title, task_subtitle) | |
' Then set the TaskItem's Dock property to "Top". | |
task_item.Dock = DockStyle.Top |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This adds a new TaskItem inside our task-list panel section. | |
public void AddTask(TaskItem.TaskLabels task_label, bool show_separator, string task_subject, string task_title, string task_subtitle) | |
{ | |
// Create a new TaskItem and set the required parameters with the "Add" method. | |
TaskItem task_item = new TaskItem(); | |
task_item.Add(task_label, show_separator, task_subject, task_title, task_subtitle); | |
// Then set the TaskItem's Dock property to "Top". | |
task_item.Dock = DockStyle.Top; |
OlderNewer