Esempio n. 1
0
        public static void CreateInfoWindow(Item item)
        {
            var window = new AdditionalInfoWindow
            {
                DataContext = new InfoWindowViewModel(item)
            };

            window.Show();
        }
        public void ShowAdditionalInfoWindow()
        {
            AdditionalInfo additionalInfo = new AdditionalInfo();

            additionalInfoWindow = new AdditionalInfoWindow(additionalInfo);
            additionalInfoWindow.Show();
            if (additionalInfoWindow.IsVisible == false)
            {
                Assert.Fail();
            }
            else
            {
                additionalInfoWindow.Hide();
                Assert.Pass();
            }
        }