rendered paste body private void AddDap (DapDevice dap) {
if (dap.CanSynchronize) {
LogCore.Instance.PushDebug ("DapCommand: Adding listener to dap", dap.Name);
dap.SaveFinished += OnDapSaveFinished;
dapProcessTable.Add (dap, null);
SchemaEntry<string> NameSchema = new SchemaEntry<string> (
SchemaNamespace + "." + dap.ID, "name",
String.Empty,
"Name",
"Name of Dap " + dap.ID
);
if ( String.IsNullOrEmpty ( NameSchema.Get () ) )
NameSchema.Set (dap.Name);
SchemaEntry<string> CommandSchema = new SchemaEntry<string> (
SchemaNamespace + "." + dap.ID, "command",
String.Empty,
"Command",
"Custom command to be executed for Dap " + dap.ID
);
if ( String.IsNullOrEmpty ( CommandSchema.Get () ) )
CommandSchema.Set ("");
}
}