void ShowTallySettings(CountTree count)
        {
            this.ViewLogicController.SavePlotTrees();
            try
            {
                count.Save();
                var countDataService = new CountTreeDataService(DataService.DataStore, count);
                using (FormTallySettings view = new FormTallySettings(countDataService, SampleSelectorRepository))
                {
#if !NetCF
                    view.ShowDialog(this);
#else
                    view.ShowDialog();
#endif
                }
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.WriteLine(ex);
                return;
            }
        }
        public void ShowTallySettings(CountTreeVM count)
        {
            try
            {
                count.Save();
            }
            catch (Exception e)
            {
                System.Diagnostics.Debug.WriteLine(e);
                return;
            }

            using (FormTallySettings view = new FormTallySettings(this.ApplicationController))
            {
                view.ShowDialog(count);
            }
        }