private void bAssignCard_Click(object sender, EventArgs e) { ButtonControl(false); CardThread = new CardThreading(); CardThread.CardPresent += this.AssignCard_WhenCardPresent; this.Invoke(CardThread.CardChecking); }
private void InitMenu() { CardThread = new CardThreading(); CardAccess = new CardTableAccess(); Task cardState = new Task(CardThread.CardChecking.Invoke); cardState.Start(); CardThread.CardPresent += this.OnCardPresent; Member = new MemberClass(); }
private void InitMenu() { CardThread = new CardThreading(); MemberAccess = new MemberTableAccess(); connActive = false; MemberAccess.NewMemTriggered += this.ExNewMemTriggered; MemberAccess.CheckInTriggered += this.ExCheckInTriggered; Task cardState = new Task(CardThread.CardChecking.Invoke); cardState.Start(); //CardState = new Task(CardThread.CardChecking.Invoke); //CardState.Start(); //CardThread.CardPresent += this.WhenCardPresent; //CardThread.CardAbsent += this.AutoReverse; //CardThread.CardResourceFailed += this.ExCardResourceReset; bSCard.Enabled = false; }
public AddCard() { InitializeComponent(); CardProcess = new CardThreading(); }