Пример #1
0
 /// <summary>
 /// 定期実行処理
 /// </summary>
 private void Dispatch_Tick(object sender, EventArgs e)
 {
     se.SaveAsJsons("_tmp\\sedata");
     Json.Save("_tmp\\ctgen", Json.Get(new ConfigGeneral[] { UcConfigTab.GetGeneral() }));
     Json.Save("_tmp\\ctsol", Json.Get(new ConfigSolid[] { UcConfigTab.GetSolid() }));
     Json.Save("_tmp\\logs", Json.Get(LogGrid));
 }
Пример #2
0
 /// <summary>
 /// ワーク読み込み処理
 /// </summary>
 private void LoadWork()
 {
     se.LoadFromJsons(Json.Get("_tmp\\sedata"));
     UcConfigTab.Set(se.Gen, se.Che);
     UcConfigTab.SetGeneral(Json.GetSingle <ConfigGeneral>("_tmp\\ctgen"));
     UcConfigTab.SetSolid(Json.GetSingle <ConfigSolid>("_tmp\\ctsol"));
     LogGrid           = new ObservableCollection <LogData>(Json.GetEnumerable <LogData>("_tmp\\logs"));
     DgLog.ItemsSource = LogGrid;
 }
Пример #3
0
        private void MiOutput_Click(object sender, RoutedEventArgs e)
        {
            var send = new CheckData
            {
                Logs   = LogGrid.ToList(),
                Gens   = se.Gen,
                Ches   = se.Che,
                ConGen = UcConfigTab.GetGeneral(),
                Area1  = se.Area1,
                Area2  = se.Area2,
                ConSol = UcConfigTab.GetSolid(),
            };

            var cw = new Output(send);

            cw.ShowDialog();
        }
Пример #4
0
        private void MiAllCheck_Click(object sender, RoutedEventArgs e)
        {
            var send = new CheckData {
                Logs   = LogGrid.ToList(),
                Gens   = se.Gen,
                Ches   = se.Che,
                ConGen = UcConfigTab.GetGeneral(),
                Area1  = se.Area1,
                Area2  = se.Area2
            };

            var cw = new CheckWindow(send);

            cw.ShowDialog();

            DgLog.Items.Refresh();
        }
Пример #5
0
        private void Mi_MultiCheck(object sender, RoutedEventArgs e)
        {
            var data = ((sender as MenuItem).CommandParameter) as List <LogData>;
            var send = new CheckData {
                Logs   = data,
                Gens   = se.Gen,
                Ches   = se.Che,
                ConGen = UcConfigTab.GetGeneral(),
                Area1  = se.Area1,
                Area2  = se.Area2
            };

            var cw = new CheckWindow(send);

            cw.ShowDialog();

            DgLog.Items.Refresh();
        }
Пример #6
0
 private void MiSetting_Click(object sender, RoutedEventArgs e)
 {
     se.ShowDialog();
     UcConfigTab.Set(se.Gen, se.Che);
 }