Update README and prevent PacketTracer from opening without active connection.
This commit is contained in:
Родитель
d724f6f6ff
Коммит
775be4bafd
|
@ -173,6 +173,12 @@ namespace Jacdac.Explorer
|
|||
|
||||
private void packetTracerToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (transport == null)
|
||||
{
|
||||
MessageBox.Show("No device connected");
|
||||
return;
|
||||
}
|
||||
|
||||
var pt = new PacketTracer(transport);
|
||||
pt.Show();
|
||||
}
|
||||
|
|
|
@ -38,6 +38,7 @@ namespace Jacdac.Explorer
|
|||
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.clearToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.listView = new System.Windows.Forms.ListView();
|
||||
this.columnHeader5 = new System.Windows.Forms.ColumnHeader();
|
||||
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
|
||||
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
|
||||
this.columnHeader8 = new System.Windows.Forms.ColumnHeader();
|
||||
|
@ -45,7 +46,6 @@ namespace Jacdac.Explorer
|
|||
this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
|
||||
this.columnHeader6 = new System.Windows.Forms.ColumnHeader();
|
||||
this.columnHeader7 = new System.Windows.Forms.ColumnHeader();
|
||||
this.columnHeader5 = new System.Windows.Forms.ColumnHeader();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
|
@ -95,20 +95,22 @@ namespace Jacdac.Explorer
|
|||
//
|
||||
// autoscrollToolStripMenuItem
|
||||
//
|
||||
this.autoscrollToolStripMenuItem.Checked = true;
|
||||
this.autoscrollToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.autoscrollToolStripMenuItem.Name = "autoscrollToolStripMenuItem";
|
||||
this.autoscrollToolStripMenuItem.Size = new System.Drawing.Size(128, 22);
|
||||
this.autoscrollToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.autoscrollToolStripMenuItem.Text = "Autoscroll";
|
||||
this.autoscrollToolStripMenuItem.Click += new System.EventHandler(this.autoscrollToolStripMenuItem_Click);
|
||||
//
|
||||
// toolStripMenuItem2
|
||||
//
|
||||
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
|
||||
this.toolStripMenuItem2.Size = new System.Drawing.Size(125, 6);
|
||||
this.toolStripMenuItem2.Size = new System.Drawing.Size(177, 6);
|
||||
//
|
||||
// clearToolStripMenuItem
|
||||
//
|
||||
this.clearToolStripMenuItem.Name = "clearToolStripMenuItem";
|
||||
this.clearToolStripMenuItem.Size = new System.Drawing.Size(128, 22);
|
||||
this.clearToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.clearToolStripMenuItem.Text = "Clear";
|
||||
this.clearToolStripMenuItem.Click += new System.EventHandler(this.clearToolStripMenuItem_Click);
|
||||
//
|
||||
|
@ -132,6 +134,11 @@ namespace Jacdac.Explorer
|
|||
this.listView.UseCompatibleStateImageBehavior = false;
|
||||
this.listView.View = System.Windows.Forms.View.Details;
|
||||
//
|
||||
// columnHeader5
|
||||
//
|
||||
this.columnHeader5.Text = "Time";
|
||||
this.columnHeader5.Width = 120;
|
||||
//
|
||||
// columnHeader1
|
||||
//
|
||||
this.columnHeader1.Text = "Dir";
|
||||
|
@ -165,11 +172,6 @@ namespace Jacdac.Explorer
|
|||
this.columnHeader7.Text = "Payload";
|
||||
this.columnHeader7.Width = 180;
|
||||
//
|
||||
// columnHeader5
|
||||
//
|
||||
this.columnHeader5.Text = "Time";
|
||||
this.columnHeader5.Width = 120;
|
||||
//
|
||||
// PacketTracer
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||
|
|
|
@ -5,7 +5,12 @@ VisualStudioVersion = 16.0.31515.178
|
|||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Jacdac", "Jacdac\Jacdac.csproj", "{F6DB89ED-1C71-481F-AAE2-1A3D4563743C}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jacdac.Explorer", "Jacdac.Explorer\Jacdac.Explorer.csproj", "{D736AFDA-90FA-472E-AD8E-40E81EBD06B1}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Jacdac.Explorer", "Jacdac.Explorer\Jacdac.Explorer.csproj", "{D736AFDA-90FA-472E-AD8E-40E81EBD06B1}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{BF5CADE3-4BFB-4BEC-A09A-6D40110ADADE}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
README.md = README.md
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
|
30
README.md
30
README.md
|
@ -1,14 +1,28 @@
|
|||
# Project
|
||||
# Jacdac .NET (Experimental)
|
||||
|
||||
> This repo has been populated by an initial template to help get you started. Please
|
||||
> make sure to update the content to build a great experience for community-building.
|
||||
**Jacdac** is a plug-and-play hardware/software stack
|
||||
for **microcontrollers** and their peripherals (sensors/actuators),
|
||||
with applications to rapid prototyping, making, and physical computing.
|
||||
|
||||
As the maintainer of this project, please make a few updates:
|
||||
This repository contains a **.NET 5** client library for the [Jacdac](https://aka.ms/jacdac) protocol.
|
||||
|
||||
- Improving this README.MD file to provide a great experience
|
||||
- Updating SUPPORT.MD with content about this project's support experience
|
||||
- Understanding the security reporting process in SECURITY.MD
|
||||
- Remove this section from the README
|
||||
* **[Jacdac Documentation](https://aka.ms/jacdac/)**
|
||||
* Discussions at https://github.com/microsoft/jacdac/discussions
|
||||
* Issues are tracked on https://github.com/microsoft/jacdac/issues
|
||||
|
||||
The rest of this page is for developers of the jacdac-dotnet library.
|
||||
|
||||
## Developer setup
|
||||
|
||||
* clone this repository and pull all submodules
|
||||
```
|
||||
git clone https://github.com/microsoft/jacdac-dotnet
|
||||
git submodule update --init --recursive
|
||||
git pull
|
||||
```
|
||||
|
||||
* Restore Nuget packages. (Either in your preferred IDE/Editor or using `dotnet restore`).
|
||||
* Execute the desired tool or build the core library using your IDE or `dotnet build`/`dotnet run`
|
||||
|
||||
## Contributing
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче