51 lines
1.3 KiB
C#
51 lines
1.3 KiB
C#
using System;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace GenesisCordonelInterface.UI
|
|
{
|
|
public partial class MainForm : Form
|
|
{
|
|
private MainView mainView;
|
|
|
|
public MainForm()
|
|
{
|
|
InitializeComponent();
|
|
|
|
StartPosition = FormStartPosition.Manual;
|
|
Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - Width, 0);
|
|
|
|
StartPosition = FormStartPosition.CenterScreen;
|
|
WindowState = FormWindowState.Maximized;
|
|
}
|
|
|
|
private void MainForm_Load(object sender, EventArgs e)
|
|
{
|
|
mainView = new MainView();
|
|
mainView.Dock = DockStyle.Fill;
|
|
Controls.Add(mainView);
|
|
mainView.BringToFront();
|
|
this.WindowState = FormWindowState.Maximized;
|
|
}
|
|
|
|
private void miExit_Click(object sender, EventArgs e)
|
|
{
|
|
Close();
|
|
}
|
|
|
|
private void miClearLog_Click(object sender, EventArgs e)
|
|
{
|
|
if (mainView != null)
|
|
mainView.ClearLog();
|
|
}
|
|
|
|
private void miHelpAbout_Click(object sender, EventArgs e)
|
|
{
|
|
MessageBox.Show(
|
|
"Genesis Cordonel Tester",
|
|
"About",
|
|
MessageBoxButtons.OK,
|
|
MessageBoxIcon.Information);
|
|
}
|
|
}
|
|
} |