internal static string PickUpName()
        {
            var wdw = new AddFlightToHistory();

            wdw.ShowDialog();

            var result = wdw.AreaName;

            wdw.Close();

            return(result);
        }
Ejemplo n.º 2
0
        private void CmdSave_Execute(object obj)
        {
            string name = AddFlightToHistory.PickUpName();

            if (!string.IsNullOrEmpty(name))
            {
                var area = AreasOfInterest.First();
                area.Name = name.ToUpper();

                SavedAreasOfInterest.Add(area);
                NotifyPropertyChanged("SavedAreasOfInterest");
            }
        }