Exemplo n.º 1
0
 public static void ShowPicture(String title, String text, Image image)
 {
     if (dialog == null || dialog.IsDisposed)
     {
         dialog = new SmallDialog_ShowPicture();
     }
     if (text == null)
     {
         text = "";
     }
     dialog.Text = title;
     dialog.richTextBox_Content.Text = text;
     dialog.panel_ImgBG.Controls.Remove(dialog.pictureBox_Img);
     dialog.pictureBox_Img.Size     = new Size(image.Width, image.Height);
     dialog.pictureBox_Img.Image    = image;
     dialog.pictureBox_Img.Location = new Point(0, 0);
     dialog.panel_ImgBG.Controls.Add(dialog.pictureBox_Img);
     dialog.ShowDialog();
 }
 public static void ShowPicture(String title,String text,Image image)
 {
     if (dialog == null || dialog.IsDisposed)
     {
         dialog = new SmallDialog_ShowPicture();
     }
     if (text == null)
     {
         text = "";
     }
     dialog.Text = title;
     dialog.richTextBox_Content.Text = text;
     dialog.panel_ImgBG.Controls.Remove(dialog.pictureBox_Img);
     dialog.pictureBox_Img.Size = new Size(image.Width, image.Height);
     dialog.pictureBox_Img.Image = image;
     dialog.pictureBox_Img.Location = new Point(0, 0);
     dialog.panel_ImgBG.Controls.Add(dialog.pictureBox_Img);
     dialog.ShowDialog();
 }