-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSubsPay.cs
56 lines (48 loc) · 1.57 KB
/
SubsPay.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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Retweet_Done.Classes;
namespace Retweet_Done
{
public partial class SubsPay : UserControl
{
public SubsPay()
{
InitializeComponent();
}
private void Nextsu_Click(object sender, EventArgs e)
{
if (String.IsNullOrEmpty(nametext.Text) || String.IsNullOrWhiteSpace(banknametext.Text))
{
MessageBox.Show( "هناك حقول فارغة يرجى تعبئة جميع الحقول بمعلومات صحيحة");
}
else {
int phone =Convert.ToInt32( Loading.Phonetext);
Operations.OrderRequst(nametext.Text,Home.username,banknametext.Text, phone, dateofsend.Value,Loading.GetNistTime(),Loading.Value());
PaymentSent uc = new PaymentSent();
if (!nametext.Contains(uc))
{
this.Controls.Add(uc);
uc.Dock = DockStyle.Fill;
uc.BringToFront();
}
else { uc.BringToFront(); }
}
}
private void SubsPay_Load(object sender, EventArgs e)
{
mcodtext.Text = Loading.Value();
mcodtext.Enabled = false;
}
private void bunifuImageButton2_Click(object sender, EventArgs e)
{
Environment.Exit(0);
}
}
}