Ejemplo n.º 1
0
        public StartWindow()
        {
            ch = new BLL.CamearHelper();
            bool res = ch.getMysqlConfig();

            if (res == true)
            {
                LoginPark lp = new LoginPark();
                lp.ShowDialog();
                this.Close();
            }
            else
            {
                InitializeComponent();
                cc = new ServerPreferencesControl();
                cc.LoadDefaultConfig();
                //传参数到UI界面
                ServerEntity SQLdata = cc.GetServerConfig();
                txtservername.Text = SQLdata.Server;
                txtport.Text       = SQLdata.Port.ToString();
                txtsqlname.Text    = SQLdata.Database;
                txtusername.Text   = SQLdata.User;
                txtpwd.Text        = SQLdata.Password;
            }
        }
Ejemplo n.º 2
0
        System.Windows.Threading.DispatcherTimer timer;//动态显示当前时间
        public ParkForm()
        {
            InitializeComponent();
            upc = new UserParkingControl();//实例化车牌数据库函数
            ptc = new ParkTicketControl();
            ch  = new BLL.CamearHelper();
            Model.DicValue.TicketTypeList = new System.Collections.Generic.List <System.Collections.Generic.Dictionary <string, int> >();
            ch.getsystempath();//获得根目录
            Window w = new Window();

            startcamera(w);
            CallbackFuntion();
            GetMangerInfo();
            w.Close();
        }