Esempio n. 1
0
 protected override void OnInitialized()
 {
     base.OnInitialized();
     WebApiOperate.StatiCargoInfoModels = WebApiOperate.GetAllCargoInfoModels().Result;
     WebApiOperate.StatiCargosGroups    = WebApiOperate.GetAllGroup().Result;
     WebApiOperate.StatiCargosUnits     = WebApiOperate.GetAllUnit().Result;
     Cargos = GetCollection().Result;
     s1     = "6666";
 }
Esempio n. 2
0
        private void App_OnStartup(object sender, StartupEventArgs e)
        {
            Scan.GetSerialPort("COM5");
            Scan.OpenPort();
            WebApiOperate.StatiCargoInfoModels = WebApiOperate.GetAllCargoInfoModels().Result;
            WebApiOperate.StatiCargosGroups    = WebApiOperate.GetAllGroup().Result;
            WebApiOperate.StatiCargosUnits     = WebApiOperate.GetAllUnit().Result;
            var Win = MainWin.View.MainWindow.GetInstance();

            WindowsStatus.MainWindowOpen = true;
            Win.Show();
        }