public MainForm() { InitializeComponent(); dtime = new Timer() { Interval = 1000 }; dtime.Tick += new EventHandler(Dtime_tick); posconfig = new PosConfig(); //posback = new PosBack(); logonform = new LogOnForm(); _pageNum = 1; _loginPattern = posconfig.LoginPattern; }
private void LogOnForm_Load(object sender, EventArgs e) { posconfig = new PosConfig(); posconfig.GetIPAndPort(ref ip, ref port); }