private void Pic_Edit(object sender, EventArgs e)
        {
            string         path   = (string)(((MenuItem)sender).Tag);
            AddImageWindow window = new AddImageWindow();
            ImageData      img    = ImageDataList.Images.FromPath(path);

            if (img != null)
            {
                window.ImgData = img;
                window.ShowDialog();
            }

            window = null;
        }
Ejemplo n.º 2
0
        private void menuItemAddImage_Click(object sender, RoutedEventArgs e)
        {
            var aiw = new AddImageWindow();

            aiw.ShowDialog();
        }