コード例 #1
0
ファイル: Form1.cs プロジェクト: artemkramov/hex-uploader
 public MainForm()
 {
     InitializeComponent();
     validator = new Validator();
     device    = new ECRDevice();
     device.HttpClient.HttpErrorEvent += OnHttpError;
     ECRDictionary.InitTranslations();
 }
コード例 #2
0
        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();
        }