Exemplo n.º 1
0
    private void Show(ViewState st, AccountInfo info = null)
    {
        _mainView.Hide();
        _unlockView.Hide();
        _addView.Hide();
        _setlockView.Hide();
        _settingsView.Hide();

        switch (st)
        {
        case ViewState.Add:
            _addView.Show(info);
            break;

        case ViewState.List:
            _mainView.Show();
            break;

        case ViewState.Unlock:
            _unlockView.Show();
            break;

        case ViewState.SetLock:
            _setlockView.Show();
            break;

        case ViewState.Settings:
            _settingsView.Show();
            break;
        }
    }