예제 #1
0
 private void btnAddWatermark_Click(object sender, RoutedEventArgs e)
 {
     if (ImageListBox.SelectedItem == null)
     {
         System.Windows.MessageBox.Show("Please Add Images to Continue");
     }
     else
     {
         ImageDb          img = (ImageDb)ImageListBox.SelectedItem;
         WatermarkManager wm  = new WatermarkManager(img);
         var newWindow        = wm;
         wm.ShowDialog();
     }
 }
예제 #2
0
        public WatermarkManager(ImageDb img)
        {
            InitializeComponent();
            currentFile  = img.Title;
            ImgWm.Source = img.picture;
            List <int> size = new List <int>();

            for (int i = 0; i < 100; i++)
            {
                size.Add(i);
            }
            cmbFontSize.ItemsSource = size;
            System.Windows.MessageBox.Show("Kindly use preview button to show the watermark on the Image");
        }