Ejemplo n.º 1
0
        public void InstantiateIn(Control container)
        {
            switch (templateType)
            {
            case DataControlRowType.DataRow:
                WfStatusControl statusCtl = new WfStatusControl();
                statusCtl.ID           = "ProcessStatus";
                statusCtl.DataBinding += new EventHandler(statusCtl_DataBinding);
                container.Controls.Add(statusCtl);
                break;

            case DataControlRowType.EmptyDataRow:
                break;

            case DataControlRowType.Footer:
                break;

            case DataControlRowType.Header:
                break;

            case DataControlRowType.Pager:
                break;

            case DataControlRowType.Separator:
                break;

            default:
                break;
            }
        }
Ejemplo n.º 2
0
        void statusCtl_DataBinding(object sender, EventArgs e)
        {
            WfStatusControl statusCtl = (WfStatusControl)sender;
            GridViewRow     row       = (GridViewRow)statusCtl.NamingContainer;

            statusCtl.ResourceID = DataBinder.Eval(row.DataItem, "RelativeID").ToString();
        }
Ejemplo n.º 3
0
 public void InstantiateIn(Control container)
 {
     switch (templateType)
     {
         case DataControlRowType.DataRow:
             WfStatusControl statusCtl = new WfStatusControl();
             statusCtl.ID = "ProcessStatus";
             statusCtl.DataBinding += new EventHandler(statusCtl_DataBinding);
             container.Controls.Add(statusCtl);
             break;
         case DataControlRowType.EmptyDataRow:
             break;
         case DataControlRowType.Footer:
             break;
         case DataControlRowType.Header:
             break;
         case DataControlRowType.Pager:
             break;
         case DataControlRowType.Separator:
             break;
         default:
             break;
     }
 }