Programm_Wirl/UCAuftrag.cs
2025-04-28 08:31:23 +02:00

42 lines
1011 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Deckungsbeitrag
{
public partial class UCAuftrag : UserControl
{
public UCAuftrag()
{
InitializeComponent();
this.Size = new Size(265, 70);
this.pictureBoxCollapse.Visible = false;
this.textBoxExtra.Enabled = false;
if (!string.IsNullOrEmpty(textBoxExtra.Text)) pictureBoxExpand.BackColor = Color.Yellow;
else pictureBoxExpand.Enabled = false;
//Priorität mit BackColor...!!
}
private void pictureBoxes_Click(object sender, EventArgs e)
{
if(this.Size.Height == 148)
{
this.Size = new Size(200, 60);
this.pictureBoxCollapse.Visible = false;
this.pictureBoxExpand.Visible = true;
}
else
{
this.Size = new Size(200, 148);
this.pictureBoxCollapse.Visible = true;
this.pictureBoxExpand.Visible = false;
}
}
}
}