本文整理汇总了C#中WindowsFormsApplication13.DataManager.WorkHoursAddProgrammerWorkHoursForDay方法的典型用法代码示例。如果您正苦于以下问题:C# DataManager.WorkHoursAddProgrammerWorkHoursForDay方法的具体用法?C# DataManager.WorkHoursAddProgrammerWorkHoursForDay怎么用?C# DataManager.WorkHoursAddProgrammerWorkHoursForDay使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WindowsFormsApplication13.DataManager
的用法示例。
在下文中一共展示了DataManager.WorkHoursAddProgrammerWorkHoursForDay方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: WorkHoursAddProgrammerWorkHoursForDayTest
public void WorkHoursAddProgrammerWorkHoursForDayTest()
{
DataManager target = new DataManager(); // TODO: Initialize to an appropriate value
float expected = 0; // TODO: Initialize to an appropriate value
float actual;
DateTime day = DateTime.Parse("1.12.12");
actual = target.WorkHoursAddProgrammerWorkHoursForDay(1, 5, day);
Assert.AreEqual(expected, actual);
//Assert.Inconclusive("Verify the correctness of this test method.");
}
示例2: taskDataGridView_CellEndEdit
private void taskDataGridView_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{
try
{
var str = taskDataGridView[e.ColumnIndex, e.RowIndex].Value as string; ;
//MessageBox.Show("str = " + str);
DataManager dm = new DataManager();
DateTime date = Settings1.Default.startCurrentSprint;
var ownerStr = Convert.ToInt32(taskDataGridView.Rows[Convert.ToInt32(e.RowIndex.ToString())].Cells[3].Value.ToString());//taskDataGridView[taskDataGridView.Columns[3].Index, e.RowIndex].Value;
int owner = ((int)ownerStr);
dm.WorkHoursAddProgrammerWorkHoursForDay(owner, int.Parse(str), date.AddDays(e.ColumnIndex - 6));
}
catch
{
//MessageBox.Show("str = null");
}
}