|
|
|
@ -49,7 +49,6 @@ namespace SharpReportAddin { |
|
|
|
/// Clear the selected Section
|
|
|
|
/// Clear the selected Section
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public void ClearNodeSection () { |
|
|
|
public void ClearNodeSection () { |
|
|
|
// System.Console.WriteLine("ClearNodeSection");
|
|
|
|
|
|
|
|
if (this.SelectedNode is SectionTreeNode) { |
|
|
|
if (this.SelectedNode is SectionTreeNode) { |
|
|
|
if (this.SelectedNode.Nodes.Count > 0) { |
|
|
|
if (this.SelectedNode.Nodes.Count > 0) { |
|
|
|
this.SelectedNode.Nodes.Clear(); |
|
|
|
this.SelectedNode.Nodes.Clear(); |
|
|
|
@ -100,6 +99,14 @@ namespace SharpReportAddin { |
|
|
|
this.SelectedNode = node; |
|
|
|
this.SelectedNode = node; |
|
|
|
CheckNode (node); |
|
|
|
CheckNode (node); |
|
|
|
if (e.Button == MouseButtons.Right) { |
|
|
|
if (e.Button == MouseButtons.Right) { |
|
|
|
|
|
|
|
AbstractFieldsNode abstrNode = node as AbstractFieldsNode; |
|
|
|
|
|
|
|
if (abstrNode != null) { |
|
|
|
|
|
|
|
if (abstrNode.ContextmenuAddinTreePath.Length > 0) { |
|
|
|
|
|
|
|
ContextMenuStrip ctMen = MenuService.CreateContextMenu (this,abstrNode.ContextmenuAddinTreePath); |
|
|
|
|
|
|
|
ctMen.Show (this,new Point (e.X,e.Y)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/* |
|
|
|
if (node is AbstractFieldsNode) { |
|
|
|
if (node is AbstractFieldsNode) { |
|
|
|
AbstractFieldsNode abstrNode = (AbstractFieldsNode)node; |
|
|
|
AbstractFieldsNode abstrNode = (AbstractFieldsNode)node; |
|
|
|
if (abstrNode.ContextmenuAddinTreePath.Length > 0) { |
|
|
|
if (abstrNode.ContextmenuAddinTreePath.Length > 0) { |
|
|
|
@ -107,6 +114,7 @@ namespace SharpReportAddin { |
|
|
|
ctMen.Show (this,new Point (e.X,e.Y)); |
|
|
|
ctMen.Show (this,new Point (e.X,e.Y)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
*/ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -149,17 +157,16 @@ namespace SharpReportAddin { |
|
|
|
|
|
|
|
|
|
|
|
void TreeViewDragDrop (object sender,DragEventArgs e) { |
|
|
|
void TreeViewDragDrop (object sender,DragEventArgs e) { |
|
|
|
if(e.Data.GetDataPresent("SharpReportAddin.ColumnsTreeNode", false)){ |
|
|
|
if(e.Data.GetDataPresent("SharpReportAddin.ColumnsTreeNode", false)){ |
|
|
|
|
|
|
|
Point pt = this.PointToClient (new Point( e.X,e.Y)); |
|
|
|
|
|
|
|
|
|
|
|
Point pt = ((TreeView)sender).PointToClient(new Point(e.X, e.Y)); |
|
|
|
SectionTreeNode node = this.GetNodeAt (pt) as SectionTreeNode; |
|
|
|
SectionTreeNode node = (SectionTreeNode)((TreeView)sender).GetNodeAt(pt); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (node != null) { |
|
|
|
if (node != null) { |
|
|
|
|
|
|
|
|
|
|
|
ColumnsTreeNode t = (ColumnsTreeNode)e.Data.GetData("SharpReportAddin.ColumnsTreeNode", true); |
|
|
|
ColumnsTreeNode t = (ColumnsTreeNode)e.Data.GetData("SharpReportAddin.ColumnsTreeNode", true); |
|
|
|
ColumnsTreeNode dest = new ColumnsTreeNode (t.Text); |
|
|
|
ColumnsTreeNode dest = new ColumnsTreeNode (t.Text); |
|
|
|
|
|
|
|
|
|
|
|
// Useless to add a node twice
|
|
|
|
// Useless to add a node twice
|
|
|
|
if (!CheckForExist (node,dest)) { |
|
|
|
if (!FieldsExplorer.CheckForExist (node,dest)) { |
|
|
|
dest.SortDirection = ListSortDirection.Ascending; |
|
|
|
dest.SortDirection = ListSortDirection.Ascending; |
|
|
|
dest.ImageIndex = ascendingIcon; |
|
|
|
dest.ImageIndex = ascendingIcon; |
|
|
|
dest.SelectedImageIndex = ascendingIcon; |
|
|
|
dest.SelectedImageIndex = ascendingIcon; |
|
|
|
@ -174,13 +181,13 @@ namespace SharpReportAddin { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void Fill () { |
|
|
|
private void FillExplorer () { |
|
|
|
this.FillTree(); |
|
|
|
this.FillTree(); |
|
|
|
this.ExpandAll(); |
|
|
|
this.ExpandAll(); |
|
|
|
isFilled = true; |
|
|
|
isFilled = true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private bool CheckForExist (SectionTreeNode sec,ColumnsTreeNode col) { |
|
|
|
private static bool CheckForExist (SectionTreeNode sec,ColumnsTreeNode col) { |
|
|
|
if (sec.Nodes.Count > 0) { |
|
|
|
if (sec.Nodes.Count > 0) { |
|
|
|
for (int i = 0;i < sec.Nodes.Count ;i++ ) { |
|
|
|
for (int i = 0;i < sec.Nodes.Count ;i++ ) { |
|
|
|
if (sec.Nodes[i].Text == col.Text) { |
|
|
|
if (sec.Nodes[i].Text == col.Text) { |
|
|
|
@ -193,21 +200,22 @@ namespace SharpReportAddin { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void CheckNode (TreeNode node) { |
|
|
|
private void CheckNode (TreeNode node) { |
|
|
|
if (node.Parent == nodeSorting) { |
|
|
|
ColumnsTreeNode cn = node as ColumnsTreeNode; |
|
|
|
ColumnsTreeNode cn = (ColumnsTreeNode)node; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (cn.SortDirection == ListSortDirection.Ascending) { |
|
|
|
if (cn != null) { |
|
|
|
cn.ImageIndex = ascendingIcon; |
|
|
|
if (node.Parent == nodeSorting) { |
|
|
|
} else { |
|
|
|
if (cn.SortDirection == ListSortDirection.Ascending) { |
|
|
|
cn.ImageIndex = descendingIcon; |
|
|
|
cn.ImageIndex = ascendingIcon; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
cn.ImageIndex = descendingIcon; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else if (node.Parent == this.nodeGrouping) { |
|
|
|
|
|
|
|
cn.ImageIndex = clearIcon; |
|
|
|
|
|
|
|
cn.SelectedImageIndex = clearIcon; |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (node.Parent == this.nodeGrouping) { |
|
|
|
|
|
|
|
ColumnsTreeNode cn = (ColumnsTreeNode)node; |
|
|
|
|
|
|
|
cn.ImageIndex = clearIcon; |
|
|
|
|
|
|
|
cn.SelectedImageIndex = clearIcon; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
@ -221,75 +229,48 @@ namespace SharpReportAddin { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#region PadEvents
|
|
|
|
#region PadEvents
|
|
|
|
private void old_OnWindowChange (object sender,EventArgs e) { |
|
|
|
private void OnUpdateExplorerWindow (object sender,EventArgs e) { |
|
|
|
try { |
|
|
|
|
|
|
|
if (WorkbenchSingleton.Workbench.ActiveWorkbenchWindow.ViewContent is SharpReportView) { |
|
|
|
|
|
|
|
if (WorkbenchSingleton.Workbench.ActiveWorkbenchWindow == null || WorkbenchSingleton.Workbench.ActiveWorkbenchWindow.ViewContent == null) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
WorkbenchSingleton.Workbench.ActiveWorkbenchWindow.ViewContent.Saving -= OnViewSaving; |
|
|
|
|
|
|
|
WorkbenchSingleton.Workbench.ActiveWorkbenchWindow.ViewContent.Saving += OnViewSaving; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PadDescriptor pad = WorkbenchSingleton.Workbench.GetPad(typeof(FieldsExplorer)); |
|
|
|
if (WorkbenchSingleton.Workbench.ActiveContent != null) { |
|
|
|
|
|
|
|
|
|
|
|
SharpReportView v = |
|
|
|
Type type = WorkbenchSingleton.Workbench.ActiveContent.GetType(); |
|
|
|
WorkbenchSingleton.Workbench.ActiveWorkbenchWindow.ActiveViewContent |
|
|
|
if (type != typeof(PropertyPad)) { |
|
|
|
as SharpReportView; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (v != null) { |
|
|
|
try { |
|
|
|
this.reportModel = v.ReportManager.BaseDesignControl.ReportModel; |
|
|
|
if (WorkbenchSingleton.Workbench.ActiveWorkbenchWindow == null || WorkbenchSingleton.Workbench.ActiveWorkbenchWindow.ViewContent == null) { |
|
|
|
if (this.reportModel != null) { |
|
|
|
return; |
|
|
|
this.Fill(); |
|
|
|
} |
|
|
|
WorkbenchSingleton.Workbench.ShowPad(pad); |
|
|
|
WorkbenchSingleton.Workbench.ActiveWorkbenchWindow.ViewContent.Saving -= OnViewSaving; |
|
|
|
|
|
|
|
WorkbenchSingleton.Workbench.ActiveWorkbenchWindow.ViewContent.Saving += OnViewSaving; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PadDescriptor pad = |
|
|
|
|
|
|
|
WorkbenchSingleton.Workbench.GetPad(typeof(FieldsExplorer)); |
|
|
|
|
|
|
|
if (pad != null) { |
|
|
|
|
|
|
|
SharpReportView view = |
|
|
|
|
|
|
|
WorkbenchSingleton.Workbench.ActiveWorkbenchWindow.ActiveViewContent |
|
|
|
|
|
|
|
as SharpReportView; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ((view != null) && (!view.Disposed)) { |
|
|
|
|
|
|
|
this.reportModel = view.ReportManager.BaseDesignControl.ReportModel; |
|
|
|
|
|
|
|
if (this.reportModel != null) { |
|
|
|
|
|
|
|
this.FillExplorer(); |
|
|
|
|
|
|
|
WorkbenchSingleton.Workbench.ShowPad(pad); |
|
|
|
|
|
|
|
pad.BringPadToFront(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
else { |
|
|
|
WorkbenchSingleton.Workbench.WorkbenchLayout.HidePad(pad); |
|
|
|
WorkbenchSingleton.Workbench.WorkbenchLayout.HidePad(pad); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} catch (Exception) { |
|
|
|
} else { |
|
|
|
// throw;
|
|
|
|
System.Console.WriteLine("FieldsExplorer: NO view"); } |
|
|
|
|
|
|
|
} catch (Exception) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void OnWindowChange (object sender,EventArgs e) { |
|
|
|
|
|
|
|
// System.Console.WriteLine("FieldsExplorer:OnWindowChange");
|
|
|
|
|
|
|
|
// System.Console.WriteLine("active control {0}",WorkbenchSingleton.ActiveControl.ToString());
|
|
|
|
|
|
|
|
// ICSharpCode.SharpDevelop.Gui.DefaultWorkbench dw = (ICSharpCode.SharpDevelop.Gui.DefaultWorkbench)sender;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
if (WorkbenchSingleton.Workbench.ActiveWorkbenchWindow == null || WorkbenchSingleton.Workbench.ActiveWorkbenchWindow.ViewContent == null) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
WorkbenchSingleton.Workbench.ActiveWorkbenchWindow.ViewContent.Saving -= OnViewSaving; |
|
|
|
|
|
|
|
WorkbenchSingleton.Workbench.ActiveWorkbenchWindow.ViewContent.Saving += OnViewSaving; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PadDescriptor pad = WorkbenchSingleton.Workbench.GetPad(typeof(FieldsExplorer)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SharpReportView v = |
|
|
|
|
|
|
|
WorkbenchSingleton.Workbench.ActiveWorkbenchWindow.ActiveViewContent |
|
|
|
|
|
|
|
as SharpReportView; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (v != null) { |
|
|
|
|
|
|
|
this.reportModel = v.ReportManager.BaseDesignControl.ReportModel; |
|
|
|
|
|
|
|
if (this.reportModel != null) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.Fill(); |
|
|
|
|
|
|
|
WorkbenchSingleton.Workbench.ShowPad(pad); |
|
|
|
|
|
|
|
pad.BringPadToFront(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
WorkbenchSingleton.Workbench.WorkbenchLayout.HidePad(pad); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception) { |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void OnViewSaving (object sender, EventArgs e) { |
|
|
|
private void OnViewSaving (object sender, EventArgs e) { |
|
|
|
if (this.isFilled) { |
|
|
|
if (this.isFilled) { |
|
|
|
UpdateSorting(); |
|
|
|
UpdateSorting(); |
|
|
|
@ -375,61 +356,49 @@ namespace SharpReportAddin { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void SetSortFields(){ |
|
|
|
void SetSortFields(){ |
|
|
|
try { |
|
|
|
ColumnsTreeNode node; |
|
|
|
ColumnsTreeNode node; |
|
|
|
|
|
|
|
this.nodeSorting.Nodes.Clear(); |
|
|
|
|
|
|
|
int scCount = this.reportModel.ReportSettings.SortColumnCollection.Count; |
|
|
|
|
|
|
|
foreach (SortColumn sc in this.reportModel.ReportSettings.SortColumnCollection) { |
|
|
|
|
|
|
|
node = new ColumnsTreeNode(sc.ColumnName,sc.SortDirection); |
|
|
|
|
|
|
|
if (node.SortDirection == ListSortDirection.Ascending) { |
|
|
|
|
|
|
|
node.ImageIndex = 4; |
|
|
|
|
|
|
|
node.SelectedImageIndex = 4; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
node.ImageIndex = descendingIcon; |
|
|
|
|
|
|
|
node.SelectedImageIndex = descendingIcon; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.nodeSorting.Nodes.Add(node); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} catch (Exception) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.nodeSorting.Nodes.Clear(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach (SortColumn sc in this.reportModel.ReportSettings.SortColumnCollection) { |
|
|
|
|
|
|
|
node = new ColumnsTreeNode(sc.ColumnName,sc.SortDirection); |
|
|
|
|
|
|
|
if (node.SortDirection == ListSortDirection.Ascending) { |
|
|
|
|
|
|
|
node.ImageIndex = 4; |
|
|
|
|
|
|
|
node.SelectedImageIndex = 4; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
node.ImageIndex = descendingIcon; |
|
|
|
|
|
|
|
node.SelectedImageIndex = descendingIcon; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.nodeSorting.Nodes.Add(node); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
void SetGroupFields(){ |
|
|
|
private void SetGroupFields(){ |
|
|
|
try { |
|
|
|
ColumnsTreeNode node; |
|
|
|
ColumnsTreeNode node; |
|
|
|
|
|
|
|
this.nodeGrouping.Nodes.Clear(); |
|
|
|
|
|
|
|
int gcCount = this.reportModel.ReportSettings.GroupColumnsCollection.Count; |
|
|
|
|
|
|
|
for (int i = 0;i < gcCount ;i++ ) { |
|
|
|
|
|
|
|
GroupColumn gc = (GroupColumn)this.reportModel.ReportSettings.GroupColumnsCollection[i]; |
|
|
|
|
|
|
|
node = new ColumnsTreeNode(gc.ColumnName); |
|
|
|
|
|
|
|
if (node.SortDirection == ListSortDirection.Ascending) { |
|
|
|
|
|
|
|
node.ImageIndex = ascendingIcon; |
|
|
|
|
|
|
|
node.SelectedImageIndex = ascendingIcon; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
node.ImageIndex = descendingIcon; |
|
|
|
|
|
|
|
node.SelectedImageIndex = descendingIcon; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.nodeGrouping.Nodes.Add(node); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} catch (Exception) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.nodeGrouping.Nodes.Clear(); |
|
|
|
|
|
|
|
foreach (GroupColumn gc in this.reportModel.ReportSettings.GroupColumnsCollection) { |
|
|
|
|
|
|
|
node = new ColumnsTreeNode(gc.ColumnName); |
|
|
|
|
|
|
|
if (node.SortDirection == ListSortDirection.Ascending) { |
|
|
|
|
|
|
|
node.ImageIndex = ascendingIcon; |
|
|
|
|
|
|
|
node.SelectedImageIndex = ascendingIcon; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
node.ImageIndex = descendingIcon; |
|
|
|
|
|
|
|
node.SelectedImageIndex = descendingIcon; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.nodeGrouping.Nodes.Add(node); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void SetParamFields (){ |
|
|
|
void SetParamFields (){ |
|
|
|
|
|
|
|
|
|
|
|
ColumnsTreeNode node; |
|
|
|
ColumnsTreeNode node; |
|
|
|
|
|
|
|
|
|
|
|
this.nodeParams.Nodes.Clear(); |
|
|
|
this.nodeParams.Nodes.Clear(); |
|
|
|
int parCount = this.reportModel.ReportSettings.SqlParametersCollection.Count; |
|
|
|
foreach (SqlParameter par in this.reportModel.ReportSettings.SqlParametersCollection) { |
|
|
|
if (parCount > 0) { |
|
|
|
node = new ColumnsTreeNode(par.ParameterName); |
|
|
|
for (int i = 0;i < parCount ;i++ ) { |
|
|
|
|
|
|
|
SqlParameter par = (SqlParameter)this.reportModel.ReportSettings.SqlParametersCollection[i]; |
|
|
|
|
|
|
|
node = new ColumnsTreeNode(par.ParameterName); |
|
|
|
|
|
|
|
node.Tag = par; |
|
|
|
node.Tag = par; |
|
|
|
node.SelectedImageIndex = columnIcon; |
|
|
|
node.SelectedImageIndex = columnIcon; |
|
|
|
node.ImageIndex = columnIcon; |
|
|
|
node.ImageIndex = columnIcon; |
|
|
|
this.nodeParams.Nodes.Add (node); |
|
|
|
this.nodeParams.Nodes.Add (node); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -513,29 +482,26 @@ namespace SharpReportAddin { |
|
|
|
ImageList imageList = new ImageList(); |
|
|
|
ImageList imageList = new ImageList(); |
|
|
|
imageList.ColorDepth = ColorDepth.Depth32Bit; |
|
|
|
imageList.ColorDepth = ColorDepth.Depth32Bit; |
|
|
|
imageList.ImageSize = new System.Drawing.Size(16, 16); |
|
|
|
imageList.ImageSize = new System.Drawing.Size(16, 16); |
|
|
|
try { |
|
|
|
|
|
|
|
imageList.Images.Add(IconService.GetBitmap("Icons.16x16.ClosedFolderBitmap")); |
|
|
|
|
|
|
|
imageList.Images.Add(IconService.GetBitmap("Icons.16x16.OpenFolderBitmap")); |
|
|
|
|
|
|
|
imageList.Images.Add(new Bitmap(1, 1)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
imageList.Images.Add(IconService.GetBitmap("Icons.16x16.SelectionArrow")); |
|
|
|
imageList.Images.Add(IconService.GetBitmap("Icons.16x16.ClosedFolderBitmap")); |
|
|
|
|
|
|
|
imageList.Images.Add(IconService.GetBitmap("Icons.16x16.OpenFolderBitmap")); |
|
|
|
|
|
|
|
imageList.Images.Add(new Bitmap(1, 1)); |
|
|
|
|
|
|
|
|
|
|
|
imageList.Images.Add(IconService.GetBitmap("Icons.16x16.SharpReport.Ascending")); |
|
|
|
imageList.Images.Add(IconService.GetBitmap("Icons.16x16.SelectionArrow")); |
|
|
|
|
|
|
|
|
|
|
|
imageList.Images.Add(IconService.GetBitmap("Icons.16x16.SharpReport.Descending")); |
|
|
|
imageList.Images.Add(IconService.GetBitmap("Icons.16x16.SharpReport.Ascending")); |
|
|
|
//Table's or procedure
|
|
|
|
|
|
|
|
imageList.Images.Add(IconService.GetBitmap("Icons.16x16.SharpQuery.Table")); |
|
|
|
|
|
|
|
imageList.Images.Add(IconService.GetBitmap("Icons.16x16.SharpQuery.Procedure")); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Parameters
|
|
|
|
imageList.Images.Add(IconService.GetBitmap("Icons.16x16.SharpReport.Descending")); |
|
|
|
imageList.Images.Add(IconService.GetBitmap("Icons.16x16.SharpQuery.Column")); |
|
|
|
//Table's or procedure
|
|
|
|
|
|
|
|
imageList.Images.Add(IconService.GetBitmap("Icons.16x16.SharpQuery.Table")); |
|
|
|
|
|
|
|
imageList.Images.Add(IconService.GetBitmap("Icons.16x16.SharpQuery.Procedure")); |
|
|
|
|
|
|
|
|
|
|
|
//Function
|
|
|
|
//Parameters
|
|
|
|
imageList.Images.Add(ResourceService.GetIcon("Icons.16x16.SharpReport.Function")); |
|
|
|
imageList.Images.Add(IconService.GetBitmap("Icons.16x16.SharpQuery.Column")); |
|
|
|
ImageList = imageList; |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
//Function
|
|
|
|
MessageService.ShowError(e); |
|
|
|
imageList.Images.Add(ResourceService.GetIcon("Icons.16x16.SharpReport.Function")); |
|
|
|
} |
|
|
|
ImageList = imageList; |
|
|
|
} |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
@ -601,8 +567,9 @@ namespace SharpReportAddin { |
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public FieldsExplorer() { |
|
|
|
public FieldsExplorer() { |
|
|
|
WorkbenchSingleton.Workbench.ActiveWorkbenchWindowChanged += OnWindowChange; |
|
|
|
WorkbenchSingleton.Workbench.ActiveWorkbenchWindowChanged += OnUpdateExplorerWindow; |
|
|
|
|
|
|
|
|
|
|
|
LabelEdit = true; |
|
|
|
LabelEdit = true; |
|
|
|
AllowDrop = true; |
|
|
|
AllowDrop = true; |
|
|
|
|