Ejemplo n.º 1
0
        private void OpenDynamicMapPanel()
        {
            switch (listOfMapsToPatchIn.SelectedItems.Count)
            {
            case 2:
                DynamicMapPanelHelpers.ConfigureDynamicPanelForTwoSelectedMaps();
                break;

            case 3:
                DynamicMapPanelHelpers.ConfigureDynamicPanelForThreeSelectedMaps();
                break;

            case 4:
                DynamicMapPanelHelpers.ConfigureDynamicPanelForFourSelectedMaps();
                break;

            default:
            {
                MessageBox.Show("No map slot supports greater than 4 slots.");
                break;
            }
            }

            foreach (ListViewItem item in listOfMapsToPatchIn.SelectedItems)
            {
                item.SubItems[3].Text = "true";
            }
        }
Ejemplo n.º 2
0
 public MainWindow()
 {
     InitializeComponent();
     IsoManagement   = new IsoManagement((this));
     MapReplacement  = new MapReplacement(this);
     OptionalPatches = new OptionalPatches(this);
     MapSelectionRadioButtonHelpers = new MapSelectionRadioButtonHelpers(this);
     DynamicMapPanelHelpers         = new DynamicMapPanelHelpers(this);
     DynamicMapPanelValidation      = new DynamicMapPanelValidation(this);
 }
Ejemplo n.º 3
0
        /*****************Map List Button Click Functions*****************/
        private void OpenMapButtonClick(object sender, EventArgs e)
        {
            switch (addMapButton.Text)
            {
            //if one item is selected
            case "Add map":
                DynamicMapPanelHelpers.ClearDynamicMapLabels();
                OpenAddMapsDialog();
                break;

            //if two or more maps are selected, the button changes!
            case "Set Dynamic":
                OpenDynamicMapPanel();
                break;
            }
        }