Skip to content

Commit

Permalink
worked on KeyInvisibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Miaam committed Feb 18, 2018
1 parent 19287d9 commit 9810bc6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ClientApp/ModernEncryption.UWP/Package.appxmanifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
<Identity Name="b1ecc622-7a1b-4a3c-8715-73e39e12c4am" Publisher="CN=ModernEncryption Team" Version="0.9.15.0" />
<Identity Name="b1ecc622-7a1b-4a3c-8715-73e39e12c4an" Publisher="CN=ModernEncryption Team" Version="0.9.15.0" />
<mp:PhoneIdentity PhoneProductId="b1ecc622-7a1b-4a3c-8715-73e39e12c4a5" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
<Properties>
<DisplayName>DontSpyUniversalWindows</DisplayName>
Expand Down
2 changes: 1 addition & 1 deletion ClientApp/ModernEncryption/Model/Channel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class Channel : IEntity
[Ignore]
public ChannelPage View => _channelView ?? (_channelView = new ChannelPage(this));

public static bool ChannelKeyVisibility { get; set; } = true;
public bool ChannelKeyVisibility { get; set; } = true;

public Channel()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public class ChannelPageViewModel : ValidationBase, INotifyPropertyChanged
public ICommand ShowKeyCommand { protected set; get; }
public Page KeyPage { get; set; }
public bool KeyVisibility { get; set; }
public bool ChannelKeyVisibility { get; }

public string Title
{
Expand Down Expand Up @@ -67,14 +66,14 @@ public ChannelPageViewModel(Channel channel)
Validate();
});

KeyVisibility = Channel.ChannelKeyVisibility;
KeyVisibility = channel.ChannelKeyVisibility;

ShowKeyCommand = new Command<object>(param =>
{
DependencyManager.AnchorPage.Children[1].Navigation.PopToRootAsync(false);
_view.Navigation.PushAsync(new KeyPage());
KeyVisibility = false;
Channel.ChannelKeyVisibility = false;
channel.ChannelKeyVisibility = false;
});
}

Expand Down

0 comments on commit 9810bc6

Please sign in to comment.