public bool EditDialog(MainWindow p, Bicycle bFromList)
        {
            bicycle = new DependencyBicycleValidation(bFromList);
            CustomBicycleAddDialog s = new CustomBicycleAddDialog(bicycle);

            s.Owner = p;
            p.GridBackground.Opacity = 1;
            Panel.SetZIndex(p.GridBackground, 1);
            if (s.ShowDialog() == true)
            {
                p.GridBackground.Opacity = 0;
                Panel.SetZIndex(p.GridBackground, 0);
                return(true);
            }
            p.GridBackground.Opacity = 0;
            Panel.SetZIndex(p.GridBackground, 0);
            return(false);
        }
Exemplo n.º 2
0
 public CustomBicycleAddDialog(DependencyBicycleValidation bicycle)
 {
     Resources.Add("bicycle", bicycle);
     InitializeComponent();
 }