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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Drawing; | |
using System.Runtime.InteropServices; | |
using System.Threading; | |
namespace ICTest | |
{ | |
// Destination object for touch/mouse/pen gestures. |
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
class PngIconConverter | |
{ | |
/* input image with width = height is suggested to get the best result */ | |
/* png support in icon was introduced in Windows Vista */ | |
public static bool Convert(System.IO.Stream input_stream, System.IO.Stream output_stream, int size, bool keep_aspect_ratio = false) | |
{ | |
System.Drawing.Bitmap input_bit = (System.Drawing.Bitmap)System.Drawing.Bitmap.FromStream(input_stream); | |
if (input_bit != null) | |
{ | |
int width, height; |
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
using System; | |
using System.Windows.Forms; | |
namespace BunifuDragForm | |
{ | |
public partial class Form1 : Form | |
{ | |
public Form1() | |
{ | |
InitializeComponent(); |
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
Imports System | |
Imports System.Windows.Forms | |
Namespace BunifuDragForm | |
Partial Public Class Form1 | |
Inherits Form | |
Public Sub New() | |
InitializeComponent() |
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 TabsClicked(Object sender, EventArgs e) { | |
// This will firstly off reset the colors of the two Tab labels to the default inactive color. | |
BunifuCustomLabel1.ForeColor = Color.FromArgb(136, 144, 157); | |
BunifuCustomLabel2.ForeColor = Color.FromArgb(136, 144, 157); | |
// This will then set the location of the Tab indicator based on the currently clicked BunifuCustomLabel location (X coordinate). | |
tab_indicator.Location = New Point(CType(sender, Bunifu.Framework.UI.BunifuCustomLabel).Location.X, tab_indicator.Location.Y); | |
// Thereafter, we can set the width of the tab inidicator to fit the width of the BunifuCustomLabel clicked. (This is however optional) |
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 BunifuCustomLabels_Click(sender As Object, e As EventArgs) Handles BunifuCustomLabel12.Click, BunifuCustomLabel11.Click | |
' This will firstly off reset the colors of the two Tab labels to the default inactive color. | |
BunifuCustomLabel11.ForeColor = Color.FromArgb(136, 144, 157) | |
BunifuCustomLabel12.ForeColor = Color.FromArgb(136, 144, 157) | |
' This will then set the location of the Tab indicator based on the currently clicked BunifuCustomLabel location (X coordinate). | |
tab_indicator.Location = New Point(CType(sender, Bunifu.Framework.UI.BunifuCustomLabel).Location.X, tab_indicator.Location.Y) | |
' Thereafter, we can set the width of the tab inidicator to fit the width of the BunifuCustomLabel clicked. (This is however optional) |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Drawing; | |
using System.Data; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
namespace Verifications |
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 library provides us with handy features for designing our control effectively. | |
Imports System.ComponentModel | |
Public Class VerificationProcess | |
' This contains an enumerable list of the verification steps to undergo. | |
Public Enum VerificationSteps | |
None | |
First |
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 custom colors to our Area and Line charts. | |
BunifuDataViz1.colorSet.Add(Color.FromArgb(76, 131, 115)); | |
BunifuDataViz1.colorSet.Add(Color.FromArgb(116, 231, 148)); | |
// Add custom colors to our Doughnut chart. | |
BunifuDataViz2.colorSet.Add(Color.FromArgb(85, 159, 127)); | |
BunifuDataViz2.colorSet.Add(Color.FromArgb(70, 118, 126)); |
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 custom colors to our Area and Line charts. | |
BunifuDataViz1.colorSet.Add(Color.FromArgb(76, 131, 115)) | |
BunifuDataViz1.colorSet.Add(Color.FromArgb(116, 231, 148)) | |
' Add custom colors to our Doughnut chart. | |
BunifuDataViz2.colorSet.Add(Color.FromArgb(85, 159, 127)) | |
BunifuDataViz2.colorSet.Add(Color.FromArgb(70, 118, 126)) | |
BunifuDataViz2.colorSet.Add(Color.FromArgb(123, 197, 222)) |
NewerOlder