Beispiel #1
0
        public void DoLogin()
        {
            Util.WriteMethodInfoToConsole();
            ccdLogin Login = new ccdLogin();

            if (Login.DoLogin())
            {
                Console.WriteLine("--> Connected to DOMEA Server: " + Login.Session.HostName);
                LoginSession = Login.Session;
            }
        }
Beispiel #2
0
        public void OpenConnection()
        {
            ccdLogin login = new ccdLogin();

            if (login.DoLogin())
            {
                try
                {
                    Session    = login.Session;
                    SysSession = new SCBWflSession();
                    SysSession.ConnectServer(Session.HostName, Session.PortNo);
                    SysSession.SystemLogin(c_APP_CODE, 0);
                }
                catch (Exception ex)
                {
                    Console.WriteLine("OpenDOMEA Session: " + ex.Message);
                    System.Environment.Exit(0);
                }
            }
            else
            {
                System.Environment.Exit(0);
            }
        }