Esempio n. 1
0
        private void InitServerConnection()
        {
            m_interpreter = new PcInterpreter(new Receiver(new PcParser(), 21339), new Transmitter());

            m_interpreter.OnCaseCreated(OpenCaseWindow);
            m_interpreter.OnUpdateCases(UpdateCases);
            //Do this with dialog
            //m_interpreter.Init(1);//Tommy
            if (Properties.Settings.Default.AutoLogin && Properties.Settings.Default.LastUser != null)
            {
                m_interpreter.Init(Properties.Settings.Default.LastUser); //AndroidTest user.
            }
            else
            {
                OpenLoginWindow();
            }
            //m_interpreter.StartReceiving();
        }
Esempio n. 2
0
        private void InitServerConnection()
        {
            m_interpreter = new PcInterpreter(new Receiver(new PcParser(), 21339), new Transmitter());
            
            m_interpreter.OnCaseCreated(OpenCaseWindow);
            m_interpreter.OnUpdateCases(UpdateCases);
            //Do this with dialog
            //m_interpreter.Init(1);//Tommy 
            if (Properties.Settings.Default.AutoLogin && Properties.Settings.Default.LastUser != null)
                m_interpreter.Init(Properties.Settings.Default.LastUser); //AndroidTest user.
            else
            {
                OpenLoginWindow();
                
            }
            //m_interpreter.StartReceiving();

        }