Esempio n. 1
0
 private ControlProperties getControlProp(Control c)
 {
     IVLProps             = new ControlProperties();
     IVLProps.Name        = c.Name;
     IVLProps.BindingType = c.Tag.ToString();
     IVLProps.X           = c.Location.X;
     IVLProps.Y           = c.Location.Y;
     IVLProps.Width       = c.Width;
     IVLProps.Height      = c.Height;
     IVLProps.Text        = c.Text;
     if (c.Name.Contains("TableLayout"))
     {
         IVL_TabelLayout tableLayout = c as IVL_TabelLayout;
         //tableLayout = c as IVL_TabelLayout;
         IVLProps.Columns = tableLayout.ColumnCount;
         IVLProps.Rows    = tableLayout.RowCount;
     }
     IVLProps.ForeColor = c.ForeColor.Name;
     IVLProps.FontName  = c.Font.FontFamily.Name;
     IVLProps.FontStyle = c.Font.Style.ToString();
     IVLProps.FontSize  = (int)c.Font.Size;
     IVLProps.ImageName = c.AccessibleDescription;
     IVLProps.Type      = c.GetType().ToString();
     return(IVLProps);
 }
Esempio n. 2
0
 void tabLayout_MouseCaptureChanged(object sender, EventArgs e)
 {
     if (isReportLoading)
     {
         return;
     }
     tabLayout       = sender as IVL_TabelLayout;
     selectedControl = tabLayout;
     tabLayout.BringToFront();
     drawSelectionRect();
 }
Esempio n. 3
0
        private void addTabelLayout(ControlProperties IVLProps)
        {
            bool isPortrait = LayoutDetails.Current.Orientation == LayoutDetails.PageOrientation.PORTRAIT;

            tabLayout = new IVL_TabelLayout();
            propertyGrid1.SelectedObject = tabLayout;
            tabLayout.Tag        = IVLProps.BindingType;
            tabLayout.Name       = IVLProps.Name;
            tabLayout.Location   = new Point(IVLProps.X, IVLProps.Y);
            tabLayout.Size       = new Size(IVLProps.Width, IVLProps.Height);
            tabLayout.rowPercent = (int)rowStylepercent_nud.Value;
            tabLayout.colPercent = (int)colStylePercent_nud.Value;
            //tabLayout.rows = (int)rowCount_nud.Value;
            //tabLayout.cols = (int)colCount_nud.Value;
            tabLayout.RowCount    = IVLProps.Rows;
            tabLayout.ColumnCount = IVLProps.Columns;
            this.reportCanvas_pnl.Controls.Add(tabLayout);
            tabLayout.MouseCaptureChanged += tabLayout_MouseCaptureChanged;
            tabLayout_MouseCaptureChanged(tabLayout, null);
        }