카테고리 없음
C# comboBox부분 void 처리에 대해 질문이 있습니다
시스이
2018. 7. 23. 13:26
private void Thread1()
{
while (true)
{
if (threadstate)
{
Thread1();
Thread.Sleep(1000);
}
}
}
void Thread1()
{
if (radioButton1.Checked)
{
MouseClickEvt();
Thread.Sleep(1000);
CheckForIllegalCrossThreadCalls = false;
if (comboBox2.Text == "처리1")
처리();
else if (comboBox2.Text == "처리2")
else if (comboBox2.Text == "처리3")
if(checkBox2.Checked)
{
radioButton4.Checked = true;
}
else
radioButton1.Checked = true;
}
현재 스레드 내부입니다.
문제점이
if (comboBox2.Text == "처리1")
처리();
이부분에
처리(); 이부분을 따로 void로 siwtch작업을 해두었습니다.
처리(); 이부분을 따로 void로 siwtch작업을 해두었습니다.
그런데 void 처리(); 이부분을 작업을 안하고 멈추게 되어서 이렇게 질문을 드리게 되었습니다.