Esempio n. 1
0
        public CreateRecord()
        {
            InitializeComponent();

            string dbType = ConfigurationSettings.AppSettings["DBType"];

            if (dbType.Equals("Filesystem", StringComparison.CurrentCultureIgnoreCase))
                RecordLogic = new PersonalCenter.Service.Impl.Filesystem.Record.RecordLogic();
            else
                RecordLogic = new PersonalCenter.Service.Impl.Database.Record.RecordLogic();
        }
Esempio n. 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            string dbType = ConfigurationSettings.AppSettings["DBType"];

            if (dbType.Equals("Filesystem", StringComparison.CurrentCultureIgnoreCase))
            {
                RecordLogic = new PersonalCenter.Service.Impl.Filesystem.Record.RecordLogic();
                UserLogic = new PersonalCenter.Service.Impl.Filesystem.User.UserLogic();
            }
            else
            {
                RecordLogic = new PersonalCenter.Service.Impl.Database.Record.RecordLogic();
                UserLogic = new PersonalCenter.Service.Impl.Database.User.UserLogic();
            }

            Pager = new PageView();

            Init();

            siStatus.Caption = string.Format("����,{0}��", CurrUser.Uname);
            siDate.Caption = string.Format(DateTime.Now.ToLongDateString() + " " + DateTime.Now.ToShortTimeString());
        }