public static void Run(builtin_command_que cmd)
 {
     using (zvsEntities2 db = new zvsEntities2(zvsEntityControl.GetzvsConnectionString))
     {
         db.builtin_command_que.AddObject(cmd);
         db.SaveChanges();
         BuiltinCommandAddedToQue(cmd.id);
     }
 }
Ejemplo n.º 2
0
        void builtin_command_que_BuiltinCommandRunCompleteEvent(builtin_command_que cmd, bool withErrors, string txtError)
        {
            if (cmd.id == CmdWaitingForProcessingQueID)
            {
                Waiting = false;

                if (withErrors)
                    errorCount++;
            }
        }
Ejemplo n.º 3
0
 void builtin_command_que_BuiltinCommandRunCompleteEvent(builtin_command_que cmd, bool withErrors, string txtError)
 {
     if (withErrors)
         BroadcastMessage("ERR~" + txtError + Environment.NewLine);
 }
Ejemplo n.º 4
0
 void builtin_command_que_BuiltinCommandRunCompleteEvent(builtin_command_que cmd, bool withErrors, string txtError)
 {
 }
Ejemplo n.º 5
0
 void builtin_command_que_BuiltinCommandRunCompleteEvent(builtin_command_que cmd, bool withErrors, string txtError)
 {
     if (this.InvokeRequired)
         this.Invoke(new builtin_command_que.BuiltinCommandRunCompleteEventHandler(builtin_command_que_BuiltinCommandRunCompleteEvent), new object[] { cmd, withErrors, txtError });
     else
     {
         if (withErrors)
             Logger.WriteToLog(Urgency.INFO, "Qued builtin command #'" + cmd.id + "' has completed with errors.", "EVENT");
     }
 }
 public static void BuiltinCommandRunComplete(builtin_command_que cmd, bool withErrors, string txtError)
 {
     if (BuiltinCommandRunCompleteEvent != null)
         BuiltinCommandRunCompleteEvent(cmd, withErrors, txtError);
 }
Ejemplo n.º 7
0
 public void Run(string argument = "")
 {
     builtin_command_que cmd = new builtin_command_que { builtin_command_id = this.id, arg = argument };
     cmd.Run();
 }
 void builtin_command_que_BuiltinCommandRunCompleteEvent(builtin_command_que cmd, bool withErrors, string txtError)
 {
     this.BroadcastEvent("BuiltinCommandRunComplete", cmd.id.ToString());
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Create a new builtin_command_que object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="arg">Initial value of the arg property.</param>
 /// <param name="builtin_command_id">Initial value of the builtin_command_id property.</param>
 public static builtin_command_que Createbuiltin_command_que(global::System.Int64 id, global::System.String arg, global::System.Int64 builtin_command_id)
 {
     builtin_command_que builtin_command_que = new builtin_command_que();
     builtin_command_que.id = id;
     builtin_command_que.arg = arg;
     builtin_command_que.builtin_command_id = builtin_command_id;
     return builtin_command_que;
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Deprecated Method for adding a new object to the builtin_command_que EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTobuiltin_command_que(builtin_command_que builtin_command_que)
 {
     base.AddObject("builtin_command_que", builtin_command_que);
 }