public MainWindow()
 {
     IniReader ireader = new IniReader();
     try
     {
         InitializeComponent();
         client = new StartClient(this, panel1, panel2);
         client.start(IP_ADRES, nasluch, tsslInfo, btnLoguj);
         tcpclnt = client.retClient();
         tmode = new TextMode();
         mess = new NewMessage();
         log = new Log();
         ibox = new InfoBox();
         ntmess = new NewTextMessage();
         packetSwitch = new PacketSwitcher();
         player.SoundLocation = "sound.wav";
         ireader.loadFromIni(tbLogin, tbHaslo, cbZapamietaj);
         lblWersja.Content = "2105";
         wersja = lblWersja.Content.ToString();
         panel = new HidePanel(this, panel1, panel2);
         panel.hide(false);
     }
     catch (Exception e)
     {
         log.nextLog();
         log.write(e.ToString());
     }
 }
示例#2
0
 public Packets(Label tssl, MainWindow c,  Dictionary<string, dynamic> val, String ver)
 {
     ibox = new InfoBox();
     tsslInfo = tssl;
     con = c;
     values = val;
     wersja = ver;
 }
示例#3
0
 public Loader(MainWindow c, TcpClient tcpc, Stream stm, Label tssl)
 {
     ibox = new InfoBox();
     log = new Log();
     con = c;
     tcpclnt = tcpc;
     stream = stm;
     tsslInfo = tssl;
 }