All pastes #606206 Raw Edit

Richard

public text v1 · immutable
#606206 ·published 2007-07-06 18:35 UTC
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 ("");

          }
        }