示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MapIsInvalid"/> class.
        /// </summary>
        /// <param name="controller">The controller.</param>
        /// <param name="listOfError">The list of error.</param>
        public MapIsInvalid(FormTp.FormTpController controller, Stack<string> listOfError)
        {
            this.controller = controller;
            InitializeComponent();

            int nbOfError = listOfError.Count;

            for (int i = 0; i < nbOfError; i++)
            {
                lbxErrorList.Items.Add(listOfError.Pop());
            }
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FormTpController"/> class.
 /// </summary>
 /// <param name="paramView">The parameter view.</param>
 public FormTpController(FormTp paramView)
 {
     view = paramView;
     view.nouveauToolStripMenuItem.Click += nouveauToolStripMenuItem_Click;
     view.btnDeleteLayer.Click += DeleteCurrentLayer;
     view.fermerLaCarteToolStripMenuItem.Click += fermerLaCarteToolStripMenuItem_Click;
     view.quitterToolStripMenuItem.Click += quitterToolStripMenuItem_Click;
     view.surNousToolStripMenuItem.Click += surNousToolStripMenuItem_Click;
     view.btnAddLayer.Click += btnAddLayer_Click;
     view.Load += Form1_Load;
     view.ResizeBegin += FormTp_ResizeBegin;
     view.ResizeEnd += FormTp_ResizeEnd;
     view.lbxTilesType.SelectedIndexChanged += lbxTilesType_SelectedIndexChanged;
     view.cmbLayer.SelectedIndexChanged += CmbLayerSelectedIndexChanged;
     view.sauvegarderToolStripMenuItem.Click += sauvegarderToolStripMenuItem_Click;
     view.ouvirToolStripMenuItem.Click += ouvrirToolStripMenuItem_Click;
     view.btnValidate.Click += btnValidate_Click;
     view.statusStripButton.Click += ToggleTopView;
 }