Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.WinForms
comparison FrmMain.cs @ 22:84f61658e320
Re #88: WinForms fixes
* Put back the menu item names removed in r130 so that translations will work again
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 27 Jun 2009 11:41:18 +0000 |
parents | d84d7244e575 |
children | b8de17271084 |
comparison
equal
deleted
inserted
replaced
21:d84d7244e575 | 22:84f61658e320 |
---|---|
423 this.miSep2, | 423 this.miSep2, |
424 this.miReloadFiles, | 424 this.miReloadFiles, |
425 this.miSep3, | 425 this.miSep3, |
426 this.miExit}); | 426 this.miExit}); |
427 this.menuFile.Text = "&file"; | 427 this.menuFile.Text = "&file"; |
428 this.menuFile.Name = "menuFile"; | |
428 // | 429 // |
429 // miNewArmy | 430 // miNewArmy |
430 // | 431 // |
431 this.miNewArmy.Enabled = false; | 432 this.miNewArmy.Enabled = false; |
432 this.miNewArmy.Index = 0; | 433 this.miNewArmy.Index = 0; |
433 this.miNewArmy.Text = "&new army"; | 434 this.miNewArmy.Text = "&new army"; |
434 this.miNewArmy.Click += new System.EventHandler(this.miNewArmy_Click); | 435 this.miNewArmy.Click += new System.EventHandler(this.miNewArmy_Click); |
436 this.miNewArmy.Name = "miNewArmy"; | |
435 // | 437 // |
436 // miOpenArmy | 438 // miOpenArmy |
437 // | 439 // |
438 this.miOpenArmy.Index = 1; | 440 this.miOpenArmy.Index = 1; |
439 this.miOpenArmy.Text = "&open army"; | 441 this.miOpenArmy.Text = "&open army"; |
440 this.miOpenArmy.Click += new System.EventHandler(this.miOpenArmy_Click); | 442 this.miOpenArmy.Click += new System.EventHandler(this.miOpenArmy_Click); |
443 this.miOpenArmy.Name = "miOpenArmy"; | |
441 // | 444 // |
442 // miSaveArmy | 445 // miSaveArmy |
443 // | 446 // |
444 this.miSaveArmy.Enabled = false; | 447 this.miSaveArmy.Enabled = false; |
445 this.miSaveArmy.Index = 2; | 448 this.miSaveArmy.Index = 2; |
446 this.miSaveArmy.Text = "&save army"; | 449 this.miSaveArmy.Text = "&save army"; |
447 this.miSaveArmy.Click += new System.EventHandler(this.miSaveArmy_Click); | 450 this.miSaveArmy.Click += new System.EventHandler(this.miSaveArmy_Click); |
451 this.miSaveArmy.Name = "miSaveArmy"; | |
448 // | 452 // |
449 // miSaveArmyAs | 453 // miSaveArmyAs |
450 // | 454 // |
451 this.miSaveArmyAs.Enabled = false; | 455 this.miSaveArmyAs.Enabled = false; |
452 this.miSaveArmyAs.Index = 3; | 456 this.miSaveArmyAs.Index = 3; |
453 this.miSaveArmyAs.Text = "save army &as..."; | 457 this.miSaveArmyAs.Text = "save army &as..."; |
454 this.miSaveArmyAs.Click += new System.EventHandler(this.miSaveArmyAs_Click); | 458 this.miSaveArmyAs.Click += new System.EventHandler(this.miSaveArmyAs_Click); |
459 this.miSaveArmyAs.Name = "miSaveArmyAs"; | |
455 // | 460 // |
456 // miCloseArmy | 461 // miCloseArmy |
457 // | 462 // |
458 this.miCloseArmy.Enabled = false; | 463 this.miCloseArmy.Enabled = false; |
459 this.miCloseArmy.Index = 4; | 464 this.miCloseArmy.Index = 4; |
460 this.miCloseArmy.Text = "&close army"; | 465 this.miCloseArmy.Text = "&close army"; |
461 this.miCloseArmy.Click += new System.EventHandler(this.miCloseArmy_Click); | 466 this.miCloseArmy.Click += new System.EventHandler(this.miCloseArmy_Click); |
467 this.miCloseArmy.Name = "miCloseArmy"; | |
462 // | 468 // |
463 // miSep1 | 469 // miSep1 |
464 // | 470 // |
465 this.miSep1.Index = 5; | 471 this.miSep1.Index = 5; |
466 this.miSep1.Text = "-"; | 472 this.miSep1.Text = "-"; |
468 // miChangeSystem | 474 // miChangeSystem |
469 // | 475 // |
470 this.miChangeSystem.Index = 6; | 476 this.miChangeSystem.Index = 6; |
471 this.miChangeSystem.Text = "change &game system"; | 477 this.miChangeSystem.Text = "change &game system"; |
472 this.miChangeSystem.Click += new System.EventHandler(this.miChangeSystem_Click); | 478 this.miChangeSystem.Click += new System.EventHandler(this.miChangeSystem_Click); |
479 this.miChangeSystem.Name = "miChangeSystem"; | |
473 // | 480 // |
474 // miSep2 | 481 // miSep2 |
475 // | 482 // |
476 this.miSep2.Index = 7; | 483 this.miSep2.Index = 7; |
477 this.miSep2.Text = "-"; | 484 this.miSep2.Text = "-"; |
479 // miReloadFiles | 486 // miReloadFiles |
480 // | 487 // |
481 this.miReloadFiles.Index = 8; | 488 this.miReloadFiles.Index = 8; |
482 this.miReloadFiles.Text = "&reload files"; | 489 this.miReloadFiles.Text = "&reload files"; |
483 this.miReloadFiles.Click += new System.EventHandler(this.miReloadFiles_Click); | 490 this.miReloadFiles.Click += new System.EventHandler(this.miReloadFiles_Click); |
491 this.miReloadFiles.Name = "miReloadFiles"; | |
484 // | 492 // |
485 // miSep3 | 493 // miSep3 |
486 // | 494 // |
487 this.miSep3.Index = 9; | 495 this.miSep3.Index = 9; |
488 this.miSep3.Text = "-"; | 496 this.miSep3.Text = "-"; |
490 // miExit | 498 // miExit |
491 // | 499 // |
492 this.miExit.Index = 10; | 500 this.miExit.Index = 10; |
493 this.miExit.Text = "e&xit"; | 501 this.miExit.Text = "e&xit"; |
494 this.miExit.Click += new System.EventHandler(this.miExit_Click); | 502 this.miExit.Click += new System.EventHandler(this.miExit_Click); |
503 this.miExit.Name = "miExit"; | |
495 // | 504 // |
496 // menuEdit | 505 // menuEdit |
497 // | 506 // |
498 this.menuEdit.Index = 1; | 507 this.menuEdit.Index = 1; |
499 this.menuEdit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { | 508 this.menuEdit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { |
500 this.miUndo, | 509 this.miUndo, |
501 this.miRedo}); | 510 this.miRedo}); |
502 this.menuEdit.Text = "&edit"; | 511 this.menuEdit.Text = "&edit"; |
512 this.menuEdit.Name = "menuEdit"; | |
503 // | 513 // |
504 // miUndo | 514 // miUndo |
505 // | 515 // |
506 this.miUndo.Enabled = false; | 516 this.miUndo.Enabled = false; |
507 this.miUndo.Index = 0; | 517 this.miUndo.Index = 0; |
508 this.miUndo.Text = "&undo"; | 518 this.miUndo.Text = "&undo"; |
509 this.miUndo.Click += new System.EventHandler(this.miUndo_Click); | 519 this.miUndo.Click += new System.EventHandler(this.miUndo_Click); |
520 this.miUndo.Name = "miUndo"; | |
510 // | 521 // |
511 // miRedo | 522 // miRedo |
512 // | 523 // |
513 this.miRedo.Enabled = false; | 524 this.miRedo.Enabled = false; |
514 this.miRedo.Index = 1; | 525 this.miRedo.Index = 1; |
515 this.miRedo.Text = "&redo"; | 526 this.miRedo.Text = "&redo"; |
516 this.miRedo.Click += new System.EventHandler(this.miRedo_Click); | 527 this.miRedo.Click += new System.EventHandler(this.miRedo_Click); |
528 this.miRedo.Name = "miRedo"; | |
517 // | 529 // |
518 // menuHelp | 530 // menuHelp |
519 // | 531 // |
520 this.menuHelp.Index = 2; | 532 this.menuHelp.Index = 2; |
521 this.menuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { | 533 this.menuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { |
522 this.miAbout, | 534 this.miAbout, |
523 this.miDebugWindow}); | 535 this.miDebugWindow}); |
524 this.menuHelp.Text = "&help"; | 536 this.menuHelp.Text = "&help"; |
537 this.menuHelp.Name = "menuHelp"; | |
525 // | 538 // |
526 // miAbout | 539 // miAbout |
527 // | 540 // |
528 this.miAbout.Enabled = false; | 541 this.miAbout.Enabled = false; |
529 this.miAbout.Index = 0; | 542 this.miAbout.Index = 0; |
530 this.miAbout.Text = "&about"; | 543 this.miAbout.Text = "&about"; |
544 this.miAbout.Name = "miAbout"; | |
531 // | 545 // |
532 // miDebugWindow | 546 // miDebugWindow |
533 // | 547 // |
534 this.miDebugWindow.Index = 1; | 548 this.miDebugWindow.Index = 1; |
535 this.miDebugWindow.Text = "&debug"; | 549 this.miDebugWindow.Text = "&debug"; |
536 this.miDebugWindow.Click += new System.EventHandler(this.miDebugWindow_Click); | 550 this.miDebugWindow.Click += new System.EventHandler(this.miDebugWindow_Click); |
551 this.miDebugWindow.Name = "miDebugWindow"; | |
537 // | 552 // |
538 // saveArmyDialog | 553 // saveArmyDialog |
539 // | 554 // |
540 this.saveArmyDialog.Title = "Translatable:saveArmyDialog"; | 555 this.saveArmyDialog.Title = "Translatable:saveArmyDialog"; |
541 // | 556 // |