-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BinderWindow.cs
59 lines (48 loc) · 1.34 KB
/
BinderWindow.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using Binder.Tabs;
using System;
using System.Windows.Forms;
namespace Binder
{
public partial class BinderWindow : Form
{
private static BinderWindow instance;
public static BinderWindow Instance
{
get
{
if (instance == null || instance.IsDisposed)
{
instance = new BinderWindow();
}
return instance;
}
}
public BinderWindow()
{
InitializeComponent();
var settingsTab = new SettingsTab();
instance = this;
this.TopMost = Properties.Settings.Default.AlwaysOnTop;
}
private void homebutton_Click(object sender, EventArgs e)
{
tabs.SelectedTab = hometab;
}
private void settingsbutton_Click(object sender, EventArgs e)
{
tabs.SelectedTab = settingstab;
}
private void aboutbutton_Click(object sender, EventArgs e)
{
tabs.SelectedTab = abouttab;
}
private void appbar_Click(object sender, EventArgs e)
{
appbar.Focus();
}
private void BinderWindow_FormClosing(object sender, FormClosingEventArgs e)
{
Properties.Settings.Default.Save();
}
}
}