-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForm1.cs
More file actions
92 lines (82 loc) · 2.67 KB
/
Copy pathForm1.cs
File metadata and controls
92 lines (82 loc) · 2.67 KB
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
88
89
90
91
92
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DCFF
{
public partial class Form1 : Form
{
//Form app = null;
public Form1()
{
InitializeComponent();
}
private void aProposDeLapplicationToolStripMenuItem_Click(object sender, EventArgs e)
{
AboutBox ab = new AboutBox();
ab.ShowDialog();
}
private void button1_Click(object sender, EventArgs e)
{
//tabcontrol
//jc.Size = jc.Parent.Size;
//app = jc;
}
private void Form1_Load(object sender, EventArgs e)
{
/*WebClient wc = new WebClient();
try
{
string t = wc.DownloadString("https://api.matis-dev.cf/k.ok");
if(t == "oui\n")
{}
else
{
Application.Exit();
}
}catch(Exception ex)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
//Application.Exit();
}*/
}
private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
if (e.Node.Text.StartsWith("Job Creator"))
{
TabPage tabPage = new TabPage("Job Creation ID:" + (tabControl1.TabCount + 1));
jobcreation jc = new jobcreation();
jc.MdiParent = this;
jc.Parent = tabPage;
jc.FormBorderStyle = FormBorderStyle.None;
jc.Dock = DockStyle.Fill;
jc.Show();
tabControl1.TabPages.Add(tabPage);
}else if (e.Node.Text.StartsWith("Category Creator"))
{
/*TabPage tabPage = new TabPage("Category Creation ID:" + (tabControl1.TabCount + 1));
jobcreation jc = new jobcreation();
jc.MdiParent = this;
jc.Parent = tabPage;
jc.FormBorderStyle = FormBorderStyle.None;
jc.Dock = DockStyle.Fill;
jc.Show();
tabControl1.TabPages.Add(tabPage);*/
MessageBox.Show("Disponible à la prochaine mise à jour!");
}
}
/*private void Form1_SizeChanged(object sender, EventArgs e)
{
if (app != null)
{
app.Size = app.Parent.Size;
}
}*/
}
}