private async void CancelMethod()
        {
            MenuButtonsEnabled mbe = new MenuButtonsEnabled();

            mbe.modifier = false;
            await mbe.LoadItem(GlobalVM.StockLayout.usersTBI);
        }
Пример #2
0
        protected internal async void OkMethod(bool registrate)
        {
            GlobalVM.GlobalM.AccountID = null;
            GlobalVM.GlobalM.UserID    = null;
            GlobalVM.GlobalM.CompanyId = null;
            GlobalVM.GlobalM.Secure    = false;
            priviledges pr = new priviledges();

            foreach (PropertyInfo value in pr.GetType().GetProperties())
            {
                if (value.PropertyType == typeof(bool))
                {
                    pr.GetType().GetProperty(value.Name, BindingFlags.Instance | BindingFlags.Public |
                                             BindingFlags.NonPublic).SetValue(pr, false);
                }
            }

            MenuButtonsEnabled mbe = new MenuButtonsEnabled(pr);

            mbe.SingleChange(GlobalVM.StockLayout.usersTBI, Visibility.Visible);
            mbe.SingleChange(GlobalVM.StockLayout.helpTBI, Visibility.Visible);
            if (registrate)
            {
                mbe.modifier = false;
                await mbe.LoadItem(GlobalVM.StockLayout.usersTBI);
            }
            else
            {
                mbe.LoadFirst();
            }
            await Loading.Hide();
        }
        private void MenuItemChanger(bool visible)
        {
            MenuButtonsEnabled mbe = new MenuButtonsEnabled();

            mbe.ChangeEnable(GlobalVM.StockLayout.examinationTBI, visible);
            mbe.ChangeEnable(GlobalVM.StockLayout.labTBI, visible);
            mbe.ChangeEnable(GlobalVM.StockLayout.evidenceTBI, visible);
            mbe.ChangeEnable(GlobalVM.StockLayout.prescriptionTBI, visible);
            mbe.ChangeEnable(GlobalVM.StockLayout.billingTBI, visible);
        }
Пример #4
0
        private async void SecurityEnter()
        {
            MenuButtonsEnabled mbe = new MenuButtonsEnabled();

            mbe.SingleChange(GlobalVM.StockLayout.usersTBI, Visibility.Collapsed);
            mbe.SingleChange(GlobalVM.StockLayout.settingsTBI, Visibility.Visible);
            mbe.SingleChange(GlobalVM.StockLayout.logoutTBI, Visibility.Visible);
            GlobalVM.GlobalM.Secure = true;
            await mbe.LoadItem(GlobalVM.StockLayout.settingsTBI);

            await Utilities.Loading.Hide();
        }
 private async void OkMethod()
 {
     MenuButtonsEnabled mbe = new MenuButtonsEnabled();
     await mbe.LoadItem(GlobalVM.StockLayout.usersTBI);
 }