コード例 #1
0
ファイル: ListW.xaml.cs プロジェクト: LikaLex/MusicalAlbum
 private void LBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (LBox.SelectedIndex == -1)
     {
         return;
     }
     if (T == typeof(Album))
     {
         Album F = (Album)List[LBox.SelectedIndex];
         Close();
         AlbumW w = new AlbumW(F);
         w.Resources["Style"] = Resources["Style"];
         w.ShowDialog();
     }
     if (T == typeof(Track))
     {
         Track F = (Track)List[LBox.SelectedIndex];
         Close();
         TrackW w = new TrackW(F);
         w.Resources["Style"] = Resources["Style"];
         w.ShowDialog();
     }
     if (T == typeof(Library))
     {
         Library F = (Library)List[LBox.SelectedIndex];
         Close();
         LibW w = new LibW(F);
         w.Resources["Style"] = Resources["Style"];
         w.ShowDialog();
     }
 }
コード例 #2
0
        private void Button_Click_8(object sender, RoutedEventArgs e)
        {
            AlbumW w = new AlbumW(rent.CreateEmptyAlbum());

            w.Resources["Style"] = Resources["Style"];
            w.ShowDialog();
        }
コード例 #3
0
ファイル: LibW.xaml.cs プロジェクト: LikaLex/MusicalAlbum
 private void FL_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (FL.SelectedIndex == -1) return;
     if (MainWindow.ElementsChildrenHaveValidationErrors(GRID) != null) return;
     Album f = D.AlbumsList[FL.SelectedIndex];
     Close();
     AlbumW F = new AlbumW(f);
     F.Resources["Style"] = Resources["Style"];
     F.ShowDialog();
 }
コード例 #4
0
        private void Button_Click_4(object sender, RoutedEventArgs e)
        {
            string name = StringW.GetString("Album's title", rent.Albums);

            if (string.IsNullOrEmpty(name))
            {
                return;
            }
            Album F = (Album)rent.GetObjWithName <Album>(name);

            if (F == null)
            {
                return;
            }
            AlbumW w = new AlbumW(F);

            w.Resources["Style"] = Resources["Style"];
            w.ShowDialog();
        }