Beispiel #1
0
 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();
     }
 }
Beispiel #2
0
        private void AL_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (AL.SelectedIndex == -1)
            {
                return;
            }
            if (MainWindow.ElementsChildrenHaveValidationErrors(GRID) != null)
            {
                return;
            }
            Track a = F.TracksList[AL.SelectedIndex];

            Close();
            TrackW A = new TrackW(a);

            A.Resources["Style"] = Resources["Style"];
            A.ShowDialog();
        }
        private void Button_Click_5(object sender, RoutedEventArgs e)
        {
            string name = StringW.GetString("Track's name", rent.Tracks);

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

            if (A == null)
            {
                return;
            }
            TrackW w = new TrackW(A);

            w.Resources["Style"] = Resources["Style"];
            w.ShowDialog();
        }
        private void Button_Click_9(object sender, RoutedEventArgs e)
        {
            TrackW w = new TrackW(rent.CreateEmptyTrack());

            w.ShowDialog();
        }