54 lines
1.5 KiB
C#
54 lines
1.5 KiB
C#
using GenesisCordonelInterface.API;
|
|
using System;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace TBF.Rig.BridgeComponents.GciBridge.UI
|
|
{
|
|
public partial class MainForm : Form
|
|
{
|
|
public MainView mainView;
|
|
public GciBridge _bridge;
|
|
|
|
public MainForm(GciBridge bridge)
|
|
{
|
|
_bridge = bridge;
|
|
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(_bridge, this);
|
|
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);
|
|
}
|
|
}
|
|
} |