Mercurial > repos > IBBoard.WarFoundry.GUI.WinForms
comparison FrmMain.cs @ 15:76a15df10fa6
Re #88 - Complete initial WinForms UI
* Disable "New Army" button on start up in case we don't have a game system
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 25 May 2009 11:32:24 +0000 |
parents | f7f65d80951e |
children | b1588ef12a2a |
comparison
equal
deleted
inserted
replaced
14:8379fa964dd3 | 15:76a15df10fa6 |
---|---|
371 this.bttnSaveArmy.ImageIndex = 1; | 371 this.bttnSaveArmy.ImageIndex = 1; |
372 this.bttnSaveArmy.Name = "bttnSaveArmy"; | 372 this.bttnSaveArmy.Name = "bttnSaveArmy"; |
373 // | 373 // |
374 // bttnSep1 | 374 // bttnSep1 |
375 // | 375 // |
376 this.bttnSep1.Name = ""; | |
376 this.bttnSep1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; | 377 this.bttnSep1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; |
377 // | 378 // |
378 // bttnUndo | 379 // bttnUndo |
379 // | 380 // |
380 this.bttnUndo.DropDownMenu = this.undoMenu; | 381 this.bttnUndo.DropDownMenu = this.undoMenu; |
424 this.miSep2, | 425 this.miSep2, |
425 this.miReloadFiles, | 426 this.miReloadFiles, |
426 this.miSep3, | 427 this.miSep3, |
427 this.miExit}); | 428 this.miExit}); |
428 this.menuFile.Text = "&file"; | 429 this.menuFile.Text = "&file"; |
429 this.menuFile.Name = "menuFile"; | |
430 // | 430 // |
431 // miNewArmy | 431 // miNewArmy |
432 // | 432 // |
433 this.miNewArmy.Enabled = false; | |
433 this.miNewArmy.Index = 0; | 434 this.miNewArmy.Index = 0; |
434 this.miNewArmy.Text = "&new army"; | 435 this.miNewArmy.Text = "&new army"; |
435 this.miNewArmy.Click += new System.EventHandler(this.miNewArmy_Click); | 436 this.miNewArmy.Click += new System.EventHandler(this.miNewArmy_Click); |
436 this.miNewArmy.Name = "miNewArmy"; | |
437 // | 437 // |
438 // miOpenArmy | 438 // miOpenArmy |
439 // | 439 // |
440 this.miOpenArmy.Index = 1; | 440 this.miOpenArmy.Index = 1; |
441 this.miOpenArmy.Text = "&open army"; | 441 this.miOpenArmy.Text = "&open army"; |
442 this.miOpenArmy.Click += new System.EventHandler(this.miOpenArmy_Click); | 442 this.miOpenArmy.Click += new System.EventHandler(this.miOpenArmy_Click); |
443 this.miOpenArmy.Name = "miOpenArmy"; | |
444 // | 443 // |
445 // miSaveArmy | 444 // miSaveArmy |
446 // | 445 // |
447 this.miSaveArmy.Enabled = false; | 446 this.miSaveArmy.Enabled = false; |
448 this.miSaveArmy.Index = 2; | 447 this.miSaveArmy.Index = 2; |
449 this.miSaveArmy.Text = "&save army"; | 448 this.miSaveArmy.Text = "&save army"; |
450 this.miSaveArmy.Click += new System.EventHandler(this.miSaveArmy_Click); | 449 this.miSaveArmy.Click += new System.EventHandler(this.miSaveArmy_Click); |
451 this.miSaveArmy.Name = "miSaveArmy"; | |
452 // | 450 // |
453 // miSaveArmyAs | 451 // miSaveArmyAs |
454 // | 452 // |
455 this.miSaveArmyAs.Enabled = false; | 453 this.miSaveArmyAs.Enabled = false; |
456 this.miSaveArmyAs.Index = 3; | 454 this.miSaveArmyAs.Index = 3; |
457 this.miSaveArmyAs.Text = "save army &as..."; | 455 this.miSaveArmyAs.Text = "save army &as..."; |
458 this.miSaveArmyAs.Click += new System.EventHandler(this.miSaveArmyAs_Click); | 456 this.miSaveArmyAs.Click += new System.EventHandler(this.miSaveArmyAs_Click); |
459 this.miSaveArmyAs.Name = "miSaveArmyAs"; | |
460 // | 457 // |
461 // miCloseArmy | 458 // miCloseArmy |
462 // | 459 // |
463 this.miCloseArmy.Enabled = false; | 460 this.miCloseArmy.Enabled = false; |
464 this.miCloseArmy.Index = 4; | 461 this.miCloseArmy.Index = 4; |
465 this.miCloseArmy.Text = "&close army"; | 462 this.miCloseArmy.Text = "&close army"; |
466 this.miCloseArmy.Click += new System.EventHandler(this.miCloseArmy_Click); | 463 this.miCloseArmy.Click += new System.EventHandler(this.miCloseArmy_Click); |
467 this.miCloseArmy.Name = "miCloseArmy"; | |
468 // | 464 // |
469 // miSep1 | 465 // miSep1 |
470 // | 466 // |
471 this.miSep1.Index = 5; | 467 this.miSep1.Index = 5; |
472 this.miSep1.Text = "-"; | 468 this.miSep1.Text = "-"; |
474 // miChangeSystem | 470 // miChangeSystem |
475 // | 471 // |
476 this.miChangeSystem.Index = 6; | 472 this.miChangeSystem.Index = 6; |
477 this.miChangeSystem.Text = "change &game system"; | 473 this.miChangeSystem.Text = "change &game system"; |
478 this.miChangeSystem.Click += new System.EventHandler(this.miChangeSystem_Click); | 474 this.miChangeSystem.Click += new System.EventHandler(this.miChangeSystem_Click); |
479 this.miChangeSystem.Name = "miChangeSystem"; | |
480 // | 475 // |
481 // miSep2 | 476 // miSep2 |
482 // | 477 // |
483 this.miSep2.Index = 7; | 478 this.miSep2.Index = 7; |
484 this.miSep2.Text = "-"; | 479 this.miSep2.Text = "-"; |
486 // miReloadFiles | 481 // miReloadFiles |
487 // | 482 // |
488 this.miReloadFiles.Index = 8; | 483 this.miReloadFiles.Index = 8; |
489 this.miReloadFiles.Text = "&reload files"; | 484 this.miReloadFiles.Text = "&reload files"; |
490 this.miReloadFiles.Click += new System.EventHandler(this.miReloadFiles_Click); | 485 this.miReloadFiles.Click += new System.EventHandler(this.miReloadFiles_Click); |
491 this.miReloadFiles.Name = "miReloadFiles"; | |
492 // | 486 // |
493 // miSep3 | 487 // miSep3 |
494 // | 488 // |
495 this.miSep3.Index = 9; | 489 this.miSep3.Index = 9; |
496 this.miSep3.Text = "-"; | 490 this.miSep3.Text = "-"; |
498 // miExit | 492 // miExit |
499 // | 493 // |
500 this.miExit.Index = 10; | 494 this.miExit.Index = 10; |
501 this.miExit.Text = "e&xit"; | 495 this.miExit.Text = "e&xit"; |
502 this.miExit.Click += new System.EventHandler(this.miExit_Click); | 496 this.miExit.Click += new System.EventHandler(this.miExit_Click); |
503 this.miExit.Name = "miExit"; | |
504 // | 497 // |
505 // menuEdit | 498 // menuEdit |
506 // | 499 // |
507 this.menuEdit.Index = 1; | 500 this.menuEdit.Index = 1; |
508 this.menuEdit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { | 501 this.menuEdit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { |
509 this.miUndo, | 502 this.miUndo, |
510 this.miRedo}); | 503 this.miRedo}); |
511 this.menuEdit.Text = "&edit"; | 504 this.menuEdit.Text = "&edit"; |
512 this.menuEdit.Name = "menuEdit"; | |
513 // | 505 // |
514 // miUndo | 506 // miUndo |
515 // | 507 // |
516 this.miUndo.Enabled = false; | 508 this.miUndo.Enabled = false; |
517 this.miUndo.Index = 0; | 509 this.miUndo.Index = 0; |
518 this.miUndo.Text = "&undo"; | 510 this.miUndo.Text = "&undo"; |
519 this.miUndo.Click += new System.EventHandler(this.miUndo_Click); | 511 this.miUndo.Click += new System.EventHandler(this.miUndo_Click); |
520 this.miUndo.Name = "miUndo"; | |
521 // | 512 // |
522 // miRedo | 513 // miRedo |
523 // | 514 // |
524 this.miRedo.Enabled = false; | 515 this.miRedo.Enabled = false; |
525 this.miRedo.Index = 1; | 516 this.miRedo.Index = 1; |
526 this.miRedo.Text = "&redo"; | 517 this.miRedo.Text = "&redo"; |
527 this.miRedo.Click += new System.EventHandler(this.miRedo_Click); | 518 this.miRedo.Click += new System.EventHandler(this.miRedo_Click); |
528 this.miRedo.Name = "miRedo"; | |
529 // | 519 // |
530 // menuHelp | 520 // menuHelp |
531 // | 521 // |
532 this.menuHelp.Index = 2; | 522 this.menuHelp.Index = 2; |
533 this.menuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { | 523 this.menuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { |
534 this.miAbout, | 524 this.miAbout, |
535 this.miDebugWindow}); | 525 this.miDebugWindow}); |
536 this.menuHelp.Text = "&help"; | 526 this.menuHelp.Text = "&help"; |
537 this.menuHelp.Name = "menuHelp"; | |
538 // | 527 // |
539 // miAbout | 528 // miAbout |
540 // | 529 // |
541 this.miAbout.Enabled = false; | 530 this.miAbout.Enabled = false; |
542 this.miAbout.Index = 0; | 531 this.miAbout.Index = 0; |
543 this.miAbout.Text = "&about"; | 532 this.miAbout.Text = "&about"; |
544 this.miAbout.Name = "miAbout"; | |
545 // | 533 // |
546 // miDebugWindow | 534 // miDebugWindow |
547 // | 535 // |
548 this.miDebugWindow.Index = 1; | 536 this.miDebugWindow.Index = 1; |
549 this.miDebugWindow.Text = "&debug"; | 537 this.miDebugWindow.Text = "&debug"; |
550 this.miDebugWindow.Click += new System.EventHandler(this.miDebugWindow_Click); | 538 this.miDebugWindow.Click += new System.EventHandler(this.miDebugWindow_Click); |
551 this.miDebugWindow.Name = "miDebugWindow"; | |
552 // | 539 // |
553 // saveArmyDialog | 540 // saveArmyDialog |
554 // | 541 // |
555 this.saveArmyDialog.Title = "Translatable:saveArmyDialog"; | 542 this.saveArmyDialog.Title = "Translatable:saveArmyDialog"; |
556 // | 543 // |