示例#1
0
 protected internal virtual void OnCommandLineProcessing(CommandLineProcessingEventArgs e)
 {
     var handler = CommandLineProcessing;
     if (handler != null) {
         handler(this, e);
     }
 }
示例#2
0
文件: App.cs 项目: kaagati/spectre
        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);
        }