Exemple #1
0
        private void NextDoor_Click(object sender, EventArgs e)

        /***********************************************************************************************************************
        ** Handles writing the current door and seting up the next door.
        ***********************************************************************************************************************/
        {
            // in load, enable disable prev next buttons

            UpdateTheUserList();
            _ParentForm.WriteEplexUserData(_ParentForm.UserDataPathAndFile);

            int CurRow = SharedDoorUserData.DoorRowSelected;

            SharedDoorUserData.DoorRowSelected = CurRow + 1;

            SharedDoorUserData.LockSelectedPtr = SharedDoorUserData.LockListPtr[SharedDoorUserData.DoorRowSelected];

            DoorUsersForm_Load(sender, e);
        }
Exemple #2
0
        private void UpdateListViewAndWrite()
        {
            //******************************************************************************************************************
            //* Update the Listview on the dialog
            //******************************************************************************************************************
            ListViewItem selectedItem = _ParentForm.UserListView.SelectedItems[0];

            selectedItem.SubItems[0].Text = SharedUserData.num.ToString("000");
            selectedItem.SubItems[1].Text = SharedUserData.code.ToString();
            selectedItem.SubItems[2].Text = SharedUserData.name;
            selectedItem.SubItems[3].Text = SharedUserData.type;
            _ParentForm.WriteEplexUserData(_ParentForm.UserDataPathAndFile);
        }