static void Main(string[] args) { Palm palm = new Palm(); bool oneShot; if ((args.Length > 0) && (args[0].ToLower().CompareTo("/oneshot") == 0)) { oneShot = true; } else { oneShot = false; } palm.GetUsers(); if (palm.users.Length > 1) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new fMain(palm, prcFile, oneShot)); } else { palm.InstallToMemory(palm.users[0], prcFile); } }
private void cInstall_Click(object sender, EventArgs e) { int idx = cProfile.SelectedIndex; if ((idx >= 0) && (idx < palm.users.Length)) { if (palm.InstallToMemory(palm.users[idx], prcFile) == 0) { MessageBox.Show("Trams for Palm OS successfully queued for " + palm.users[idx], "Success!", MessageBoxButtons.OK, MessageBoxIcon.Information); if (oneShot) { Close(); } } } }