private void ShowApplyImage_Form_Load(object sender, EventArgs e) { try { // 'WindowState = FormWindowState.Maximized ApplyImage_Class d_applyimage = new ApplyImage_Class(); if (d_applyimage.OpenPath()) { Bitmap d_dmp =(Bitmap) Image.FromFile(CurPath); string d_GetValue = RisSetup_Class.GetINI("setup", "ApplyImageBig"); if (d_GetValue == "") { d_GetValue = "0.5"; } image_PictureBox.Width =Convert .ToInt32 ( d_dmp.Width * Convert.ToSingle(d_GetValue)); image_PictureBox.Height = Convert .ToInt32 ( d_dmp.Height * Convert.ToSingle(d_GetValue)); image_PictureBox.Image = d_dmp; } else { ShowErr_Form d_ErrForm = new ShowErr_Form("无法调出申请单图片", "错误"); d_ErrForm.ShowDialog(); Close(); } } catch { ShowErr_Form d_ErrForm = new ShowErr_Form("无法调出申请单图片", "错误"); d_ErrForm.ShowDialog(); Close(); } Radio_doctor_TextEdit.Text = CurRadio_doctor; }
private void Old_SimpleButton_Click(object sender, EventArgs e) { ApplyImage_Class d_applyimage = new ApplyImage_Class(); if (d_applyimage.OpenPath()) { Bitmap d_dmp =(Bitmap) Image.FromFile(CurPath); image_PictureBox.Width = d_dmp.Width; image_PictureBox.Height = d_dmp.Height; image_PictureBox.Image = d_dmp; } curRotate = 0; }