1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| public enum States{ Alabama, // ... Wyoming} BitArray baStatesIveVisited = new BitArray(50); baStatesIveVisited[(int)States.Minnesota] = true; baStatesIveVisited[(int)States.Wisconsin] = true; baStatesIveVisited[(int)States.California] = true; States nextState = States.Alabama; foreach (bool b in baStatesIveVisited) Console.WriteLine("{0}:{1}", nextState++, b); |
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO.Ports; namespace SerialTest1 { public partial class Form1 : Form { delegate void MyDelegate(); //델리게이트 선언(크로스 쓰레드 해결하기 위한 용도) bool SendForamt = true; // true : ASCII false : HEX bool ReceiveFormat = true; // true : ASCII false : HEX public Form1() { InitializeComponent(); ...
댓글