public MainForm() { InitializeComponent(); validator = new Validator(); device = new ECRDevice(); device.HttpClient.HttpErrorEvent += OnHttpError; ECRDictionary.InitTranslations(); }
public MainForm() { int screenWidth = Screen.PrimaryScreen.Bounds.Width; //this.MaximumSize = new System.Drawing.Size(screenWidth, this.Height); InitializeComponent(); validator = new Validator(); device = new ECRDevice(); device.HttpClient.HttpErrorEvent += OnHttpError; device.HttpErrorEvent += OnHttpError; ECRDictionary.InitTranslations(); }