public Insurance(PRINT_TYPE pType, string iaCode, EagleProtocal.MyTcpIpClient socket, EagleString.CommandPool cmdpool) { //lock (Instance) { CheckForIllegalCrossThreadCalls = false; if (Instance != null) { Instance.Dispose(); Instance = null; return; } InitializeComponent(); m_socket = socket; m_cmdpool = cmdpool; Insurance.Instance = this; GetProductList(iaCode); this.cmbCardType.DataSource = Enum.GetNames(typeof(EagleWebService.IdentityType)); cmbCardType.SelectedIndex = 0; this.tsbUsername.Text = Options.GlobalVar.IAUsername; } }
//added by king public Insurance GetIA(string iaCode) { ia = new Insurance(PRINT_TYPE.INSURANCE, iaCode, socket, pool); return(ia); }
public void ShowIA(string iaCode) { ia = new Insurance(PRINT_TYPE.INSURANCE, iaCode, socket, pool); ia.ShowDialog(); }
private void btnExit_Click(object sender, EventArgs e) { Instance = null; this.Close(); this.Dispose(); }