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();
        }
예제 #3
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);
 }