Пример #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new DealingController_CV());
     DealingControllerConfig.getInstance();
 }
Пример #2
0
 public static DealingControllerConfig getInstance()
 {
     if (self == null)
     {
         self = new DealingControllerConfig();
     }
     return(self);
 }
Пример #3
0
 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 + "/";
 }