-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using System.Collections.ObjectModel; | ||
using System; | ||
using System.Collections.ObjectModel; | ||
using System.ComponentModel; | ||
using System.Windows.Input; | ||
using ModernEncryption.Model; | ||
|
@@ -20,6 +21,8 @@ public class ChannelPageViewModel : ValidationBase, INotifyPropertyChanged | |
public ICommand ValidateMessageCommand { protected set; get; } | ||
public ICommand ShowKeyCommand { protected set; get; } | ||
public Page KeyPage { get; set; } | ||
public bool KeyVisibility { get; set; } | ||
public bool ChannelKeyVisibility { get; } | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
public string Title | ||
{ | ||
|
@@ -64,14 +67,17 @@ public ChannelPageViewModel(Channel channel) | |
Validate(); | ||
}); | ||
|
||
KeyVisibility = Channel.ChannelKeyVisibility; | ||
This comment has been minimized.
Sorry, something went wrong.
tobiasstraub
Member
|
||
|
||
ShowKeyCommand = new Command<object>(param => | ||
{ | ||
DependencyManager.AnchorPage.Children[1].Navigation.PopToRootAsync(false); | ||
_view.Navigation.PushAsync(new KeyPage()); | ||
KeyVisibility = false; | ||
Channel.ChannelKeyVisibility = false; | ||
}); | ||
} | ||
|
||
|
||
protected sealed override void AddValidations() | ||
{ | ||
_message.Validations.Add(new IsNullOrEmptyRule<string>()); | ||
|
@Miaam Wenn Du das auf static setzt, ist es losgelöst vom Objektmodell. Und kann nicht für einzelne Channels funktionieren. static muss raus