Exemplo n.º 1
0
        //load from URL
        private void load_from_url(object sender, RoutedEventArgs e)
        {
            SimpleTextDialog std = new SimpleTextDialog();

            if (std.ShowDialog() == true)
            {
                m_vs_wrapper.Initialize(std.ResponseText);

                image_filename = m_vs_wrapper.GetFilename();

                BitmapSource bs = SetOrigAsImage();
                if (bs == null)
                {
                    MessageBox.Show("Cannot get image to display");
                    return;
                }

                myBitmapImage = bs;

                propertyGrid.Instance = m_vs_wrapper.getParamsWrapper();
            }
        }
Exemplo n.º 2
0
        //load from URL
        private void load_from_url(object sender, RoutedEventArgs e)
        {
            SimpleTextDialog std = new SimpleTextDialog();
            if (std.ShowDialog() == true)
            {
                m_vs_wrapper.Initialize(std.ResponseText);

                image_filename = m_vs_wrapper.GetFilename();

                BitmapSource bs = SetOrigAsImage();
                if (bs == null)
                {
                    MessageBox.Show("Cannot get image to display");
                    return;
                }

                myBitmapImage = bs;

                propertyGrid.Instance = m_vs_wrapper.getParamsWrapper();
            }
        }