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();
 }
Exemplo n.º 2
0
 void DeviceIsInSync()
 {
     //Первое окно официанты/логин
     var frmLogin = new FrmLogin(this.Device);
     frmLogin.Show();
 }
Exemplo n.º 3
0
 void DeviceIsInSync()
 {
     SetStringTable();
     //Отлавливаем выключение питания
     if (_connectionType == HermesManager.ConnectionType.RADIO)
     {
         ((ISol) this._device).DeviceService.EnablePowerStateEvents();
         ((ISol) this._device).DeviceService.PowerStateChanged +=
             new EventHandler<ORDERMAN.OmanDRV.Hermes.DeviceService.PowerStateChangedEventArgs>(
                 DeviceServicePowerStateChanged);
     }
     this.Hide();
     var frmLogin = new FrmLogin(this._device);
     frmLogin.Show();
 }