Esempio n. 1
0
 public static TargetAreaForm GetInstance(MainForm Parent, bool IsNew = false)
 {
     if (_instance == null)
     {
         _instance = new TargetAreaForm(Parent, IsNew);
     }
     return(_instance);
 }
Esempio n. 2
0
 public FishingGroundDefinitionForm(TargetAreaForm Parent, fadUTMZone UTMZone, string MapDescription, string ULGrid, string LRGrid)
 {
     InitializeComponent();
     _MapDescription         = MapDescription;
     _ULGrid                 = ULGrid;
     _LRGrid                 = LRGrid;
     textBoxDescription.Text = _MapDescription;
     textBoxLRGrid.Text      = _LRGrid;
     textBoxULGrid.Text      = _ULGrid;
     _Parent_form            = Parent;
 }
Esempio n. 3
0
        private void OnFormClosed(object sender, FormClosedEventArgs e)
        {
            if (FishingGrid.GridType == fadGridType.gridTypeGrid25)
            {
                FishingGrid.SubGridStyle = (fadSubgridStyle)comboSubGrid.SelectedIndex;
            }

            _instance = null;
            global.SaveFormSettings(this);
            global.MapperOpen   -= OnMapperOpen;
            global.MapperClosed -= OnMapperClosed;
        }
Esempio n. 4
0
 public FishingGroundDefinitionForm(TargetAreaForm Parent)
 {
     InitializeComponent();
     _Parent_form = Parent;
 }