这个Public Stop(){} 类中 有很多个没有访问修饰符的方法 请问这些方法的作用是干嘛的啊
王八驮石碑 2016-04-22 10:05:12 public void Stop()
{
this.threadNeedQuit = true;
while (this.thread != null && this.thread.ThreadState != ThreadState.Stopped)
Thread.Sleep(1);
this.thread = null;
this.waitingOrderList.CollectionChanged -= this.waitingOrderList_CollectionChanged;
this.UnloadDevices();
}
/// <summary>
/// 加载本区设备。
/// </summary>
void LoadDevices()
{
string xgateSql = "SELECT DISTINCT XGateIP FROM Location";
using (DbDataReader reader = database.ExecuteReader(CommandBehavior.CloseConnection, CommandType.Text, xgateSql, null))
{
while (reader.Read())
{
string ip = reader.GetString(0);
XGate xgate = new XGate(ip, 2);
xgate.ScannedCodeCallback += xgate_ScannedCodeCallback;
xgate.PickedInforCallback += xgate_PickedInforCallback;
xgate.DeviceErrorCallback += xgate_DeviceErrorCallback;
this.xgateList.Add(xgate);
}
}
下面还很多这样的 void Name()的方法 不知道是用来干嘛的 有什么特殊意义么 为什么都要不加修饰符的写在这个类中