示例#1
0
        private void Ems_Click(object sender, RoutedEventArgs e)
        {
            Emergency em = new Emergency();

            em.Show();
            GlobalUsage.GetRtClient().CallEmergency(new MessagesPack.IntIntRequest());
        }
示例#2
0
        public static void CheckEventsStatus(object sender, ElapsedEventArgs e)
        {
            var responseEm = GlobalUsage.GetRtClient().PullEmergency(new IntIntRequest {
                TeamID = GlobalUsage.CurrentUser.teamID, WorkerID = GlobalUsage.CurrentUser.workerID
            });
            var responseCo = GlobalUsage.GetRtClient().PullCoffeeBrake(new CoffeBreakRequest {
                Name = GlobalUsage.CurrentUser.name
            });

            if (responseCo.State)
            {
                var coffee = new CoffeeBreak();
                coffee.Show();
            }
            if (responseEm.State)
            {
                var emer = new Emergency();
                emer.Show();
            }
        }