35 lines
1.0 KiB
C#
35 lines
1.0 KiB
C#
using trakker.Forms;
|
|
|
|
namespace trakker
|
|
{
|
|
public partial class MainForm : Form
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="MainForm"/> class.
|
|
/// Sets up the form's controls and event handlers by calling
|
|
/// <see cref="InitializeComponent"/> which is generated by the designer.
|
|
/// </summary>
|
|
public MainForm()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Handles the Click event of the Exit menu item. When invoked, this
|
|
/// method terminates the application.
|
|
/// </summary>
|
|
/// <param name="sender">The source of the event.</param>
|
|
/// <param name="e">Event data associated with the click event.</param>
|
|
private void MainForm_Exit_MenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
Application.Exit();
|
|
}
|
|
|
|
private void button1_Click(object sender, EventArgs e)
|
|
{
|
|
var dialog = new ClientForm();
|
|
dialog.ShowDialog();
|
|
}
|
|
}
|
|
}
|