public override void ViewWillAppear()
        {
            base.ViewWillAppear();

            // Tell the app delegate that we're alive.
            App.FilmInfoController = this;

            // Inactivate screenings view actions.
            App.Controller.RunningPopupsCount++;

            // Get the selected film.
            _film = ((IScreeningProvider)Presentor).CurrentFilm;

            // Get the downloaded film info if present.
            _filmInfo = ViewController.GetFilmInfo(_film.FilmId);

            // Set basis dimensions.
            var dialogFrame = View.Frame;

            _yCurr        = (float)dialogFrame.Height;
            _contentWidth = (float)dialogFrame.Width - 2 * _xMargin;

            // Create the controls that were not defined in Xcode.
            PopulatieDialogView();

            // Disable resizing.
            Presentor.DisableResizing(this, _sampleView);
        }
Beispiel #2
0
        public void BindData()
        {
            var p = new Presentor();

            repSortStyle.DataSource = p.Schema;
            repSortStyle.DataBind();
        }
        public void BindData()
        {
            var p = new Presentor();
            repCols.DataSource = p.Schema;
            repCols.DataBind();

            repWidth.DataSource = p.Schema;
            repWidth.DataBind();
        }
Beispiel #4
0
        //protected void HeaderTitleLink_Click(Object sender, EventArgs e)
        //{
        //    var linkHeaderButton = sender as LinkButton;
        //    if (linkHeaderButton != null && !String.IsNullOrEmpty(linkHeaderButton.CommandName))
        //    {

        //        FieldName = (FieldName)Enum.Parse(typeof(FieldName), linkHeaderButton.CommandName);

        //        //if (FieldName.ToString() == row.Item1.ToString())
        //        //{
        //        //    if (IsDesc)
        //        //        imgSortType.CssClass = cssDown;
        //        //    else
        //        //        imgSortType.CssClass = cssUp;

        //        //}
        //        //else
        //        //{
        //        //    imgSortType.CssClass = cssDefault;
        //        //}

        //        if (FieldNameSortingEventHandler != null)
        //        {
        //            FieldNameSortingEventHandler(sender, new FieldNameSortingEventArgs { FieldName = FieldName, IsDesc = IsDesc });
        //        }
        //    }
        //}

        public void BindData()
        {
            var p = new Presentor();

            repCols.DataSource = p.Schema;
            repCols.DataBind();

            repWidth.DataSource = p.Schema;
            repWidth.DataBind();
        }
Beispiel #5
0
 protected void CampaignsConflitListViewDataBound(object sender, ListViewItemEventArgs e)
 {
     if (e.Item.ItemType == ListViewItemType.DataItem)
     {
         var t1        = (HtmlTableRow)e.Item.FindControl("row");
         var presentor = new Presentor();
         int idx       = 0;
         t1.Cells.Add(new HtmlTableCell
         {
             Align     = "Center",
             InnerHtml = "<input id=\"checkBox1\" class=\"ms-crm-RowCheckBox\" title=\"\" tabindex=\"0\" value=\"\" type=\"checkbox\">"
         });
         t1.Cells[idx].Attributes.Add("class", "ms-crm-List-NonDataCell");
         idx++;
         t1.Cells.Add(new HtmlTableCell
         {
             Align     = "Center",
             InnerHtml = "<img alt=\"\" src=\"/_imgs/ico_16_4400.gif\">"
         });
         t1.Cells[idx].Attributes.Add("class", "ms-crm-List-DataCell");
         idx++;
         foreach (var schema in presentor.Schema)
         {
             string cellFormat;
             var    cell = DataBinder.Eval(e.Item.DataItem, schema.FieldSchemaName);
             if (schema.IsLinkable)
             {
                 var url = LinkToEntity(DataBinder.Eval(e.Item.DataItem, schema.EntityId), schema.EntityName);
                 cellFormat = String.Format(FORMAT_LINKABLE, url, cell);
             }
             else
             {
                 cellFormat = String.Format(FORMAT_NOBR, cell);
             }
             t1.Cells.Add(new HtmlTableCell
             {
                 InnerHtml = cellFormat
             }
                          );
             t1.Cells[idx].Attributes.Add("class", "ms-crm-List-DataCell inner-grid-cellPadding");
             idx++;
         }
         t1.Cells.Add(new HtmlTableCell
         {
             InnerHtml = "&nbsp;"
         });
         t1.Cells[idx].Attributes.Add("class", "ms-crm-List-DataCell");
     }
 }
 private void GoToScreening(Screening screening)
 {
     Presentor.GoToScreening(screening);
     CloseDialog();
 }
 public void CloseDialog()
 {
     Presentor.DismissViewController(this);
 }
        protected void CampaignsConflitListViewDataBound(object sender, ListViewItemEventArgs e)
        {
            if (e.Item.ItemType == ListViewItemType.DataItem)
            {
                var t1 = (HtmlTableRow)e.Item.FindControl("row");
                var presentor = new Presentor();
                int idx = 0;
                t1.Cells.Add(new HtmlTableCell
                {
                    Align = "Center",
                    InnerHtml = "<input id=\"checkBox1\" class=\"ms-crm-RowCheckBox\" title=\"\" tabindex=\"0\" value=\"\" type=\"checkbox\">"
                });
                t1.Cells[idx].Attributes.Add("class", "ms-crm-List-DataCell");
                idx++;
                t1.Cells.Add(new HtmlTableCell
                {
                    Align = "Center",
                    InnerHtml = "<img alt=\"\" src=\"/_imgs/ico_16_4400.gif\">"
                });
                t1.Cells[idx].Attributes.Add("class", "ms-crm-List-DataCell");
                idx++;
                foreach (var schema in presentor.Schema)
                {
                    string cellFormat;
                    var cell = DataBinder.Eval(e.Item.DataItem, schema.FieldSchemaName);
                    if (schema.IsLinkable)
                    {
                        var url = LinkToEntity(DataBinder.Eval(e.Item.DataItem, schema.EntityId), schema.EntityName);
                        cellFormat = String.Format(FORMAT_LINKABLE, url, cell);
                    }
                    else
                    {

                        cellFormat = String.Format(FORMAT_NOBR, cell);
                    }
                    t1.Cells.Add(new HtmlTableCell
                    {
                        InnerHtml = cellFormat
                    }
                        );
                    t1.Cells[idx].Attributes.Add("class", "ms-crm-List-DataCell");
                    idx++;
                }
                t1.Cells.Add(new HtmlTableCell
                {
                    InnerHtml = "&nbsp;"
                });
                t1.Cells[idx].Attributes.Add("class", "ms-crm-List-DataCell");
            }
        }
 public void BindData()
 {
     var p = new Presentor();
     repSortStyle.DataSource = p.Schema;
     repSortStyle.DataBind();
 }
 private void CloseSheet()
 {
     Presentor.DismissViewController(this);
 }