コード例 #1
0
 public void addEvent(EventViewModel evm)
 {
     this.eventVMList_.Add(evm);
     this.sortEvent();
 }
コード例 #2
0
 public void updateEvent(EventViewModel evm)
 {
     evm.dbUpdate();
 }
        // d : position 기준일
        public static void loadWholeEvent(DateTime d)
        {
            OTCApplicationEventViewModel.WholeEventViewModel_.Clear();
            OTCApplicationEventViewModel._eventViewModelMap_.Clear();

            EVENT_INFO_Table_DAOManager daoManager = new EVENT_INFO_Table_DAOManager();

            //daoManager.KeyColumn_ = d.ToString("yyyyMMdd");

            daoManager.selectAll(DataBaseConnectManager.ConnectionFactory("myDB"));

            foreach (var item in daoManager.DAOList_)
            {
                EventViewModel e_vm = new EventViewModel();

                e_vm.setFromDAO(item);

                OTCApplicationEventViewModel.WholeEventViewModel_.Add(e_vm);
                //OTCApplicationEventViewModel._eventViewModelMap_.Add(
                //    e_vm.Event_date_.ToString(StringFormat.DbDateFormat_), e_vm);

            }
        }