Esempio n. 1
0
        private void _SizeChanged(object sender, SizeChangedEventArgs e)
        {
            double num = base.ActualWidth - 20.0;

            foreach (UIElement element in this.List.Children)
            {
                if (element is ReInfo)
                {
                    ReInfo info = (ReInfo)element;
                    info.Width = num;
                }
            }
            foreach (UIElement element2 in this.Page1.Children)
            {
                if (element2 is BACAClient.Template.Page)
                {
                    BACAClient.Template.Page page = (BACAClient.Template.Page)element2;
                    page.Width = num;
                }
            }
            foreach (UIElement element3 in this.Page2.Children)
            {
                if (element3 is BACAClient.Template.Page)
                {
                    BACAClient.Template.Page page2 = (BACAClient.Template.Page)element3;
                    page2.Width = num;
                }
            }
        }
Esempio n. 2
0
 public void BoundControls()
 {
     foreach (BACAClient.Model.Relational relational in this.data)
     {
         ReInfo element = new ReInfo {
             width = base.ActualWidth - 20.0,
             model = relational
         };
         element.gotokdp += new ReInfo.ChangedEventHandler(this.goTokdp);
         this.List.Children.Add(element);
     }
 }