-
Notifications
You must be signed in to change notification settings - Fork 4
/
frmMain.cs
123 lines (104 loc) · 3.59 KB
/
frmMain.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
using System;
using Mobilize.WebMap.Common.Attributes;
using Mobilize.Web.Extensions;
namespace SKS
{
[Observable]
internal partial class frmMain
: Mobilize.Web.Form
{
public frmMain()
: base()
{
if ( m_vb6FormDefInstance is null )
{
if ( m_InitializingDefInstance )
{
m_vb6FormDefInstance = this;
}
else
{
try
{
//For the start-up form, the first instance created is the default instance.
if ( !(System.Reflection.Assembly.GetExecutingAssembly().EntryPoint is null) && System.Reflection.Assembly.GetExecutingAssembly().EntryPoint.DeclaringType == this.GetType() )
{
m_vb6FormDefInstance = this;
}
}
catch
{
}
}
}
//This call is required by the Windows Form Designer.
InitializeComponent();
}
private void frmMain_Activated(System.Object eventSender, System.EventArgs eventArgs)
{
if ( Stub._UpgradeHelpers.Gui.Utils.ActivateHelper.myActiveForm != eventSender )
{
Stub._UpgradeHelpers.Gui.Utils.ActivateHelper.myActiveForm = (Mobilize.Web.Form)eventSender;
}
}
//UPGRADE_WARNING: (2080) Form_Load event was upgraded to Form_Load method and has a new behavior. More Information: https://docs.mobilize.net/vbuc/ewis#2080
private void MDIForm_Load()
{
frmSplash.DefInstance.ShowDialog();
frmOrderRequest.DefInstance.Show();
}
public void mnuAbout_Click(Object eventSender, EventArgs eventArgs)
{
frmAbout.DefInstance.ShowDialog(this);
}
public void mnuAddStockManually_Click(Object eventSender, EventArgs eventArgs)
{
frmAddStockManual.DefInstance.Show();
}
public void mnuAdjustStockManually_Click(Object eventSender, EventArgs eventArgs)
{
frmAdjustStockManual.DefInstance.Show();
}
public void mnuCreateOrderReception_Click(Object eventSender, EventArgs eventArgs)
{
frmOrderReception.DefInstance.Show();
}
public void mnuCreateOrderRequest_Click(Object eventSender, EventArgs eventArgs)
{
frmOrderRequest.DefInstance.Show();
}
public void mnuCustomer_Click(Object eventSender, EventArgs eventArgs)
{
frmCustomers.DefInstance.ShowDialog();
frmCustomers.DefInstance.InitForm();
}
public void mnuExit_Click(Object eventSender, EventArgs eventArgs)
{
this.Close();
}
public void mnuOrderReceptionsApproval_Click(Object eventSender, EventArgs eventArgs)
{
frmReceptionApproval.DefInstance.Show();
}
public void mnuOrderRequestsApproval_Click(Object eventSender, EventArgs eventArgs)
{
frmRequestApproval.DefInstance.Show();
}
public void mnuProducts_Click(Object eventSender, EventArgs eventArgs)
{
frmProducts.DefInstance.ShowDialog();
}
public void mnuProviders_Click(Object eventSender, EventArgs eventArgs)
{
frmProviders.DefInstance.ShowDialog();
}
public void mnuSecurity_Click(Object eventSender, EventArgs eventArgs)
{
frmUsersManage.DefInstance.Show();
}
//UPGRADE_NOTE: (7001) The following declaration (Form_Unload) seems to be dead code More Information: https://docs.mobilize.net/vbuc/ewis#7001
//private void Form_Unload(int Cancel)
//{
//}
}
}