-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrmCompleted.cs
75 lines (66 loc) · 2.04 KB
/
frmCompleted.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
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;
using ATMApp.BL;
namespace ATMApp
{
public partial class frmCompleted : Form
{
private static int CloseIndicator = 0;
public frmCompleted()
{
InitializeComponent();
}
private void frmCompleted_Load(object sender, EventArgs e)
{
}
private void imgNo_Click(object sender, EventArgs e)
{
CloseIndicator = 1;
CommunicationRef.CommunicationService objService = new CommunicationRef.CommunicationService();
//clCommonBL objService = new clCommonBL();
if (ATMApp.frmCustomLogin.ClassValue.OtherBankTransactionInd > 0)
{
int Returncode= objService.MonthlyMaintainanceCharges(ATMApp.frmCustomLogin.ClassValue.UserName.ToString(), ATMApp.frmCustomLogin.ClassValue.Password.ToString(), Convert.ToInt32(ATMApp.frmCustomLogin.ClassValue.AtmPin));
}
this.Close();
//comment for the time being
// CallCashReciept();
}
private void imgYes_Click(object sender, EventArgs e)
{
CallUpdatePIN();
}
private void CallCashReciept()
{
this.Hide();
frmCashReciept updatepin = new frmCashReciept();
updatepin.ShowDialog();
this.Close();
}
private void CallUpdatePIN()
{
this.Hide();
frmOptions updatepin = new frmOptions();
updatepin.ShowDialog();
this.Close();
}
private void frmCompleted_FormClosing(object sender, FormClosingEventArgs e)
{
if (CloseIndicator == 1)
{
e.Cancel = false;
}
else
{
//preventing the user from closing the form
e.Cancel = true;
}
}
}
}