Пример #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();
     }
 }
Пример #2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     if (MainWindow.ElementsChildrenHaveValidationErrors(GRID) == null && F.Library != null)
     {
         Library d = F.Library;
         Close();
         LibW D = new LibW(d);
         D.Resources["Style"] = Resources["Style"];
         D.ShowDialog();
     }
 }
Пример #3
0
        private void Button_Click_6(object sender, RoutedEventArgs e)
        {
            string name = StringW.GetString("Library's name", rent.Libraries);

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

            if (D == null)
            {
                return;
            }
            LibW w = new LibW(D);

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