public void Run() { frmRegister regform = new frmRegister(); if (Program.UseUI) { Application.Run(new frmRegister()); } else { regform.RunAsCli(); } }