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

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