Ejemplo n.º 1
0
        public static void ChooseImage(ref PictureEdit picture_edit, ref string file_name)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.Filter      = FileEngine.GetImageFilterOpenFile();
            ofd.Multiselect = false;
            ofd.Title       = ConfigEngine.Language.Equals("vi") ? "Chọn hình ảnh" : "Choose an image";
            if (ofd.ShowDialog() == DialogResult.OK)
            {
                picture_edit.Image = Image.FromFile(ofd.FileName);
                file_name          = ofd.FileName;
            }
        }