コード例 #1
0
 private void btnShow_OnClick(object sender, RoutedEventArgs e)
 {
     shbtl = new ShowBottle();
     shbtl.mainWindow = this;
     this.Hide();
     shbtl.Show();
 }
コード例 #2
0
 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();
         }                
     }
 }