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