DisplayMagician/HeliosPlus/UIForms/MainForm.cs

64 lines
1.8 KiB
C#
Raw Normal View History

2017-02-26 19:23:31 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
2017-02-26 19:23:31 +00:00
using System.Linq;
using System.Text;
2017-02-26 19:23:31 +00:00
using System.Threading.Tasks;
using System.Windows.Forms;
using HeliosPlus.GameLibraries;
using System.Threading;
using System.Reflection;
2017-02-26 19:23:31 +00:00
namespace HeliosPlus.UIForms
2017-02-26 19:23:31 +00:00
{
public partial class MainForm : Form
2017-02-26 19:23:31 +00:00
{
public MainForm()
{
InitializeComponent();
btn_setup_display_profiles.Parent = splitContainer1.Panel1;
btn_setup_game_shortcuts.Parent = splitContainer1.Panel2;
lbl_version.Text = string.Format(lbl_version.Text, Assembly.GetExecutingAssembly().GetName().Version);
2017-02-26 19:23:31 +00:00
}
private void btn_exit_Click(object sender, EventArgs e)
2017-02-26 19:23:31 +00:00
{
Application.Exit();
}
private void pb_display_profile_Click(object sender, EventArgs e)
{
var displayProfileForm = new DisplayProfileForm();
displayProfileForm.ShowDialog(this);
2017-02-26 19:23:31 +00:00
}
private void btn_setup_display_profiles_Click(object sender, EventArgs e)
2017-02-26 19:23:31 +00:00
{
var displayProfileForm = new DisplayProfileForm();
displayProfileForm.ShowDialog(this);
2017-02-26 19:23:31 +00:00
}
private void pb_game_shortcut_Click(object sender, EventArgs e)
2017-02-26 19:23:31 +00:00
{
var shortcutForm = new ShortcutForm();
shortcutForm.ShowDialog(this);
2017-02-26 19:23:31 +00:00
}
private void btn_setup_game_shortcuts_Click(object sender, EventArgs e)
2017-02-26 19:23:31 +00:00
{
var shortcutLibraryForm = new ShortcutLibraryForm();
shortcutLibraryForm.ShowDialog(this);
2017-02-26 19:23:31 +00:00
}
private void MainForm_Load(object sender, EventArgs e)
{
// Start loading the Steam Games just after the Main form opens
SteamGame.GetAllInstalledGames();
}
2017-02-26 19:23:31 +00:00
}
}