mirror of
https://github.com/ShiftOS-Rewind/ShiftOS.git
synced 2025-01-23 18:22:16 +00:00
b45df71168
owow
28 lines
766 B
C#
28 lines
766 B
C#
using System;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Windows.Forms;
|
|
using ShiftOS.Engine;
|
|
using ShiftOS.Engine.WindowManager;
|
|
using ShiftOS.Main.ShiftOS.Apps;
|
|
|
|
namespace ShiftOS.Main
|
|
{
|
|
public partial class TestForm : Form
|
|
{
|
|
public TestForm()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void Button1_Click(object sender, EventArgs e)
|
|
{
|
|
ShiftDemo demo = new ShiftDemo();
|
|
ShiftWM.Init(demo, textBox1.Text, null);
|
|
ShiftWM.StartInfoboxSession(textBox1.Text, textBox2.Text, InfoboxTemplate.ButtonType.Ok);
|
|
}
|
|
|
|
private void button2_Click(object sender, EventArgs e)
|
|
=> ShiftWM.Init(new Shifter(), "Shifter", Properties.Resources.iconShifter.ToIcon());
|
|
}
|
|
}
|