This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
fFirstStartup.cs
87 lines (74 loc) · 2.13 KB
/
fFirstStartup.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
using meautosd.Properties;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace meautosd
{
public partial class fFirstStartup : Form
{
public fFirstStartup()
{
InitializeComponent();
btOK.Enabled = false;
}
private void fFirstStartup_Load(object sender, EventArgs e)
{
try
{
rtbChangelogs.Text = cUpdate.getOnelineFile(cConst.changelogsFileURL);
}
catch {}
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://www.reddit.com/r/PushBullet/comments/2m2pui/c_implementation_for_those_that_find_it_handy/");
}
private void fFirstStartup_FormClosing(object sender, FormClosingEventArgs e)
{
if (!cbAccept.Checked)
Application.Exit();
else
Settings.Default.firstStartup = true;
}
private void cbAccept_CheckedChanged(object sender, EventArgs e)
{
if (cbAccept.Checked)
btOK.Enabled = true;
else
btOK.Enabled = false;
}
private void btOK_Click(object sender, EventArgs e)
{
this.Close();
}
private void label1_Click(object sender, EventArgs e)
{
}
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://cscore.codeplex.com/");
}
}
}
class CustomTabControl : TabControl
{
private const int TCM_ADJUSTRECT = 0x1328;
protected override void WndProc(ref Message m)
{
// Hide the tab headers at run-time
if (m.Msg == TCM_ADJUSTRECT)
{
m.Result = (IntPtr)1;
return;
}
// call the base class implementation
base.WndProc(ref m);
}
}