本文整理汇总了C#中Task.ReadActiveUC方法的典型用法代码示例。如果您正苦于以下问题:C# Task.ReadActiveUC方法的具体用法?C# Task.ReadActiveUC怎么用?C# Task.ReadActiveUC使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Task
的用法示例。
在下文中一共展示了Task.ReadActiveUC方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btnCancel_Click
protected void btnCancel_Click(object sender, EventArgs e)
{
Task task = new Task();
GridViewRow gvRow = (GridViewRow)(sender as Control).Parent.Parent;
int taskID = Convert.ToInt32(gvTasks.DataKeys[gvRow.RowIndex].Value);
task.DeleteActiveTask(taskID);
Master.Msgbox(Utility.Message);
gvTasks.DataSource = task.ReadActive();
gvTasks.DataBind();
gvUcTasks.DataSource = task.ReadActiveUC();
gvUcTasks.DataBind();
}
示例2: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ViewState["clickTracker"] = "1";
Task task = new Task();
gvTasks.DataSource = task.ReadActive();
gvTasks.DataBind();
gvUcTasks.DataSource = task.ReadActiveUC();
gvUcTasks.DataBind();
gvMcTasks.DataSource = task.ReadActiveMC();
gvMcTasks.DataBind();
GetMCInfo();
Master.Msgbox(Utility.Message);
}
}
示例3: Timer_Tick
protected void Timer_Tick(object sender, EventArgs e)
{
Task task = new Task();
gvTasks.DataSource = task.ReadActive();
gvTasks.DataBind();
gvUcTasks.DataSource = task.ReadActiveUC();
gvUcTasks.DataBind();
UpdatePanel1.Update();
}
示例4: cancelTasks_Click
protected void cancelTasks_Click(object sender, EventArgs e)
{
Task task = new Task();
task.CancelAll();
gvMcTasks.DataSource = task.ReadActiveMC();
gvMcTasks.DataBind();
gvUcTasks.DataSource = task.ReadActiveUC();
gvUcTasks.DataBind();
gvTasks.DataSource = task.ReadActive();
gvTasks.DataBind();
Master.Msgbox(Utility.Message);
}