void EventUpdateSelectedWells() { var selectedNames = new List <string>(); var names = new List <string>(); foreach (object item in listNames.SelectedItems) { selectedNames.Add(item.ToString()); } foreach (object item in listNames.Items) { names.Add(item.ToString()); } // Update Tabs foreach (ITabObserver item in tabObservers) { var data = new TabSelectedWellsData { selectedNames = selectedNames, type = namesType, names = names }; item.UpdateSelectedWells(data); } }
public void UpdateSelectedWells(TabSelectedWellsData data) { // Update Tabs foreach (ChartControl item in tableLayoutPanel1.Controls) { item.UpdateNames(data.selectedNames, data.type); } }
public void UpdateSelectedWells(TabSelectedWellsData data) { System.Diagnostics.Debug.WriteLine("Event Selected Wells"); suspendEvents = true; selectedVectors.Clear(); foreach (string wellname in data.names) { selectedVectors.Add(model.GetDataVector(wellname)); } UpdateChart(); suspendEvents = false; }
public void UpdateSelectedWells(TabSelectedWellsData data) { // None }