Exemplo n.º 1
0
        private void ListOfPlacesForSetting_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            int index = ListOfPlacesForSetting.IndexFromPoint(e.Location);

            if (index != System.Windows.Forms.ListBox.NoMatches)
            {
                var item        = (Place)ListOfPlacesForSetting.Items[index];
                var ChangePlace = new NewPlace(DataOfAllPlaces, item);
                ChangePlace.Show();
            }
        }
Exemplo n.º 2
0
 private void AddPlaceAdmin_Click(object sender, EventArgs e)
 {
     if (Files.Count() == 0)
     {
         var MenuNewPlace = new NewPlace();
         MenuNewPlace.Show();
     }
     else
     {
         var MenuNewPlace = new NewPlace()
         {
             AllPlaces = DataOfAllPlaces
         };
         MenuNewPlace.Show();
     }
 }