private void IconBorder_MouseLeftButtonUp(object obj, MouseButtonEventArgs e) { if (!IsMouseLeftButtonDown) { return; } window = null; if (Command != null) { this.Command.Execute(obj); } window = CreateNewWindow(SearchFor); window.ShowDialog(); if (ChecksRelationship() && _telaFavored.GetVM().fav != null) { SetTypeFavored(); } else if (ChecksMaterials() && _telaFavored.GetVM().mat != null) { SetTypeMaterial(); } IsMouseLeftButtonDown = false; }
private Window CreateNewWindow(SearchFor searchFor) { window = null; window = new Window(); window.Height = 650; window.Width = 750; _telaFavored = new SearchFavored(SearchFor); window.Content = _telaFavored; _telaFavored.GetVM().RecebeWindow(window); return(window); }