This repository has been archived on 2024-08-06. You can view files and clone it, but cannot push or open issues or pull requests.
linear-app-launcher/MainForm.cs
2020-03-30 11:48:24 +01:00

76 lines
1.7 KiB
C#

using AppLauncher.Windows.Forms;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace AppLauncher
{
public partial class MainForm : AForm
{
public MainForm() : base()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (this.Width > 40)
{
while (this.Width > 40)
{
this.Width -= 6;
Application.DoEvents();
}
}
else
{
while (this.Width < 800)
{
this.Width += 8;
Application.DoEvents();
}
}
}
private void button2_Click(object sender, EventArgs e)
{
ProcessStartInfo process = new ProcessStartInfo();
process.FileName = @"C:\B\Portable Files (pure)\Build and Deploy Utility\v0.2.0.046 alpha\badutil.exe";
process.Verb = "runas";
Process.Start(process);
}
//private void Form1_MouseDown(object sender, MouseEventArgs e)
//{
// const int WM_NCLBUTTONDOWN = 0xA1;
// const int HT_CAPTION = 0x2;
// this.Capture = false;
// Message msg = Message.Create(this.Handle, WM_NCLBUTTONDOWN, (IntPtr)HT_CAPTION, IntPtr.Zero);
// WndProc(ref msg);
//}
}
}