forked from ArduPilot/MissionPlanner
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BindableListView Class File Seperation
- Loading branch information
Showing
10 changed files
with
691 additions
and
57 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System; | ||
using System.Windows.Forms; | ||
|
||
namespace MissionPlanner.Controls | ||
{ | ||
public static class SuspendUpdate | ||
{ | ||
private const int WM_SETREDRAW = 0x000B; | ||
|
||
public static void Suspend(Control control) | ||
{ | ||
Message msgSuspendUpdate = Message.Create(control.Handle, WM_SETREDRAW, IntPtr.Zero, | ||
IntPtr.Zero); | ||
|
||
NativeWindow window = NativeWindow.FromHandle(control.Handle); | ||
window.DefWndProc(ref msgSuspendUpdate); | ||
} | ||
|
||
public static void Resume(Control control) | ||
{ | ||
// Create a C "true" boolean as an IntPtr | ||
IntPtr wparam = new IntPtr(1); | ||
Message msgResumeUpdate = Message.Create(control.Handle, WM_SETREDRAW, wparam, | ||
IntPtr.Zero); | ||
|
||
NativeWindow window = NativeWindow.FromHandle(control.Handle); | ||
window.DefWndProc(ref msgResumeUpdate); | ||
|
||
control.Invalidate(); | ||
} | ||
} | ||
} |
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
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,19 @@ | ||
using System; | ||
using UAVCAN; | ||
|
||
namespace MissionPlanner.GCSViews.ConfigurationView | ||
{ | ||
public class UAVCANModel | ||
{ | ||
public byte ID { get; set; } | ||
public string Name { get; set; } = "?"; | ||
public string Mode { get; set; } | ||
public string Health { get; set; } | ||
public TimeSpan Uptime { get; set; } | ||
public string HardwareVersion { get; set; } | ||
public string SoftwareVersion { get; set; } | ||
public ulong SoftwareCRC { get; set; } | ||
public uavcan.uavcan_protocol_GetNodeInfo_res RawMsg { get; set; } | ||
public string HardwareUID { get; set; } | ||
} | ||
} |
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,10 @@ | ||
namespace MissionPlanner.GCSViews.ConfigurationView | ||
{ | ||
public enum uitype | ||
{ | ||
Combo, | ||
Num, | ||
Check, | ||
Mask | ||
} | ||
} |
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
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