-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement server outputs/local playback port on iOS
- Loading branch information
Showing
6 changed files
with
355 additions
and
74 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
26 changes: 21 additions & 5 deletions
26
Sources/Stylophone.iOS/ViewControllers/SettingsViewController.designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
Sources/Stylophone.iOS/ViewControllers/SubViews/ServerOutputCell.cs
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// This file has been autogenerated from a class added in the UI designer. | ||
|
||
using System; | ||
using Stylophone.Common.Helpers; | ||
using Stylophone.Common.ViewModels; | ||
using Stylophone.iOS.Helpers; | ||
using Foundation; | ||
using UIKit; | ||
using Stylophone.Common.ViewModels.Items; | ||
|
||
namespace Stylophone.iOS.Views | ||
{ | ||
public partial class ServerOutputCell : UITableViewCell | ||
{ | ||
public ServerOutputCell (IntPtr handle) : base (handle) | ||
{ | ||
} | ||
|
||
private PropertyBinder<OutputViewModel> _propertyBinder; | ||
private OutputViewModel _outputViewModel; | ||
|
||
internal void Configure(int row, OutputViewModel outputViewModel) | ||
{ | ||
// Bind output | ||
_outputViewModel = outputViewModel; | ||
_propertyBinder?.Dispose(); | ||
_propertyBinder = new PropertyBinder<OutputViewModel>(outputViewModel); | ||
var negateBoolTransformer = NSValueTransformer.GetValueTransformer(nameof(ReverseBoolValueTransformer)); | ||
|
||
if (outputViewModel != null) | ||
{ | ||
OutputLabel.Text = outputViewModel.Name + " (" + outputViewModel.Plugin + ")"; | ||
|
||
_propertyBinder.Bind<bool>(OutputToggle, "on", nameof(outputViewModel.IsEnabled), true); | ||
} | ||
|
||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
Sources/Stylophone.iOS/ViewControllers/SubViews/ServerOutputCell.designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.