OnStartupNextInstance() private method

private OnStartupNextInstance ( string args ) : void
args string
return void
Exemplo n.º 1
0
        protected override void OnStartupNextInstance(Microsoft.VisualBasic.ApplicationServices.StartupNextInstanceEventArgs eventArgs)
        {
            System.Collections.ObjectModel.ReadOnlyCollection <string> argsCollection = eventArgs.CommandLine;
            int count = argsCollection.Count - 1;

            string[] args = new string[count];
            for (int i = 0; i < count; ++i)
            {
                args[i] = argsCollection[i + 1];
            }
            App.OnStartupNextInstance(args);
        }