Ejemplo n.º 1
0
        private void EntityRulesForm_Load(object sender, System.EventArgs e)
        {
            if (!this.DesignMode)
            {
                if (SSEventClient != null)
                {
                    if (SSEventClient.Status == "Started")
                    {
                        SSEventClient.SubscribeToChannels(nameof(JarsRule));
                    }
                }
            }

            SetGridControl(gridControlEntityRules);
            OnRefreshDataAsync();
        }
Ejemplo n.º 2
0
 private void RibbonFormBase_Load(object sender, EventArgs e)
 {
     if (!this.DesignMode)
     {
         if (SSEventClient != null)
         {
             if (SSEventClient.Status == "Started")
             {
                 SSEventClient.SubscribeToChannels(Name);
                 SSEventClient.OnConnect    = (subscription) => AppendMetaData(subscription.Meta);
                 SSEventClient.OnCommand   += new Action <ServerEventMessage>(OnCommandEvent);
                 SSEventClient.OnReconnect += new Action(OnReconnect());
                 SSEventClient.OnUpdate    += new Action <ServerEventUpdate>(OnUpdateEvent);
                 SSEventClient.OnException += new Action <Exception>(OnExceptionEvent);
                 SSEventClient.OnMessage   += new Action <ServerEventMessage>(OnMessageEvent);
                 SSEventClient.OnCommand   += new Action <ServerEventMessage>(OnCommandEvent);
             }
         }
     }
 }