flighthands/flight hands/Form1.cs
2011-10-05 22:37:54 +00:00

44 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace flight_hands
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
GenInitializeComponent();
GenStartButtons();
}
private void Form1_SizeChanged(object sender, EventArgs e)
{
GenInitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (!(sender is Button))
{
return;
}
Button button = (Button)sender;
if (button.Name == "videos")
{
this.tabControl.SelectedIndex = 1;
}
if (button.Name == "lernerhandbuch")
{
this.tabControl.SelectedIndex = 2;
}
}
}
}