Skip to content

Commit

Permalink
more wip changes
Browse files Browse the repository at this point in the history
  • Loading branch information
doubleyewdee committed Nov 13, 2018
1 parent 11dd8d4 commit fe9f097
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/condo/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,12 @@ public MainPage()
this.InitializeComponent();

this.Loaded += this.OnLoaded;

this.console = TerminalManager.Instance.GetOrCreate(0, "ping -t localhost");
this.characters = new ConsoleBuffer.Character[this.console.Height, this.console.Width];
//System.Diagnostics.Debugger.Launch();
}

private void UpdateContents(object sender, PropertyChangedEventArgs args)
{
this.console.Buffer.Render(this);
this.Dispatcher.TryRunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => this.Redraw());
//this.console.Buffer.Render(this);
//this.Dispatcher.TryRunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => this.Redraw());
}

private Size DetermineSize()
Expand All @@ -43,10 +39,15 @@ private Size DetermineSize()

private void OnLoaded(object sender, RoutedEventArgs e)
{
this.console = TerminalManager.Instance.GetOrCreate(0, "ping -t localhost");
this.characters = new ConsoleBuffer.Character[this.console.Height, this.console.Width];
//System.Diagnostics.Debugger.Launch();

var stuffSize = this.DetermineSize();
this.stuff.Height = stuffSize.Height;
this.stuff.Width = stuffSize.Width;
this.console.PropertyChanged += this.UpdateContents;
this.stuff.Text = "28721398283";
}

private void Redraw()
Expand Down
4 changes: 4 additions & 0 deletions src/condo/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
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"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10"
IgnorableNamespaces="uap mp">

<Identity
Expand Down Expand Up @@ -45,5 +47,7 @@

<Capabilities>
<Capability Name="internetClient" />
<rescap:Capability Name="runFullTrust" />
<rescap:Capability Name="confirmAppClose" />
</Capabilities>
</Package>

0 comments on commit fe9f097

Please sign in to comment.