public UserDefineDataItem()
 {
     InitializeComponent();
     _DeleteDataList = new List<UserDefineData.DAL.UserDefData>();
     _InsertDataList = new List<UserDefineData.DAL.UserDefData>();
     _UserDefDataDict = new Dictionary<string, UserDefineData.DAL.UserDefData>();
     _CheckSameList = new List<string>();
     // 取得使用者設定欄位型態
     _UseDefineDataType = Global.GetUserConfigData();
     prlp = new PermRecLogProcess();
     Group = "教師自訂資料欄位";
     _BGWorker = new BackgroundWorker();
     _BGWorker.DoWork += new DoWorkEventHandler(_BGWorker_DoWork);
     _BGWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_BGWorker_RunWorkerCompleted);
     ChangeManager.Add(new DataGridViewSource(dgv));
     ChangeManager.StatusChanged += delegate(object sender, ChangeEventArgs e)
     {
         this.CancelButtonVisible = (e.Status == ValueStatus.Dirty);
         this.SaveButtonVisible = (e.Status == ValueStatus.Dirty);
     };
 }
Esempio n. 2
0
 public UserDefineDataItem()
 {
     InitializeComponent();
     _DeleteDataList = new List <UserDefineData.DAL.UserDefData>();
     _InsertDataList = new List <UserDefineData.DAL.UserDefData>();
     //_UserDefDataDict = new Dictionary<string, UserDefineData.DAL.UserDefData>();
     _UserDefDataList = new List <DAL.UserDefData>();
     _CheckSameList   = new List <string>();
     // 取得使用者設定欄位型態
     _UseDefineDataType = Global.GetUserConfigData();
     prlp                          = new PermRecLogProcess();
     Group                         = "自訂資料欄位";
     _BGWorker                     = new BackgroundWorker();
     _BGWorker.DoWork             += new DoWorkEventHandler(_BGWorker_DoWork);
     _BGWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_BGWorker_RunWorkerCompleted);
     ChangeManager.Add(new DataGridViewSource(dgv));
     ChangeManager.StatusChanged += delegate(object sender, ChangeEventArgs e)
     {
         this.CancelButtonVisible = (e.Status == ValueStatus.Dirty);
         this.SaveButtonVisible   = (e.Status == ValueStatus.Dirty);
     };
 }