예제 #1
0
        private void daemon_OnCommunicatorRuning(object sender, OCStatus state)
        {
            try
            {
                BindOCAutomationEvent();
                string textStatus = automation.GetTextStatus(automation.GetSignedInUser());

                if (textStatus != "Unknown" &&
                    textStatus != "Offline")
                {
                    notify.Connected();
                }
                else
                {
                    notify.NotConnect();
                }
            }
            catch (Exception exception)
            {
                logger.Error(exception);
            }
        }