Ejemplo n.º 1
0
        private void LoadPolicies()
        {
            var master = Helpers.GetMaster(Pool);
            var action = new GetServerLocalTimeAction(master);

            action.Completed += action_Completed;
            action.RunAsync();
        }
Ejemplo n.º 2
0
        public void GetServerTime()
        {
            var master = Helpers.GetMaster(Connection);

            if (master == null)
            {
                return;
            }

            var action = new GetServerLocalTimeAction(master);

            action.Completed            += action_CompletedTimeServer;
            MainTableLayoutPanel.Visible = false;
            LoadingBox.Visible           = true;
            spinnerIcon1.StartSpinning();
            action.RunAsync();
        }