Exemplo n.º 1
0
        // 알람
        private void alarm(string data)
        {
            string name    = data.Split('&')[0];
            string message = data.Split('&')[1];

            App.Current.Dispatcher.Invoke((Action) delegate
            {
                AlarmView alarmView = new AlarmView(name, message);
                alarmView.Topmost   = true;
                alarmView.Show();
            });
        }
Exemplo n.º 2
0
        public void Process(string listFile)
        {
            alarmList = new List <AlarmInfo>();
            // List作成
            var list = Utils.Utils.GetOrderList(listFile);

            if (list == null)
            {
                alarmList.Add(new AlarmInfo()
                {
                    Time   = DateTime.Now,
                    Result = "リストの作成に失敗しました"
                });

                var alarmView = new AlarmView(alarmList);
                alarmView.Topmost = true;
                alarmView.Show();
                return;
            }

            // ブランクマップ作成処理
            foreach (var order in list)
            {
                CreateMap(order);
            }

            if (alarmList.Count > 0)
            {
                var alarmView = new AlarmView(alarmList);
                alarmView.Topmost = true;
                alarmView.Show();
            }

            /*
             * if (WindowManager.IsOpenWindow<AlarmView>() == false)
             * {
             *  Application.Current.Shutdown();
             * }
             */
        }