-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
64 lines (47 loc) · 1.3 KB
/
Copy pathProgram.cs
File metadata and controls
64 lines (47 loc) · 1.3 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Client_Server_Project
{
internal class Program
{
static void Main(string[] args)
{
Client C1 = new Client();
Server s = new Server();
Client C2 = new Client();
Console.WriteLine(" select one option login or register");
string abc = Console.ReadLine();
if (abc == "login")
{
C1.Login();
}
else if (abc == "register")
{
C1.Registration();
}
else
{
Console.WriteLine("please select \"Login\" or \"register\" ");
}
Console.WriteLine("please enter \"1\"to create grp or press \"2\" to continue");
string num2 = Console.ReadLine();
if (num2 == "1")
{
s.createGrp();
}
else
{
Console.WriteLine("thankyou");
}
Console.Read();
Console.WriteLine("send msg to client");
s.Sendc1();
s.sendc2();
s.dplay();
Console.Read();
}
}
}