Ejemplo n.º 1
0
 private void Tabs_PageClosing(TabPages.TabPage page, ref bool cancel)
 {
     if (MessageBox.Show("Are you sure you want to close this map?", "Close", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes)
     {
         cancel = true;
     }
 }
Ejemplo n.º 2
0
 private void Tabs_CurrentPageChanged(TabPages.TabPage currentPage, TabPages.TabPage previousPage)
 {
     if (previousPage != null)
     {
         allLayersBox.Enabled   = true;
         layersComboBox.Enabled = true;
         ((Board)previousPage.Tag).Mouse.SelectionMode();
         InputHandler.ClearSelectedItems((Board)previousPage.Tag);
     }
     multiBoard.SelectedBoard = (Board)currentPage.Tag;
     multiBoard.Focus();
     //ApplicationSettings.visibleTypes = prevVisibleTypes;
     //ApplicationSettings.editedTypes = prevEditedTypes;
     //ParseVisibleEditedTypes();
     if (multiBoard.SelectedBoard.SelectedLayerIndex == -1)
     {
         allLayersBox.Checked = true;
     }
     else
     {
         allLayersBox.Checked = false; layersComboBox.SelectedIndex = multiBoard.SelectedBoard.SelectedLayerIndex;
     }
     SetLayerTSInComboBox();
     multiBoard.RenderFrame();
 }