Ejemplo n.º 1
0
 public Popup(string title, string text, bool yesNo = false)
 {
     InitializeComponent();
     if (yesNo)
     {
         button_no.Visible   = true;
         button_yes.Visible  = true;
         button_quit.Visible = false;
     }
     label_title.Text      = title;
     richTextBox_text.Text = text;
     Form_Main.FadeIn(this, 10);
 }
Ejemplo n.º 2
0
 public PopupImage(string title, Image img, bool yesNo = false)
 {
     InitializeComponent();
     if (yesNo)
     {
         button_no.Visible   = true;
         button_yes.Visible  = true;
         button_quit.Visible = false;
     }
     label_title.Text = title;
     pictureBox_image.BackgroundImage       = img;
     pictureBox_image.BackgroundImageLayout = ImageLayout.Stretch;
     //richTextBox_text.Text = text;
     Form_Main.FadeIn(this, 10);
 }