private void btnShow_OnClick(object sender, RoutedEventArgs e)
 {
     shbtl = new ShowBottle();
     shbtl.mainWindow = this;
     this.Hide();
     shbtl.Show();
 }
 private void lbBottleNames_MouseDoubleClick(object sender, RoutedEventArgs e)
 {
     if (lbBottleNames.SelectedItem != null)
     {
         if (bottles != null)
         {
             int id = bottles.ElementAt(lbBottleNames.SelectedIndex).ID;
             showBottle = new ShowBottle(id);
             showBottle.mainWindow = this;
             this.Hide();
             showBottle.Show();
         }                
     }
 }