예제 #1
0
        private void hlSelectImg_OpenLink(object sender, DevExpress.XtraEditors.Controls.OpenLinkEventArgs e)
        {
            OpenFileDialog dialog = new OpenFileDialog
            {
                Title  = "选择缩略图",
                Filter = "所有图片格式(.JPG;PNG;BMP)|*.JPG;*.PNG;*.BMP"
            };

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                this.picThumbnail.Image = Image.FromFile(dialog.FileName);
            }
        }
예제 #2
0
 private void hyperLinkEdit1_OpenLink(object sender, DevExpress.XtraEditors.Controls.OpenLinkEventArgs e)
 {
     try
     {
         if (hyperLinkEdit1.EditValue != null)
         {
             System.Diagnostics.Process.Start(hyperLinkEdit1.EditValue.ToString());
         }
     }
     catch (Exception ex)
     {
         ErrorHandler.Show(ex);
     }
 }
 private void hyperLinkEditReset_OpenLink(object sender, DevExpress.XtraEditors.Controls.OpenLinkEventArgs e)
 {
     _parent.ResetToDefault();
     e.Handled = true;
 }