static void HermesDevicePowerOn(object sender, HermesManager.PowerOnEventArgs e)
 {
     var id = e.Device.SerialNumber;
     ConsolePrint("Серийный номер ORDERMAN: " + id);
     e.Device.Resources.Init(@"..\..\Content\Export\Sol");
     //e.Device.Resources.Init(@"Content\Export\Sol");
     var powerOn = new PowerOn(e.Device, e.ConnectionType);
     powerOn.Show();
 }
 static void HermesDevicePowerOn(object sender, HermesManager.PowerOnEventArgs e)
 {
     e.Device.Resources.Init(@"..\..\Content\Export\Sol");
     ConsolePrint("Загружаем ресурсы из Content-Export-Sol");
     e.Device.Resources.Download(null);
     ConsolePrint("Загружены ...");
     // Append a dictionary to the device which hold's all application specific data
     e.Device.Tag = new Dictionary<AppDataElements, object>();
     var form = new FrmLogin(e.Device);
     form.Show();
 }
Пример #3
0
        static void HermesDevicePowerOn(object sender, HermesManager.PowerOnEventArgs e)
        {
            var id = e.Device.SerialNumber;
                Console.WriteLine("Серийный номер ORDERMAN: {0}", id);
                //todo заменить для внешнего использования
                e.Device.Resources.Init(@"..\..\Content\Export\Sol");
                //e.Device.Resources.Init(@"Content\Export\Sol");
                // normally this should be done in the power on form showing a progress
                Console.WriteLine("Ждите, гружу ресурсы в ORDERMAN {0}", id);
                //e.Device.Resources.Download(null);

                var form = new PowerOn(e.Device);
                form.Show();

                Console.WriteLine("Загрузка в ORDERMAN {0} завершена.", id);
        }
Пример #4
0
        public PowerOn(IHermesDevice device, HermesManager.ConnectionType connectionType)
            : base(device)
        {
            this._connectionType = connectionType;
            _device = device;

            PinNameIdOrderman user;
            if (AllUser.AllUseraList.TryGetValue(_device.SerialNumber, out user)) _dg = user.DgObject;
            else
            {
                //Logger.Info("Init DgObject for Orderman {0}", _device.SerialNumber);

                _dg = new DGobject {Device = _device, IdOrderman = _device.SerialNumber, TableReservation = false};
                lock (AllUser.AllUseraList)
                {
                    AllUser.AllUseraList.Add(_device.SerialNumber, new PinNameIdOrderman()
                                                               {
                                                                   DgObject = _dg,
                                                                   Id = _device.SerialNumber,
                                                                   Sleep = false
                                                               });
                }
            }
        }
 static void HermesDevicePowerOn(object sender, HermesManager.PowerOnEventArgs e)
 {
     var id = e.Device.SerialNumber;
     ConsolePrint("Серийный номер ORDERMAN: " + id);
     Logger.Info("Серийный номер ORDERMAN: {0}", id);
     //Logger.Fatal("Sender: {0}; ERROR: {1}", id);
     #if DEBUG
     e.Device.Resources.Init(@"..\..\Content\Export\Sol");
     #else
     e.Device.Resources.Init(@"Content\Export\Sol");
     #endif
     var powerOn = new PowerOn(e.Device, e.ConnectionType);
     powerOn.Show();
 }
Пример #6
0
 public PowerOn(IHermesDevice device, HermesManager.ConnectionType connectionType)
     : base(device)
 {
     this._connectionType = connectionType;
     //Theme = "custom";
 }