Пример #1
0
 protected internal virtual void OnCommandLineProcessing(CommandLineProcessingEventArgs e)
 {
     var handler = CommandLineProcessing;
     if (handler != null) {
         handler(this, e);
     }
 }
Пример #2
0
        private void OnBeforeCommandLineProcessing(IntPtr self, IntPtr processtype, IntPtr commandline)
        {
            var e = new CommandLineProcessingEventArgs {
                ProcessType =
                    processtype == IntPtr.Zero
                        ? string.Empty
                        : StringUtf16.ReadString(processtype),
                CommandLine = CommandLine.FromHandle(commandline)
            };

            _delegate.OnCommandLineProcessing(e);
        }