internal StaticSeriesCtl(DesignXmlDraw dxDraw, List<XmlNode> ris) { _Draw = dxDraw; _ReportItems = ris; InitializeComponent(); InitValues(); }
internal DialogExprEditor(DesignXmlDraw dxDraw, string expr, XmlNode node, bool bColor) { _Draw = dxDraw; _Color = bColor; // // Required for Windows Form Designer support // InitializeComponent(); tbExpr.Text = expr.Replace("\r\n", "\n").Replace("\n", Environment.NewLine); // Fill out the fields list string[] fields = null; // Find the dataregion that contains the item (if any) for (XmlNode pNode = node; pNode != null; pNode = pNode.ParentNode) { if (pNode.Name == "List" || pNode.Name == "Table" || pNode.Name == "Matrix" || pNode.Name == "Chart") { string dsname = _Draw.GetDataSetNameValue(pNode); if (dsname != null) // found it { fields = _Draw.GetFields(dsname, true); } } } BuildTree(fields); return; }
internal void Reset() { _Draw = null; _DesignCtl = null; this.pgSelected.SelectedObject = null; cbReportItems.Items.Clear(); _NameCollection = null; }
internal ReportXmlCtl(DesignXmlDraw dxDraw) { _Draw = dxDraw; // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize form using the style node values InitValues(); }
internal InteractivityCtl(DesignXmlDraw dxDraw, List<XmlNode> reportItems) { _ReportItems = reportItems; _Draw = dxDraw; // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize form using the style node values InitValues(_ReportItems[0]); }
internal DialogNewChart(DesignXmlDraw dxDraw, XmlNode container) { _Draw = dxDraw; // // Required for Windows Form Designer support // InitializeComponent(); InitValues(container); }
internal FiltersCtl(DesignXmlDraw dxDraw, XmlNode filterParent) { _Draw = dxDraw; _FilterParent = filterParent; // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize form using the style node values InitValues(); }
internal QueryParametersCtl(DesignXmlDraw dxDraw, DataSetValues dsv) { _Draw = dxDraw; _dsv = dsv; // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize form using the style node values InitValues(); }
internal SubreportCtl(DesignXmlDraw dxDraw, XmlNode subReport) { _Draw = dxDraw; _Subreport =subReport; // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize form using the style node values InitValues(); }
internal ChartLegendCtl(DesignXmlDraw dxDraw, List<XmlNode> ris) { _ReportItems = ris; _Draw = dxDraw; // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize form using the style node values InitValues(); }
internal DialogEmbeddedImages(DesignXmlDraw draw) { _Draw = draw; // // Required for Windows Form Designer support // InitializeComponent(); InitValues(); }
internal TableColumnCtl(DesignXmlDraw dxDraw, XmlNode tc) { _TableColumn = tc; _Draw = dxDraw; // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize form using the style node values InitValues(tc); }
internal DataSetsCtl(DesignXmlDraw dxDraw, XmlNode dsNode) { _Draw = dxDraw; _dsNode = dsNode; // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize form using the style node values InitValues(); }
internal FontCtl(DesignXmlDraw dxDraw, string[] names, List <XmlNode> styles) { _ReportItems = styles; _Draw = dxDraw; _names = names; // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize form using the style node values InitTextStyles(); }
internal SQLCtl(DesignXmlDraw dxDraw, string datasource, string sql, DataTable queryParameters) { _Draw = dxDraw; _DataSource = datasource; _QueryParameters = queryParameters; // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize form using the style node values InitValues(sql); }
internal FontCtl(DesignXmlDraw dxDraw, string[] names, List<XmlNode> styles) { _ReportItems = styles; _Draw = dxDraw; _names = names; // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize form using the style node values InitTextStyles(); }
internal BackgroundCtl(DesignXmlDraw dxDraw, string[] names, List <XmlNode> reportItems) { _ReportItems = reportItems; _Draw = dxDraw; _names = names; // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize form using the style node values InitValues(_ReportItems[0]); }
internal BackgroundCtl(DesignXmlDraw dxDraw, string[] names, List<XmlNode> reportItems) { _ReportItems = reportItems; _Draw = dxDraw; _names = names; // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize form using the style node values InitValues(_ReportItems[0]); }
internal StyleTextCtl(DesignXmlDraw dxDraw, List <XmlNode> styles, PropertyDialog myDialog) { _ReportItems = styles; _Draw = dxDraw; // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize form using the style node values InitTextStyles(); myDialog.Shown += MyDialog_Shown; }
/// <summary> /// Validates a size parameter /// </summary> /// <param name="t"></param> /// <param name="bZero">true if 0 is valid size</param> /// <param name="bMinus">true if minus is allowed</param> /// <returns>Throws exception with the invalid message</returns> internal static void ValidateSize(string t, bool bZero, bool bMinus) { t = t.Trim(); if (t.Length == 0) // not specified is ok? { return; } // Ensure we have valid units if (t.IndexOf("in") < 0 && t.IndexOf("cm") < 0 && t.IndexOf("mm") < 0 && t.IndexOf("pt") < 0 && t.IndexOf("pc") < 0) { throw new Exception(Strings.DesignerUtility_Error_SizeUnitInvalid); } int space = t.LastIndexOf(' '); string n = ""; // number string string u; // unit string if (space != -1) // any spaces { n = t.Substring(0, space).Trim(); // number string u = t.Substring(space).Trim(); // unit string } else if (t.Length >= 3) { n = t.Substring(0, t.Length - 2).Trim(); u = t.Substring(t.Length - 2).Trim(); } if (n.Length == 0 || !Regex.IsMatch(n, @"\A[ ]*[-]?[0-9]*[.]?[0-9]*[ ]*\Z")) { throw new Exception(Strings.DesignerUtility_Error_NumberFormatinvalid); } float v = DesignXmlDraw.GetSize(t); if (!bZero) { if (v < .1) { throw new Exception(Strings.DesignerUtility_Error_SizeZero); } } else if (v < 0 && !bMinus) { throw new Exception(Strings.DesignerUtility_Error_SizeLessZero); } }
internal void SetDraw(DesignXmlDraw dxDraw) { _Draw = dxDraw; // Initialize form using the style node values InitValues(); rbDefaultDataSetName.Visible = cbDefaultDataSets.Visible = lDefaultValueFields.Visible = cbDefaultValueField.Visible = rbDataSet.Visible = cbValidDataSets.Visible = lValidValuesField.Visible = cbValidFields.Visible = lDisplayField.Visible = lDisplayField.Visible = cbValidDisplayField.Visible = true; }
internal CustomReportItemCtl(DesignXmlDraw dxDraw, List <XmlNode> reportItems) { _Draw = dxDraw; this._ReportItems = reportItems; _Type = _Draw.GetElementValue(_ReportItems[0], "Type", ""); // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize form using the style node values InitValues(); }
Uri _FileName; // file name of open file; used to obtain directory internal DialogDataSources(Uri filename, DesignXmlDraw draw) { _Draw = draw; _FileName = filename; // // Required for Windows Form Designer support // InitializeComponent(); InitValues(); }
internal CustomReportItemCtl(DesignXmlDraw dxDraw, List<XmlNode> reportItems) { _Draw = dxDraw; this._ReportItems = reportItems; _Type = _Draw.GetElementValue(_ReportItems[0], "Type", ""); // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize form using the style node values InitValues(); }
internal DataSetRowsCtl(DesignXmlDraw dxDraw, XmlNode dsNode, DataSetValues dsv) { _Draw = dxDraw; _dsv = dsv; _dsNode = dsNode; // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize form using the style node values InitValues(); }
string _FileName; // file name of open file; used to obtain directory #endregion Fields #region Constructors internal DialogDataSources(string filename, DesignXmlDraw draw) { _Draw = draw; _FileName = filename; // // Required for Windows Form Designer support // InitializeComponent(); InitValues(); }
static internal List <SqlSchemaInfo> GetSchemaInfo(DesignXmlDraw d, string ds) { string dataProvider; string connection; if (!GetConnnectionInfo(d, ds, out dataProvider, out connection)) { return(null); } return(GetSchemaInfo(dataProvider, connection)); }
internal StyleTextCtl(DesignXmlDraw dxDraw, List <XmlNode> styles) { _ReportItems = styles; _Draw = dxDraw; // This call is required by the Windows.Forms Form Designer. InitializeComponent(); this.lblValue.Tag = "Value"; // Initialize form using the style node values InitTextStyles(); }
internal MatrixView(DesignXmlDraw dxDraw, XmlNode matrix) { _Draw = dxDraw; _MatrixNode = matrix; try { BuildView(); } catch (Exception e) { _ViewBuilt = e.Message; } }
internal SingleCtlDialog(DesignXmlDraw dxDraw, List <XmlNode> sNodes, SingleCtlTypeEnum type) { this._Draw = dxDraw; this._Nodes = sNodes; this._Type = type; _Ctl = null; // when we have a case this should be initialized // // Required for Windows Form Designer support // InitializeComponent(); // Add the controls for the selected ReportItems }
internal SingleCtlDialog(DesignXmlDraw dxDraw, List<XmlNode> sNodes, SingleCtlTypeEnum type) { this._Draw = dxDraw; this._Nodes = sNodes; this._Type = type; _Ctl = null; // when we have a case this should be initialized // // Required for Windows Form Designer support // InitializeComponent(); // Add the controls for the selected ReportItems }
static internal List <SqlColumn> GetSqlColumns(DesignXmlDraw d, string ds, string sql) { string dataProvider; string connection; if (!GetConnnectionInfo(d, ds, out dataProvider, out connection)) { return(null); } IList parameters = null; return(GetSqlColumns(dataProvider, connection, sql, parameters)); }
void FillMatrixCorner() { XmlNode corner = _Draw.GetNamedChildNode(_MatrixNode, "Corner"); if (corner == null) { return; } XmlNode ris = DesignXmlDraw.FindNextInHierarchy(corner, "ReportItems"); MatrixItem mi = new MatrixItem(ris); _MatrixView[0, 0] = mi; }
void FillLexerByFields(DesignXmlDraw dxDraw) { var fields = new List <string>(); foreach (var dataSet in dxDraw.DataSetNames) { var datasetFields = dxDraw.GetFields((string)dataSet, false); if (datasetFields != null) { fields.AddRange(datasetFields); } } rdlLexer.SetFields(fields); }
private void bLoad_Click(object sender, System.EventArgs e) { // Load the data from the SQL; we append the data to what already exists try { // Obtain the connection information XmlNode rNode = _Draw.GetReportNode(); XmlNode dsNode = _Draw.GetNamedChildNode(rNode, "DataSources"); if (dsNode == null) return; XmlNode datasource=null; foreach (XmlNode dNode in dsNode) { if (dNode.Name != "DataSource") continue; XmlAttribute nAttr = dNode.Attributes["Name"]; if (nAttr == null) // shouldn't really happen continue; if (nAttr.Value != _dsv.DataSourceName) continue; datasource = dNode; break; } if (datasource == null) { MessageBox.Show(string.Format("Datasource '{0}' not found.", _dsv.DataSourceName), "Load Failed"); return; } string dataSourceReference = _Draw.GetElementValue(datasource, "DataSourceReference", null); if (dataSourceReference != null) { // todo: should support datasourcereference here as well MessageBox.Show(string.Format("Datasource '{0}' contains a DataSourceReference. This is not currently supported.", _dsv.DataSourceName), "Load Failed"); return; } XmlNode cpNode = DesignXmlDraw.FindNextInHierarchy(datasource, "ConnectionProperties", "ConnectString"); string connection = cpNode == null? "": cpNode.InnerText; XmlNode datap = DesignXmlDraw.FindNextInHierarchy(datasource, "ConnectionProperties", "DataProvider"); string dataProvider = datap == null? "": datap.InnerText; // Populate the data table DesignerUtility.GetSqlData(dataProvider, connection, _dsv.CommandText, null, _DataTable); } catch (Exception ex) { MessageBox.Show(ex.Message, "Load Failed"); } }
internal PropertyDialog(DesignXmlDraw dxDraw, List <XmlNode> sNodes, PropertyTypeEnum type, XmlNode tcNode, XmlNode trNode) { this._Draw = dxDraw; this._Nodes = sNodes; this._Type = type; _TableColumn = tcNode; _TableRow = trNode; // // Required for Windows Form Designer support // InitializeComponent(); // Add the controls for the selected ReportItems switch (_Type) { case PropertyTypeEnum.Report: BuildReportTabs(); break; case PropertyTypeEnum.DataSets: BuildDataSetsTabs(); break; case PropertyTypeEnum.Grouping: BuildGroupingTabs(); break; case PropertyTypeEnum.ChartLegend: BuildChartLegendTabs(); break; case PropertyTypeEnum.CategoryAxis: case PropertyTypeEnum.ValueAxis: BuildChartAxisTabs(type); break; case PropertyTypeEnum.ChartTitle: case PropertyTypeEnum.CategoryAxisTitle: case PropertyTypeEnum.ValueAxisTitle: case PropertyTypeEnum.ValueAxis2Title: // 20022008 AJM GJL BuildTitle(type); break; case PropertyTypeEnum.ReportItems: default: BuildReportItemTabs(); break; } }
internal DialogFindByKey(DesignXmlDraw dxd) { _Draw = dxd; // // Required for Windows Form Designer support // InitializeComponent(); // populate the keys SortedList <string, string> keys = _Draw.GetAllKeys(); foreach (string key in keys.Keys) { lbKeyList.Items.Add(key); } return; }
float GetMatrixRowHeight(int count) { XmlNode mcs = DesignXmlDraw.FindNextInHierarchy(_MatrixNode, "MatrixRows"); foreach (XmlNode c in mcs.ChildNodes) { if (c.Name != "MatrixRow") { continue; } if (count == 0) { return(_Draw.GetSize(c, "Height")); } count--; } return(0); }
public override string ToString() { string result = ""; DesignXmlDraw dr = pri.Draw; XmlNode visNode = dr.GetNamedChildNode(pri.Node, "Visibility"); if (visNode != null) { XmlNode hNode = dr.GetNamedChildNode(pri.Node, "Visibility"); XmlNode vNode = dr.GetNamedChildNode(hNode, "Hidden"); if (vNode != null) { result = string.Format("Hidden: {0}", vNode.InnerText); } } return(result); }
internal PropertyReportItem(DesignXmlDraw d, DesignCtl dc, List<XmlNode> ris) { _Draw = d; _DesignCtl = dc; _RIs = ris; _node = _RIs[0]; // the first node is the model for all of the nodes if (_RIs.Count > 1) bGroup = true; else bCustom = _node.Name == "CustomReportItem"; InTable = _Draw.InTable(_node); if (InTable) _tnode = _Draw.GetTableFromReportItem(_node); InMatrix = _Draw.InMatrix(_node); if (InMatrix) _mnode = _Draw.GetMatrixFromReportItem(_node); }
internal ReportCtl(DesignXmlDraw dxDraw) { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); this.cbxPages.Items.Clear(); foreach (PrintPage page in CacheHelper.Instance.Pages) { this.cbxPages.Items.Add(page.Name); } this.cbxPages.SelectedIndexChanged += new EventHandler(cbxPages_SelectedIndexChanged); this.cbxPages.SelectedIndex = this.cbxPages.Items.Count - 1; _Draw = dxDraw; // Initialize form using the style node values InitValues(); }
internal string[] GetReportParameters(bool asExpression) { XmlNode rNode = _doc.LastChild; XmlNode rpsNode = DesignXmlDraw.FindNextInHierarchy(rNode, "ReportParameters"); if (rpsNode == null) { return(null); } StringCollection st = new StringCollection(); foreach (XmlNode repNode in rpsNode) { if (repNode.Name != "ReportParameter") { continue; } XmlAttribute nAttr = repNode.Attributes["Name"]; if (nAttr == null) // shouldn't really happen { continue; } if (asExpression) { st.Add(string.Format("=Parameters!{0}.Value", nAttr.Value)); } else { st.Add(nAttr.Value); } } if (st.Count <= 0) { return(null); } string[] result = new string[st.Count]; st.CopyTo(result, 0); return(result); }
internal PropertyDialog(DesignXmlDraw dxDraw, List<XmlNode> sNodes, PropertyTypeEnum type, XmlNode tcNode, XmlNode trNode) { _Draw = dxDraw; _Nodes = sNodes; _Type = type; _TableColumn = tcNode; _TableRow = trNode; // // Required for Windows Form Designer support // InitializeComponent(); // Add the controls for the selected ReportItems switch (_Type) { case PropertyTypeEnum.Report: BuildReportTabs(); break; case PropertyTypeEnum.DataSets: BuildDataSetsTabs(); break; case PropertyTypeEnum.Grouping: BuildGroupingTabs(); break; case PropertyTypeEnum.ChartLegend: BuildChartLegendTabs(); break; case PropertyTypeEnum.CategoryAxis: case PropertyTypeEnum.ValueAxis: BuildChartAxisTabs(type); break; case PropertyTypeEnum.ChartTitle: case PropertyTypeEnum.CategoryAxisTitle: case PropertyTypeEnum.ValueAxisTitle: case PropertyTypeEnum.ValueAxis2Title:// 20022008 AJM GJL BuildTitle(type); break; default: BuildReportItemTabs(); break; } }
/// <summary> /// EBN 30/03/2014 /// Get the modules defined in the report if any /// </summary> /// <param name="asExpression">When true names are returned as expressions.</param> /// <returns></returns> internal string[] GetReportModules(bool asExpression) { XmlNode rNode = _doc.LastChild; XmlNode rpsNode = DesignXmlDraw.FindNextInHierarchy(rNode, "CodeModules"); if (rpsNode == null) { return(null); } StringCollection st = new StringCollection(); foreach (XmlNode repNode in rpsNode) { if (repNode.Name != "CodeModule") { continue; } if (repNode.InnerText == "") // shouldn't really happen { continue; } if (asExpression) { st.Add(string.Format("=Module!{0}", repNode.InnerText)); } else { st.Add(repNode.InnerText); } } if (st.Count <= 0) { return(null); } string[] result = new string[st.Count]; st.CopyTo(result, 0); return(result); }
private string GetSize(string sz) { if (sz.Trim().StartsWith("=")) // Don't mess with expressions { return(sz); } float size = DesignXmlDraw.GetSize(sz); if (size <= 0) { size = DesignXmlDraw.GetSize(sz + "pt"); // Try assuming pt if (size <= 0) // still no good { size = 10; // just set default value } } string rs = string.Format(NumberFormatInfo.InvariantInfo, "{0:0.#}pt", size); return(rs); }
internal DialogExprEditor(DesignXmlDraw dxDraw, string expr, XmlNode node, bool bColor) { _Draw = dxDraw; _Color = bColor; // // Required for Windows Form Designer support // InitializeComponent(); var styling = new ScintillaExprStyle(rdlLexer, scintilla1); styling.ConfigureScintillaStyle(); // Fill out the fields list string[] fields = null; // Find the dataregion that contains the item (if any) for (XmlNode pNode = node; pNode != null; pNode = pNode.ParentNode) { if (pNode.Name == "List" || pNode.Name == "Table" || pNode.Name == "Matrix" || pNode.Name == "Chart") { string dsname = _Draw.GetDataSetNameValue(pNode); if (dsname != null) // found it { fields = _Draw.GetFields(dsname, true); } } } BuildTree(fields); FillLexerByFields(_Draw); if (expr != null) { scintilla1.Text = expr.Replace("\r\n", "\n").Replace("\n", Environment.NewLine); } return; }
public MapFile(string file) { InitializeComponent(); //map = new DesignXmlDraw(); // designer keeps deleting this code??!! Application.AddMessageFilter(this); // // manually add controls to the splitter. visual studio keeps deleting them // map = new DesignXmlDraw(); this.splitContainer1.Panel1.Controls.Add(this.map); // // map // this.map.Dock = System.Windows.Forms.DockStyle.Fill; this.map.Location = new System.Drawing.Point(0, 0); this.map.Name = "map"; this.map.Size = new System.Drawing.Size(620, 474); this.map.TabIndex = 0; this.map.Zoom = 1F; map.ZoomChange += new DesignXmlDraw.DrawEventHandler(map_ZoomChange); map.XmlChange += new DesignXmlDraw.DrawEventHandler(map_XmlChange); map.SelectionChange += new DesignXmlDraw.DrawEventHandler(map_SelectionChange); map.ToolChange += new DesignXmlDraw.DrawEventHandler(map_ToolChange); this.Closing += new CancelEventHandler(MapFile_Closing); if (file != null) { map.SetMapFile(file); if (map.MapDoc == null) // failed to open? { map.SetNew(); // yes, just start a new one } } else { map.SetNew(); } SetTitle(false); }
private void HeightChanged(object sender, HeightEventArgs e) { if (e.Height == null) { return; } RegionInfo rinfo = new RegionInfo(CultureInfo.CurrentCulture.LCID); float h = DesignXmlDraw.GetSize(e.Height); string sh; if (rinfo.IsMetric) { sh = string.Format(" height={0:0.00}cm ", h / (DesignXmlDraw.POINTSIZED / 2.54d)); } else { sh = string.Format(" height={0:0.00}\" ", h / DesignXmlDraw.POINTSIZED); } }
internal XmlNode DataSourceName(string dsn) { XmlNode rNode = _doc.LastChild; XmlNode node = DesignXmlDraw.FindNextInHierarchy(rNode, "DataSources"); if (node == null) { return(null); } foreach (XmlNode cNode in node.ChildNodes) { if (cNode.Name != "DataSource") { continue; } XmlAttribute xAttr = cNode.Attributes["Name"]; if (xAttr != null && xAttr.Value == dsn) { return(cNode); } } return(null); }
public override string ToString() { string result = ""; DesignXmlDraw dr = pri.Draw; XmlNode aNode = dr.GetNamedChildNode(pri.Node, "Action"); if (aNode == null) { result = "None"; } else { XmlNode vLink = dr.GetNamedChildNode(aNode, "Hyperlink"); if (vLink != null) { // Hyperlink specified result = string.Format("Hyperlink: {0}", vLink.InnerText); } else { vLink = dr.GetNamedChildNode(aNode, "Drillthrough"); if (vLink != null) { // Drillthrough specified result = string.Format("Drillthrough: {0}", dr.GetElementValue(vLink, "ReportName", "")); } else { vLink = dr.GetNamedChildNode(aNode, "BookmarkLink"); if (vLink != null) { // BookmarkLink specified result = string.Format("BookmarkLink: {0}", vLink.InnerText); } } } } return(result); }
internal PropertyDataRegion(DesignXmlDraw d, DesignCtl dc, List<XmlNode> ris) : base(d, dc, ris) { }
private DesignXmlDraw _Draw; // design draw #endregion Fields #region Constructors internal DialogExprEditor(DesignXmlDraw dxDraw, string expr, XmlNode node) : this(dxDraw, expr, node, false) { }
internal void ResetSelection(DesignXmlDraw d, DesignCtl dc) { _Draw = d; _DesignCtl = dc; if (_Draw == null) { this.pgSelected.SelectedObject = null; cbReportItems.Items.Clear(); return; } SetPropertyNames(); if (_Draw.SelectedCount == 0) { this.pgSelected.SelectedObject = new PropertyReport(_Draw, dc); cbReportItems.SelectedItem = REPORT; } else if (SingleReportItemType()) { XmlNode n = _Draw.SelectedList[0]; if (_Draw.SelectedCount > 1) { int si = cbReportItems.Items.Add(GROUP); cbReportItems.SelectedIndex = si; } else { XmlAttribute xAttr = n.Attributes["Name"]; if (xAttr == null) { int si = cbReportItems.Items.Add(NONAME); cbReportItems.SelectedIndex = si; } else cbReportItems.SelectedItem = xAttr.Value; } switch (n.Name) { case "Textbox": this.pgSelected.SelectedObject = new PropertyTextbox(_Draw, dc, _Draw.SelectedList); break; case "System.Drawing.Rectangle": this.pgSelected.SelectedObject = new PropertyRectangle(_Draw, dc, _Draw.SelectedList); break; case "Chart": this.pgSelected.SelectedObject = new PropertyChart(_Draw, dc, _Draw.SelectedList); break; case "System.Drawing.Image": this.pgSelected.SelectedObject = new PropertyImage(_Draw, dc, _Draw.SelectedList); break; case "List": this.pgSelected.SelectedObject = new PropertyList(_Draw, dc, _Draw.SelectedList); break; case "Subreport": this.pgSelected.SelectedObject = new PropertySubreport(_Draw, dc, _Draw.SelectedList); break; case "CustomReportItem": default: this.pgSelected.SelectedObject = new PropertyReportItem(_Draw, dc, _Draw.SelectedList); break; } } else { int si = cbReportItems.Items.Add(GROUP); cbReportItems.SelectedIndex = si; this.pgSelected.SelectedObject = new PropertyReportItem(_Draw, dc, _Draw.SelectedList); } }
internal ReportParameterCtl(DesignXmlDraw dxDraw):this() { SetDraw(dxDraw); }
internal PropertyDialog(DesignXmlDraw dxDraw, List<XmlNode> sNodes, PropertyTypeEnum type) : this(dxDraw, sNodes, type, null, null) { }
public DesignCtl() { // Get our graphics DPI Graphics g = null; try { g = this.CreateGraphics(); _DpiX = g.DpiX; _DpiY = g.DpiY; } catch { _DpiX = _DpiY = 96; } finally { if (g != null) g.Dispose(); } // Handle the controls _vScroll = new VScrollBar(); _vScroll.Scroll += new ScrollEventHandler(this.VerticalScroll); _vScroll.Enabled = false; _hScroll = new HScrollBar(); _hScroll.Scroll += new ScrollEventHandler(this.HorizontalScroll); _hScroll.Enabled = false; _DrawPanel = new DesignXmlDraw(); _DrawPanel.Paint += new PaintEventHandler(this.DrawPanelPaint); _DrawPanel.MouseUp += new MouseEventHandler(this.DrawPanelMouseUp); _DrawPanel.MouseDown += new MouseEventHandler(this.DrawPanelMouseDown); _DrawPanel.Resize += new EventHandler(this.DrawPanelResize); _DrawPanel.MouseWheel +=new MouseEventHandler(DrawPanelMouseWheel); _DrawPanel.KeyDown += new KeyEventHandler(DrawPanelKeyDown); _DrawPanel.MouseMove += new MouseEventHandler(DrawPanelMouseMove); _DrawPanel.DoubleClick += new EventHandler(DrawPanelDoubleClick); this.Layout +=new LayoutEventHandler(DesignCtl_Layout); this.SuspendLayout(); // Must be added in this order for DockStyle to work correctly this.Controls.Add(_DrawPanel); this.Controls.Add(_vScroll); this.Controls.Add(_hScroll); this.ResumeLayout(false); BuildContextMenus(); }
internal PropertyTable(DesignXmlDraw d, DesignCtl dc, List<XmlNode> ris) : base(d, dc, ris) { }