public bool ShowPlotInfo(IPlotDataService dataService, Plot plot, PlotStratum stratum, bool isNewPlot) { System.Diagnostics.Debug.Assert(plot != null); System.Diagnostics.Debug.Assert(stratum != null); if (stratum.Is3PPNT && isNewPlot) { using (var view = new Form3PPNTPlotInfo(dataService)) { #if !NetCF view.Owner = this.TopLevelControl as Form; view.StartPosition = FormStartPosition.CenterParent; #endif return(view.ShowDialog(plot, stratum, isNewPlot) == DialogResult.OK); } } else { using (var view = new FormPlotInfo()) { #if !NetCF view.Owner = this.TopLevelControl as Form; view.StartPosition = FormStartPosition.CenterParent; #endif return(view.ShowDialog(plot, stratum, isNewPlot) == DialogResult.OK); } } }
public LayoutPlotLogic(PlotStratum stratum , LayoutPlot view , IPlotDataService dataService , ISoundService soundService , IDialogService dialogService , ApplicationSettings settings , IViewController viewController , ISampleSelectorRepository sampleSelectorRepository) { SampleSelectorRepository = sampleSelectorRepository; Stratum = stratum; View = view; DataService = dataService; _soundService = soundService; _dialogService = dialogService; _appSettings = settings; ViewController = viewController; _BS_Plots = new BindingSource(); _BS_Trees = new BindingSource(); ((System.ComponentModel.ISupportInitialize)(_BS_Plots)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(_BS_Trees)).BeginInit(); _BS_Plots.DataSource = typeof(Plot); _BS_Plots.CurrentChanged += new System.EventHandler(_BS_Plots_CurrentChanged); _BS_Trees.DataSource = typeof(Tree); _BS_Trees.CurrentChanged += new System.EventHandler(_BS_Trees_CurrentChanged); ((System.ComponentModel.ISupportInitialize)(_BS_Plots)).EndInit(); ((System.ComponentModel.ISupportInitialize)(_BS_Trees)).EndInit(); _BS_Plots.DataSource = Stratum.Plots; }
public LayoutPlot(IPlotDataService dataService, ISampleSelectorRepository sampleSelectorRepository, ApplicationSettings appSettings, ISoundService soundService, IViewController viewController, PlotStratum stratum) : this() { SampleSelectorRepository = sampleSelectorRepository; //Stratum = stratum; DataService = dataService; AppSettings = appSettings; this.ViewLogicController = new LayoutPlotLogic(stratum, this, dataService, soundService, DialogService.Instance, AppSettings, viewController, sampleSelectorRepository); WireSplitter(stratum); InitializeDataGrid(stratum); //no need to load tallies....? //Controller.PopulateTallies(this.StratumInfo, this._mode, Controller.CurrentUnit, this._tallyListPanel, this); }
public FixCNTForm(IFixCNTTallyPopulationProvider populationProvider , IPlotDataService dataService) : this() { DataService = dataService; _tallyControl.PopulationProvider = populationProvider; }
public Form3PPNTPlotInfo(IPlotDataService dataService) { DataService = dataService; InitializeComponent(); if (ViewController.PlatformType == FMSC.Controls.PlatformType.WinCE) { this.WindowState = FormWindowState.Maximized; this._OKBtn.Visible = true; } }
public void CreateTrees(IPlotDataService dataService) { for (long i = 0; i < this.TreeCount; i++) { Tree t = dataService.CreateNewTreeEntry(this, (SampleGroup)null, (TreeDefaultValueDO)null, false); t.TreeCount = 1; t.CountOrMeasure = "M"; t.TreeNumber = i + 1; t.Save(); this.AddTree(t); } }
public void Tally(IPlotDataService dataService, IFixCNTTallyBucket tallyBucket) { var tree = dataService.CreateNewTreeEntry(this, tallyBucket.TallyPopulation.SampleGroup, tallyBucket.TallyPopulation.TreeDefaultValue, false); tallyBucket.TallyPopulation.TallyClass.SetTreeFieldValue(tree, tallyBucket); if (tree.TrySave()) { Trees.Add(tree); } NotifyTallyCountChanged(tallyBucket); }
public Form3PPNTPlotInfo(IPlotDataService dataService) { DataService = dataService; InitializeComponent(); }