Пример #1
0
        void ClickAccountPanel()
        {
            AccountData          = data.Information(); //прием ID_Account,Name
            headerCache.NameText = AccountData[1];

            OnPropertyChange(headerCache.NameText);
            OnPropertyChange(headerCache.Name);


            IsAccountEnter = data.FunctionIsAccountEnter(); //проверка состояния аккаунта

            if (IsAccountEnter == false)
            {
                if (AccountFlipper.Visibility == Visibility.Collapsed)
                {
                    AccountFlipper.Visibility = Visibility.Visible;
                }
                else
                {
                    AccountFlipper.Visibility = Visibility.Collapsed;
                }
                AccountMenu.Visibility = Visibility.Collapsed;
            }
            else
            {
                AccountFlipper.Visibility = Visibility.Collapsed;
                if (AccountMenu.Visibility == Visibility.Collapsed)
                {
                    AccountMenu.Visibility = Visibility.Visible;
                }
                else
                {
                    AccountMenu.Visibility = Visibility.Collapsed;
                }
            }
        }
Пример #2
0
 private void ExecuteMethod(object parameter)
 {
     data.FunctionIsAccountEnter(false);
 }