private void InitializeLayout()
        {
            foreach (var child in CircleGrid.Children)
            {
                Ellipse e = child as Ellipse;
                if (e == null)
                {
                    TextBlock t = child as TextBlock;
                    if (t != null)
                    {
                        t.Text = "";
                    }
                }
                else
                {
                    e.Stroke          = new SolidColorBrush(Windows.UI.Color.FromArgb(255, (byte)65, (byte)64, (byte)66));
                    e.Fill            = new SolidColorBrush(Windows.UI.Color.FromArgb(255, (byte)255, (byte)255, (byte)255));
                    e.StrokeThickness = 2;
                    int row    = Grid.GetRow(e);
                    int column = Grid.GetColumn(e);
                }
            }

            GameGrid.UpdateLayout();
            FeedbackGrid.UpdateLayout();
            CircleGrid.UpdateLayout();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Guid id = new Guid(Request.Params["ID"]);
                FeedbackModelContainer model = new FeedbackModelContainer();
                User user = (from u in model.UserSet
                             where u.Id == id
                             select u).First();
                LastNameTxt.Text = user.LastName;
                NameTxt.Text     = user.Name;
                SurenameTxt.Text = user.SureName;
                PhoneTxt.Text    = user.Phone;

                Session["UserID"] = id;

                FeedbackGrid.DataSource = (from f in model.FeedbackSet
                                           where f.User.Id == id
                                           select f).ToList();
                FeedbackGrid.DataBind();
            }
        }
Exemple #3
0
 private void Bind()
 {
     FeedbackGrid.DataSource = bllFeedback.GetFeedbackList();
     FeedbackGrid.DataBind();
 }