本文整理匯總了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");
}
}