private void SetInterconnectionData(InvoiceInterconnectionData e) { try { m_ControlState.InvoiceID = e.ID; m_ControlState.ReadOnly = e.ReadOnly; } catch (Exception _ex) { ApplicationError _errr = new ApplicationError("SetInterconnectionData", "InvoiceInterconnectionData", _ex.Message, _ex); this.Controls.Add(_errr.CreateMessage(_errr.At, true)); } }
internal void NewDataEventHandler(object sender, InvoiceInterconnectionData e) { switch (CurrentMachineState) { case InterfaceState.ViewState: Parent.SetInterconnectionData(e); break; case InterfaceState.EditState: case InterfaceState.NewState: default: break; } }