aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Main/ShiftOS/Apps/TestForm.cs
blob: 5929a668b5e0a5a303ac854a18628418ccf80d47 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Windows.Forms;
using ShiftOS.Engine.Misc;
using ShiftOS.Engine.WindowManager;
using ShiftOS.Main.Properties;
using ShiftOS.Main.ShiftOS.Apps.ShifterStuff;

namespace ShiftOS.Main.ShiftOS.Apps
{
	public partial class TestForm : Form
	{
		public TestForm()
		{
			InitializeComponent();
		}

		void Button1_Click(object sender, EventArgs e)
		{
			var demo = new ShiftDemo();
			ShiftWm.Init(demo, textBox1.Text, null);
			ShiftWm.StartInfoboxSession(textBox1.Text, textBox2.Text, InfoboxTemplate.ButtonType.Ok);
		}

		void button2_Click(object sender, EventArgs e)
			=> ShiftWm.Init(new Shifter(), "Shifter", Resources.iconShifter.ToIcon());
	}
}