public static void UpdateOne(int option, int cod, object parameter) { UpdateCommands.updateOne(option, cod, parameter); if (CapaDatos.MessageException.message != "") { MessageBox.Show("Error al ejecutar la modificacion: " + CapaDatos.MessageException.message, "Mensaje", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public GlueCommands() { mSelf = this; GenerateCodeCommands = new GenerateCodeCommands(); GluxCommands = new GluxCommands(); OpenCommands = new OpenCommands(); ProjectCommands = new ProjectCommands(); RefreshCommands = new RefreshCommands(); TreeNodeCommands = new TreeNodeCommands(); UpdateCommands = new UpdateCommands(); DialogCommands = new DialogCommands(); GlueViewCommands = new GlueViewCommands(); FileCommands = new FileCommands(); SelectCommands = new SelectCommands(); }
private void Update(EvaluationContext context) { // This will execute the input UpdateCommands.GetValue(context); //if (command == null) // return; var inputBuffer = Buffer.GetValue(context); //if (inputBuffer == null) // return; Output.Value = inputBuffer; //Log.Debug("updating buffer " + inputBuffer); }
private void Update(EvaluationContext context) { if (TriggerTexture.IsConnected && !TriggerTexture.DirtyFlag.IsDirty) { Output.DirtyFlag.Clear(); // UpdateCommands.DirtyFlag.Clear(); // TriggerTexture.DirtyFlag.Clear(); return; } if (UpdateCommands.IsConnected && UpdateCommands.DirtyFlag.IsDirty) { // This will execute the input UpdateCommands.GetValue(context); } UpdateCommands.DirtyFlag.Clear(); TriggerTexture.DirtyFlag.Clear(); var inputBuffer = Texture.GetValue(context); Output.Value = inputBuffer; }
public ICallback Send(params IUpdateEntityCommand <DataTransferObject>[] updateCommands) { UpdateCommands.AddRange(updateCommands); MessageSent.Raise(this, new CommandEventArgs(updateCommands)); return(null); }