SweetLib/SweetLib.Demo/MainForm.cs

31 lines
916 B
C#
Raw Normal View History

using System;
using System.Windows.Forms;
2017-10-26 19:05:06 +02:00
//using SweetLib.Utils.TaskBar;
namespace SweetLib.Demo
{
public partial class MainForm : Form
{
public MainForm()
{
InitializeComponent();
}
private void radioProgressCheckedChanged(object sender, EventArgs e)
{
var radio = (RadioButton) sender;
if(!radio.Checked)
return;
int state = Convert.ToInt32(radio.Tag);
2017-10-26 19:05:06 +02:00
/*TaskBarProgress.TaskbarStates realState = (TaskBarProgress.TaskbarStates)Convert.ToInt32(radio.Tag);
TaskBarProgress.SetState(Handle, TaskBarProgress.TaskbarStates.Indeterminate);*/
}
private void tbrTaskBarProgress_ValueChanged(object sender, EventArgs e)
{
2017-10-26 19:05:06 +02:00
//TaskBarProgress.SetValue(Handle, tbrTaskBarProgress.Value, tbrTaskBarProgress.Maximum);
}
}
}