static void MouseClickMethod(object sender, MouseEventArgs args) { if ((sender is ProtocolContract) && args == EventArgs.Empty) {//serverRespond return; } //clientInvokaction ProtocolContract Contract = (sender as Control); if (Contract < (long)0) { Contract.Flag = ContractFlag.MouseClick; } }
static void ValidatingMethod(object sender, CancelEventArgs args) { if ((sender is ProtocolContract) && args == EventArgs.Empty) {//serverRespond return; } //clientInvokaction ProtocolContract Contract = (sender as Control); if (Contract < (long)0) { Contract.Flag = ContractFlag.Validating; } }