Ejemplo n.º 1
0
        private void CheckEntries()
        {
            if (accounts != null)
            {
                if (accounts.Count == 0)
                {
                    ScrollViewer.Visibility   = Visibility.Collapsed;
                    NoAccountsGrid.Visibility = Visibility.Visible;
                    Edit.Visibility           = Visibility.Collapsed;

                    mainPage.BeginAnimateAddAccount();

                    ReorderClose.Begin();
                }
                else
                {
                    ScrollViewer.Visibility   = Visibility.Visible;
                    NoAccountsGrid.Visibility = Visibility.Collapsed;
                    Edit.Visibility           = Visibility.Visible;

                    mainPage.EndAnimateAddAccount();
                }
            }

            if (SettingsManager.Get <bool>(Setting.UseCloudSynchronization))
            {
                CommandBar.Visibility = Visibility.Visible;
            }
        }
Ejemplo n.º 2
0
        private void ChangeEditState(bool inEdit)
        {
            inEditMode = inEdit;

            Codes.CanReorderItems = inEdit;

            foreach (AccountBlock accountBlock in Codes.Items.Where(c => c.GetType() == typeof(AccountBlock)))
            {
                accountBlock.InEditMode = inEdit;
            }

            if (inEdit)
            {
                ReorderOpen.Begin();
            }
            else
            {
                ReorderClose.Begin();
            }
        }