Esempio n. 1
0
        private void DoRemoteOpen()
        {
            var doors = GetSelectDoors();

            if (doors.Count == 0)
            {
                WinInfoHelper.ShowInfoWindow(this, "请选择门禁!");
                return;
            }
            CtrlWaiting waiting = new CtrlWaiting(() =>
            {
                UploadPrivate.RemoteOpenDoors(doors);
            });

            waiting.Show(this);
        }
Esempio n. 2
0
        private void tsmiRemoteOpen_Click(object sender, EventArgs e)
        {
            if (_rightClick == null || _rightClick.Door == null || !(_rightClick.Door is Maticsoft.Model.SMT_DOOR_INFO))
            {
                return;
            }
            var door  = (Maticsoft.Model.SMT_DOOR_INFO)_rightClick.Door;
            var doors = new List <Maticsoft.Model.SMT_DOOR_INFO>()
            {
                door
            };

            if (doors.Count == 0)
            {
                WinInfoHelper.ShowInfoWindow(this, "请选择门禁!");
                return;
            }
            CtrlWaiting waiting = new CtrlWaiting(() =>
            {
                UploadPrivate.RemoteOpenDoors(doors);
            });

            waiting.Show(this);
        }