Пример #1
0
        private void btnSave_Click(object sender, RoutedEventArgs e)
        {
            SettingDAL dal = new SettingDAL();

            dal.SetValue("公司名称", txtCompanyName.Text);
            dal.SetValue("公司网站", txtCompanySite.Text);
            dal.SetValue("启用生日提醒", (bool)cbBirthDayPrompt.IsChecked);
            dal.SetValue("生日提醒天数", txtBirthDayDays.Text);
            dal.SetValue("员工工号前缀", txtEmployeeNumberPrefix.Text);

            DialogResult = true;
        }
Пример #2
0
        private void btnSave_Click(object sender, RoutedEventArgs e)
        {
            SettingDAL.SetValue("公司名称", txtCompanyName.Text);
            SettingDAL.SetValue("公司网站", txtCompanySite.Text);
            SettingDAL.SetValue("生日提醒天数", txtBirthdayCount.Text);
            SettingDAL.SetValue("员工工号前缀", txtNumberPrefix.Text);
            SettingDAL.SetValue("启用生日提醒", (bool)cbStartBirthdayRemind.IsChecked);

            DialogResult = true;
        }