示例#1
0
 public TimeEntryCollection FetchAll()
 {
     TimeEntryCollection coll = new TimeEntryCollection();
     Query qry = new Query(TimeEntry.Schema);
     coll.LoadAndCloseReader(qry.ExecuteReader());
     return coll;
 }
示例#2
0
文件: Popup.cs 项目: coenvdwel/bug
        public Popup(ApplicationContext ctx)
        {
            _ctx     = ctx;
            _entries = new TimeEntryCollection();

            InitializeComponent();

            cbInterval.Text = Settings.Default.BugInterval + (Settings.Default.BugInterval == 1 ? " minute" : " minutes");

            SystemEvents.PowerModeChanged += new PowerModeChangedEventHandler(SystemEvents_PowerModeChanged);
            GlobalHotkeyWrapper.RegisterHotKey(this, Keys.Z | Keys.Alt);
        }
示例#3
0
 public TimeEntryCollection FetchByQuery(Query qry)
 {
     TimeEntryCollection coll = new TimeEntryCollection();
     coll.LoadAndCloseReader(qry.ExecuteReader()); 
     return coll;
 }
示例#4
0
 public TimeEntryCollection FetchByID(object Id)
 {
     TimeEntryCollection coll = new TimeEntryCollection().Where("id", Id).Load();
     return coll;
 }
示例#5
0
 public TimeEntryCollection FetchByTimesheetID(int timesheetid)
 {
     TimeEntryCollection coll = new TimeEntryCollection().Where(TimeEntry.Columns.Timesheetid, timesheetid).OrderByAsc(TimeEntry.Columns.Day).Load();
     return coll;
 }