Index: DamClients/DamUI/trunk/src/Dam/Forms/DamPlugin.cs =================================================================== diff -u -r6759 -r6760 --- DamClients/DamUI/trunk/src/Dam/Forms/DamPlugin.cs (.../DamPlugin.cs) (revision 6759) +++ DamClients/DamUI/trunk/src/Dam/Forms/DamPlugin.cs (.../DamPlugin.cs) (revision 6760) @@ -95,8 +95,6 @@ HideUnusedColumns = true }; - private readonly LocationChart locationChart = new LocationChart(); - private readonly GridViewControl designCalculationsControl = new GridViewControl { Name = "DesignCalculations", @@ -180,16 +178,6 @@ } } - /// - /// Gets or sets a value indicating whether this instance is chart visible. - /// Only needed as a place holder to be able to switch the visibility of the main chart tab. - /// The actual value itself is never (to be) used. - /// - /// - /// true if this instance is chart visible; otherwise, false. - /// - public bool IsChartVisible { get; set; } - [Browsable(false)] public bool StabilityKernelTypeSpecificationsVisible { get; set; } [Label("Options")] @@ -323,12 +311,6 @@ public bool IsVisible(string property) { - switch (property) - { - case "IsChartVisible": - return damProject.DamProjectData.DamProjectType != DamProjectType.Design; - } - return true; } @@ -416,7 +398,6 @@ mainForm.UseOutput(); mainForm.UseImage(); mainForm.UseTables(); - mainForm.UseCharts(); mainForm.UseValidation(); mainForm.AddControl(mapControl); @@ -430,7 +411,6 @@ ConfigureNavigation(); ConfigurePropertyGrid(); - ConfigureChart(); ConfigureTable(); ConfigureSoilMechanisms(); } @@ -548,16 +528,6 @@ MechanismSupport.Mechanisms = Soil.Mechanisms; } - private void ConfigureChart() - { - //locationChart = new LocationChart(); - mainForm.DynamicChartControl.RegisterChart(typeof(TimeSerie), locationChart, "Time Series"); - BindSupport.Bind(locationJobPanel, locationChart.Parent, typeof(LocationJob), "WaterLevelTimeSerie", BindingType.Visibility); - - // Bind the main tab "Chart" to be able to show it only when needed. - BindSupport.Bind(panel, locationChart.Parent.Parent.Parent.Parent.Parent, typeof(DamPlugin), "IsChartVisible", BindingType.Visibility); - } - /// /// Adds the menus and their bind support. ///