Exemplo n.º 1
0
        private void Listbox1_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            selecti = Listbox1.SelectedItem;



            try
            {
                //var view = new AllView();

                //this.Close();
                //view.ShowDialog();

                //var all = new All();
                //all.ViewFiles = (sender as ListBox).SelectedItem as Files;

                var viewImage = new ViewImage();

                viewImage.MyData    = FileList;
                viewImage.ViewFiles = Listbox1.SelectedItem as Files;
                viewImage.ShowDialog();

                //var viewImage = new ViewImage();

                //viewImage.file = (sender as ListBox).SelectedItem as Files;
                //viewImage.ShowDialog();
            }
            catch (Exception)
            {
            }
        }
Exemplo n.º 2
0
        private void ViewMenuButton_Click(object sender, RoutedEventArgs e)
        {
            if (AddMenuButton.IsChecked == true)
            {
                var viewImage = new ViewImage();

                viewImage.MyData    = FileList;
                viewImage.ViewFiles = Listbox1.SelectedItem as Files;


                viewImage.ShowDialog();
            }
        }