Example #1
0
            void StartupAlreadyRunningHandler(object sender, StartupNextInstanceEventArgs e)
            {
                try
                {
                    ZSpriteToolForm form = MainForm as ZSpriteToolForm;

                    if (e.CommandLine.Count > 1)
                    {
                        form.LoadFile(e.CommandLine[1]);
                    }
                }
                catch (Exception ex)
                {
                    logger.Fatal(ex, "StartupAlreadyRunningHandler failed.");
                }
            }
Example #2
0
 protected override void OnCreateMainForm()
 {
     MainForm = new ZSpriteToolForm();
 }