Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions WhackerLinkConsoleV2/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Configuration;
using System.Data;
using System.Windows;
using WhackerLinkLib.Models.Radio;

namespace WhackerLinkConsoleV2
{
Expand All @@ -9,6 +10,20 @@ namespace WhackerLinkConsoleV2
/// </summary>
public partial class App : Application
{
public Codeplug Codeplug { get; set; }

[System.Runtime.InteropServices.DllImport("kernel32.dll")]
private static extern bool AllocConsole();

public App()
{
//AllocConsole();
//Console.WriteLine($"Debug: {Codeplug}");
//if (Codeplug.Systems[0].debug)
//{
// Console.WriteLine("Hello, world!");
//}
}
}

}
Binary file added WhackerLinkConsoleV2/Assets/dualpage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added WhackerLinkConsoleV2/Assets/pager.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions WhackerLinkConsoleV2/ChannelBox.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ private async void PTTButton_Click(object sender, RoutedEventArgs e)
private void PageSelectButton_Click(object sender, RoutedEventArgs e)
{
if (!IsSelected) return;


PageState = !PageState;
PageButtonClicked.Invoke(sender, this);
Expand Down Expand Up @@ -336,5 +337,10 @@ private void PttButton_MouseLeave(object sender, System.Windows.Input.MouseEvent

((Button)sender).Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FFDDDDDD"));
}

private void SetPageState(bool state)
{
PageState = state;
}
}
}
279 changes: 113 additions & 166 deletions WhackerLinkConsoleV2/MainWindow.xaml

Large diffs are not rendered by default.

Loading