static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new DealingController_CV()); DealingControllerConfig.getInstance(); }
public DealingController_Barcode() { InitializeComponent(); web_client = new WebClient(); try { conf = DealingControllerConfig.getInstance(); } catch (Exception e) { MessageBox.Show(e.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); this.Close(); this.Dispose(); Environment.Exit(0); } tableID = conf.tableID; server_url = "http://" + conf.server_url + "/"; }