Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
 //added by king
 public Insurance GetIA(string iaCode)
 {
     ia = new Insurance(PRINT_TYPE.INSURANCE, iaCode, socket, pool);
     return(ia);
 }
Exemplo n.º 3
0
 public void ShowIA(string iaCode)
 {
     ia = new Insurance(PRINT_TYPE.INSURANCE, iaCode, socket, pool);
     ia.ShowDialog();
 }
Exemplo n.º 4
0
 private void btnExit_Click(object sender, EventArgs e)
 {
     Instance = null;
     this.Close();
     this.Dispose();
 }