Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
        public void UpdateSelectedWells(TabSelectedWellsData data)
        {
            // Update Tabs

            foreach (ChartControl item in tableLayoutPanel1.Controls)
            {
                item.UpdateNames(data.selectedNames, data.type);
            }
        }
Beispiel #3
0
        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;
        }
Beispiel #4
0
 public void UpdateSelectedWells(TabSelectedWellsData data)
 {
     // None
 }