Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Client_ServerChat
- {
- class Program
- {
- static void Main(string[] args)
- {
- String opcja = "";
- while(true)
- {
- Console.WriteLine("Wybierz tryb:");
- Console.WriteLine("1 - Klient");
- Console.WriteLine("2 - Server");
- Console.Write("Wybór: ");
- opcja = Console.ReadLine();
- if(opcja == "1")
- { Console.Clear(); Klient(); break; }
- else if (opcja == "2")
- { Console.Clear(); Server(); break; }
- else
- { Console.WriteLine("Nie rozpoznano polecenia!"); Console.WriteLine(); }
- }
- }
- public static void Klient()
- {
- Klient client = new Klient();
- }
- public static void Server()
- {
- Server server = new Server();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement