Exemple #1
0
        public void AskCruiser(FSCruiser.Core.Models.Tree tree)
        {
            var appSettings = ApplicationSettings.Instance;

            if (appSettings.EnableCruiserPopup &&
                appSettings.Cruisers.Count > 0)
            {
                if (_cruiserSelectionView == null)
                {
                    _cruiserSelectionView = new FormCruiserSelection();
                }
                _cruiserSelectionView.Tree = tree;
#if NetCF
                _cruiserSelectionView.ShowDialog();
#else
                _cruiserSelectionView.ShowDialog(Form.ActiveForm);
#endif
            }
        }
 public override void ShowCruiserSelection(TreeVM tree)
 {
     if (this.ApplicationController.Settings.EnableCruiserPopup)
     {
         if (_cruiserSelectionView == null)
         {
             _cruiserSelectionView = new FormCruiserSelection(ApplicationController);
         }
         _cruiserSelectionView.ShowDialog(tree);
     }
 }
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing && _cruiserSelectionView != null)
     {
         this._cruiserSelectionView.Dispose();
         this._cruiserSelectionView = null;
     }
 }