コード例 #1
0
 protected virtual void OnSaveImage(SaveImageEventArgs e)
 {
     if (SaveImage != null)
     {
         SaveImage(this, e);
     }
 }
コード例 #2
0
        private void btnOK_Click(object sender, RoutedEventArgs e)
        {
            // get the file name
            string fileName = txtImageName.Text + ".png";

            bool overwrite = chkbOverwrite.IsChecked.Value;

            SaveImageEventArgs eArgs = new SaveImageEventArgs(Path, fileName, overwrite);

            OnSaveImage(eArgs);
            this.Close();
        }