/* Конструктор класса */ public CUser(string name, string ip, int port, CView currUI, CUsersManager manager) { loadedColors = CColorsLoader.GetInstance(); serverPoint = new IPEndPoint(IPAddress.Parse(ip), port); listenSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); UI = currUI; usersManager = manager; userName = name; isUserConnectedToServer = false; isUserBanned = false; }
public MainWindow() { InitializeComponent(); colorsManager = CColorsLoader.GetInstance(); currentUI = new CView(this); usersManager = new CUsersManager(currentUI, rtbPublicDialog); smiles = new CSmiles(currentUI); smiles.LoadSmiles(); btnSmiles.Content = colorsManager.GetSmileDraw(btnSmiles.Width); SetAvaliabiltyOfMenuItems(); }
public CUsersManager(CView currUI, RichTextBox writingPad) { UI = currUI; mainWritingPad = writingPad; curWritingPad = mainWritingPad; curDialogInd = PUBLIC_DIALOG_INDEX; publicDialogMessagesAmo = 0; usernames = new List <string>(); usersID = new List <sbyte>(); isSelfBannedByUser = new List <bool>(); isUserBannedByMe = new List <bool>(); newMessagesAmo = new List <int>(); writingPads = new List <RichTextBox>(); }