示例#1
0
        protected void _NewWristband(Odgovor od)
        {
            if (od.vg == Odgovor.vrstaGreska.OK)
            {
                iOK.KopirajInformacije(od.Podaci());
            }
            EventHandler <AddNewWristband> handel = endAddNewWristband;

            if (handel != null)
            {
                handel(null, new AddNewWristband(od.vg.ToString()));
            }
        }
示例#2
0
        protected void _ChangeUsersPrivilageLevel(Odgovor od)
        {
            if (od.vg == Odgovor.vrstaGreska.OK)
            {
                iOK.KopirajInformacije(od.Podaci());
            }
            EventHandler <ChangeUserPrivilageLevel> handel = endChangeUserPrivilageLevel;

            if (handel != null)
            {
                handel(null, new ChangeUserPrivilageLevel(od.vg.ToString()));
            }
        }
示例#3
0
        protected void _UnAssigneWristbandFromUser(Odgovor od)
        {
            if (od.vg == Odgovor.vrstaGreska.OK)
            {
                iOK.KopirajInformacije(od.Podaci());
            }
            EventHandler <UnAssigneWristbandFromUser> handel = endUnAssigneWristbandFromUser;

            if (handel != null)
            {
                handel(null, new UnAssigneWristbandFromUser(od.vg.ToString()));
            }
        }
示例#4
0
        protected void _WristbandChangeState(Odgovor od)
        {
            if (od.vg == Odgovor.vrstaGreska.OK)
            {
                iOK.KopirajInformacije(od.Podaci());
            }
            EventHandler <WristbandChangeState> handel = endWristbandChangeState;

            if (handel != null)
            {
                handel(null, new WristbandChangeState(od.vg.ToString()));
            }
        }
示例#5
0
        protected void _NewTransaction(Odgovor od)
        {
            if (od.vg == Odgovor.vrstaGreska.OK)
            {
                iOK.KopirajInformacije(od.Podaci());
            }
            EventHandler <Newtransaction> handel = endNewTransaction;

            if (handel != null)
            {
                handel(null, new Newtransaction(od.vg.ToString()));
            }
        }
示例#6
0
        protected void _Logout(Odgovor od)
        {
            if (od.vg == Odgovor.vrstaGreska.OK)
            {
                iOK.KopirajInformacije(od.Podaci());
            }
            EventHandler <Logout> handel = endLogout;

            if (handel != null)
            {
                handel(null, new Logout(od.vg.ToString()));
            }
        }
示例#7
0
        protected void _Register(Odgovor od)
        {
            if (od.vg == Odgovor.vrstaGreska.OK)
            {
                iOK.KopirajInformacije(od.Podaci());
            }
            EventHandler <Register> handel = endRegister;

            if (handel != null)
            {
                handel(null, new Register(od.vg.ToString()));
            }
        }
示例#8
0
        protected void _DownloadNewestVersion(Odgovor od)
        {
            byte[] file = null;
            if (od.vg == Odgovor.vrstaGreska.OK)
            {
                iOK.KopirajInformacije(od.Podaci());
                file = od.data as byte[];
            }
            EventHandler <DownloadNewestVersion> handel = endDownloadNewestVersion;

            if (handel != null)
            {
                handel(null, new DownloadNewestVersion(od.vg.ToString(), file));
            }
        }
示例#9
0
        protected void _ListUsers(Odgovor od)
        {
            object[][] objectArray = null;
            DataTable  dt          = new DataTable();

            if (od.vg == Odgovor.vrstaGreska.OK)
            {
                iOK.KopirajInformacije(od.Podaci());
                objectArray = od.data as object[][];
                dt          = ObjectArrayToDataTable(objectArray);
            }

            EventHandler <ListUsers> handel = endListUsers;

            if (handel != null)
            {
                handel(null, new ListUsers(od.vg.ToString(), dt));
            }
        }
示例#10
0
        protected void _UserPayed(Odgovor od)
        {
            Bill      objectArray = new Bill(null, 0, DateTime.Now, null);
            DataTable dt          = new DataTable();

            if (od.vg == Odgovor.vrstaGreska.OK)
            {
                iOK.KopirajInformacije(od.Podaci());
                objectArray = od.data as Bill;
                dt          = ObjectArrayToDataTable(objectArray._payedItems);
            }

            EventHandler <UserPayed> handel = endUserPayed;

            if (handel != null)
            {
                handel(od.vg.ToString(), new UserPayed(od.vg.ToString(), dt, objectArray._userPayed, objectArray._dateOfPayment));
            }
        }