Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RicoPsych committed Mar 24, 2023
1 parent 4bbc01a commit f276797
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 296 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
[Rr]elease/
x64/
[Bb]in/
[Oo]bj/
#[Oo]bj/

# MSTest test Results
[Tt]est[Rr]esult*/
Expand Down
Binary file modified .vs/CommunicatorWPF/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
9 changes: 9 additions & 0 deletions App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Application x:Class="CommunicatorWPF.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:CommunicatorWPF"
StartupUri="MainWindow.xaml">
<Application.Resources>

</Application.Resources>
</Application>
17 changes: 17 additions & 0 deletions App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace CommunicatorWPF
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
7 changes: 7 additions & 0 deletions Communicator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ class Communicator

Thread listener = null;

Thread key_listener;

Thread msg_listener;

public Communicator()
{
port_listen = 10000;
Expand Down Expand Up @@ -112,6 +116,9 @@ public void Send(Frame data)

//old
//stream.Write(data, 0, data.Length);



}
catch (ArgumentNullException e)
{
Expand Down
6 changes: 5 additions & 1 deletion CommunicatorWPF.csproj.user
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
<ItemGroup />
<ItemGroup>
<ApplicationDefinition Update="App.xaml">
<SubType>Designer</SubType>
</ApplicationDefinition>
</ItemGroup>
<ItemGroup>
<Page Update="MainWindow.xaml">
<SubType>Designer</SubType>
Expand Down
1 change: 0 additions & 1 deletion MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ private void SenderPortChange(object sender, TextChangedEventArgs e)

private void StatusBarUpdater(object source, ElapsedEventArgs e)
{

Dispatcher.Invoke(() =>
{
if (communicator.listening == 1)
Expand Down
20 changes: 0 additions & 20 deletions obj/Debug/net5.0-windows/CommunicatorWPF_MarkupCompile.i.cache

This file was deleted.

273 changes: 0 additions & 273 deletions obj/Debug/net5.0-windows/MainWindow.g.i.cs

This file was deleted.

0 comments on commit f276797

Please sign in to comment.