File name
Commit message
Commit date
File name
Commit message
Commit date
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 KHPANEL
{
public partial class ucScreen : UserControl
{
public int m_SelectIndex = 0;
public ucScreen()
{
InitializeComponent();
}
public void SetScreen(Screen[] screen, int InitNumber)
{
if(screen.Length < InitNumber)
{
labelControl_Title.Text = "";
comboBox_Screen.Visible = false;
return;
}else if(screen.Length != 0)
{
comboBox_Screen.Items.Clear();
for (int i = 0; i < screen.Length; i ++ )
{
comboBox_Screen.Items.Add((i + 1).ToString() + "번 모니터");
}
comboBox_Screen.SelectedIndex = InitNumber - 1;
}
}
[Category("설정"), Description("표시 텍스트")]
public string LabelText
{
get
{
return this.labelControl_Title.Text;
}
set
{
this.labelControl_Title.Text = value;
}
}
private void comboBox_Screen_SelectedIndexChanged(object sender, EventArgs e)
{
m_SelectIndex = comboBox_Screen.SelectedIndex;
}
}
}