void ProjectTreeScanningBackgroundWorkerRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            if (this.IsDisposed || this.projectResourcesTreeView.IsDisposed)
            {
                // This can happen when the dialog is closed before
                // the scan has finished
                if (!e.Cancelled && e.Error == null)
                {
                    TreeScanResult r = e.Result as TreeScanResult;
                    if (r != null)
                    {
                        DisposeNodeImages(r.Root);
                    }
                }
                return;
            }

            this.projectResourcesTreeView.Nodes.Clear();

            if (e.Cancelled)
            {
                return;
            }

            if (e.Error != null)
            {
                MessageService.ShowError(e.Error, "Error in project tree scanning thread");
            }

            TreeScanResult result = e.Result as TreeScanResult;

            if (result == null)
            {
                return;
            }

            this.projectResourcesTreeView.BeginUpdate();

            ImageList imageList = new ImageList();

            imageList.ColorDepth = ColorDepth.Depth32Bit;
            imageList.Images.Add(IconService.GetBitmap(IconService.GetImageForProjectType(this.project.Language)));
            imageList.Images.Add(WinFormsResourceService.GetBitmap("ProjectBrowser.Folder.Closed"));
            imageList.Images.Add(IconService.GetBitmap(IconService.GetImageForFile("a.resx")));
            imageList.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Field"));
            imageList.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Error"));
            this.projectResourcesTreeView.ImageList = imageList;

            this.projectResourcesTreeView.Nodes.Add(result.Root);

            if (result.PreSelection != null)
            {
                result.PreSelection.EnsureVisible();
                this.projectResourcesTreeView.SelectedNode = result.PreSelection;
                result.PreSelection.Expand();
            }
            else
            {
                result.Root.Expand();
            }

            this.projectResourcesTreeView.EndUpdate();

            if (result.PreSelection != null)
            {
                this.projectResourcesTreeView.Focus();
            }
        }
Esempio n. 2
0
        private void InitApplicationButton()
        {
            string notificationPath = "/Notification/StartNotification";

            if (AddInTree.ExistsTreeNode(notificationPath))
            {
                var descriptor = AddInTree.BuildItems <IReceiveNotification>(notificationPath, null);
                if (descriptor != null && descriptor.Count() > 0)
                {
                    descriptor.First().StartReceiveNotification(this);
                }
            }

            //send sys msg
            var sysMsgItem = new BarButtonItem();

            sysMsgItem.Caption = StringParser.Parse("SendSysMessage");
            sysMsgItem.Glyph   = (Bitmap)WinFormsResourceService.GetIcon("notification1").ToBitmap();
            Ribbon.Items.Add(sysMsgItem);
            sysMsgItem.ItemClick += (s, e) =>
            {
                var parameters = new ActionParameters(string.Empty, Guid.Empty, ViewShowType.Show);
                _application.Invoke("NotificationDetail", "NotificationAction", parameters);
            };

            //??CLEAR SET
            var clearSettingButton = new BarButtonItem();

            clearSettingButton.Caption = StringParser.Parse("ClearSetting");
            clearSettingButton.Glyph   = (Bitmap)WinFormsResourceService.GetBitmap("clear");

            Ribbon.Items.Add(clearSettingButton);
            clearSettingButton.ItemClick += delegate
            {
                string message = StringParser.Parse("ClearSettingConfirm");
                var    result  = XtraMessageBox.Show(message, StringParser.Parse("Katrin"), MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2);
                if (result == DialogResult.OK)
                {
                    //restore default layout.
                    var oldParameter = PropertyService.Get <UserLoginParameter>("Document.ParameterSettingName", null);
                    this._application.ViewManager.RestoreAllViewDefaultLayout();
                    PropertyService.Clean();
                    PropertyService.Set <UserLoginParameter>("Document.ParameterSettingName", oldParameter);
                    PropertyService.Save();
                }
            };

            //set language
            BarSubItem languageSettingButton = new BarSubItem();

            languageSettingButton.Caption = StringParser.Parse("languageSetting");
            languageSettingButton.Glyph   = WinFormsResourceService.GetIcon("edit").ToBitmap();
            Ribbon.Items.Add(languageSettingButton);

            //CMP Lista de Lenguajes Hardcodeado
            List <string> languages = new List <string>();

            languages.Add("zh-CN");
            languages.Add("en-US");
            languages.Add("es-ES");

            foreach (string language in languages)
            {
                BarButtonItem itemLanguage = new BarButtonItem();
                itemLanguage.Caption    = StringParser.Parse(language);
                itemLanguage.ItemClick += itemZh_ItemClick;
                languageSettingButton.ItemLinks.Add(itemLanguage);
                itemLanguage.Tag = language;
                Ribbon.Items.Add(itemLanguage);
            }
            pmAppMain.ItemLinks.AddRange(new BarItem[] { sysMsgItem, clearSettingButton, languageSettingButton });
        }
Esempio n. 3
0
        void debuggedProcess_DebuggingPaused(object sender, DebuggerPausedEventArgs e)
        {
            OnIsProcessRunningChanged(EventArgs.Empty);

            CurrentProcess = e.Process;
            if (e.Thread != null)
            {
                CurrentThread = e.Thread;
            }
            else if (CurrentThread != null && CurrentThread.HasExited)
            {
                CurrentThread = null;
            }
            CurrentStackFrame = CurrentThread != null ? CurrentThread.MostRecentStackFrame : null;

            // We can have several events happening at the same time
            bool breakProcess = e.Break;

            // Handle thrown exceptions
            foreach (Thread exceptionThread in e.ExceptionsThrown)
            {
                JumpToCurrentLine();

                Thread evalThread = exceptionThread;

                bool         isUnhandled     = (exceptionThread.CurrentExceptionType == ExceptionType.Unhandled);
                Value        exception       = exceptionThread.CurrentException.GetPermanentReferenceOfHeapValue();
                List <Value> innerExceptions = new List <Value>();
                for (Value innerException = exception; !innerException.IsNull; innerException = innerException.GetFieldValue("_innerException"))
                {
                    innerExceptions.Add(innerException.GetPermanentReferenceOfHeapValue());
                }

                // Get the exception description
                string stacktrace = string.Empty;
                for (int i = 0; i < innerExceptions.Count; i++)
                {
                    if (i > 0)
                    {
                        stacktrace += " ---> ";
                    }
                    stacktrace += innerExceptions[i].Type.FullName;
                    Value messageValue = innerExceptions[i].GetFieldValue("_message");
                    if (!messageValue.IsNull)
                    {
                        stacktrace += ": " + messageValue.AsString();
                    }
                }
                stacktrace += Environment.NewLine + Environment.NewLine;

                // Get the stacktrace
                string formatSymbols   = StringParser.Parse("${res:MainWindow.Windows.Debug.ExceptionForm.LineFormat.Symbols}");
                string formatNoSymbols = StringParser.Parse("${res:MainWindow.Windows.Debug.ExceptionForm.LineFormat.NoSymbols}");
                if (isUnhandled)
                {
                    // Need to intercept now so that we can evaluate properties
                    // Intercept may fail (eg StackOverflow)
                    if (exceptionThread.InterceptException())
                    {
                        try {
                            // Try to evaluate the StackTrace property to get the .NET formated stacktrace
                            for (int i = innerExceptions.Count - 1; i >= 0; i--)
                            {
                                Value stackTraceValue = innerExceptions[i].GetPropertyValue(evalThread, "StackTrace");
                                if (!stackTraceValue.IsNull)
                                {
                                    stacktrace += stackTraceValue.AsString() + Environment.NewLine;
                                }
                                if (i > 0)
                                {
                                    stacktrace += "   " + StringParser.Parse("${res:MainWindow.Windows.Debug.ExceptionForm.LineFormat.EndOfInnerException}") + Environment.NewLine;
                                }
                            }
                        } catch (GetValueException) {
                            stacktrace += exceptionThread.GetStackTrace(formatSymbols, formatNoSymbols);
                        }
                    }
                    else
                    {
                        stacktrace += StringParser.Parse("${res:MainWindow.Windows.Debug.ExceptionForm.Error.CannotInterceptException}") + Environment.NewLine + Environment.NewLine;
                        stacktrace += exceptionThread.GetStackTrace(formatSymbols, formatNoSymbols);
                    }
                }
                else
                {
                    // Do not intercept handled expetions
                    stacktrace += exceptionThread.GetStackTrace(formatSymbols, formatNoSymbols);
                }

                string title = isUnhandled ? StringParser.Parse("${res:MainWindow.Windows.Debug.ExceptionForm.Title.Unhandled}") : StringParser.Parse("${res:MainWindow.Windows.Debug.ExceptionForm.Title.Handled}");
                string type  = string.Format(StringParser.Parse("${res:MainWindow.Windows.Debug.ExceptionForm.Message}"), exception.Type);
                Bitmap icon  = WinFormsResourceService.GetBitmap(isUnhandled ? "Icons.32x32.Error" : "Icons.32x32.Warning");

                if (DebuggeeExceptionForm.Show(e.Process, title, type, stacktrace, icon, isUnhandled))
                {
                    breakProcess = true;
                    // The dialog box is allowed to kill the process
                    if (e.Process.HasExited)
                    {
                        return;
                    }
                    // Intercept handled exception *after* the user decided to break
                    if (!isUnhandled)
                    {
                        if (!exceptionThread.InterceptException())
                        {
                            MessageService.ShowError("${res:MainWindow.Windows.Debug.ExceptionForm.Error.CannotInterceptHandledException}");
                        }
                    }
                }
            }

            // Handle breakpoints
            foreach (Breakpoint breakpoint in e.BreakpointsHit)
            {
                var bookmark = SD.BookmarkManager.Bookmarks.OfType <BreakpointBookmark>().First(bm => bm.InternalBreakpointObject == breakpoint);

                if (string.IsNullOrEmpty(bookmark.Condition))
                {
                    breakProcess = true;
                }
                else
                {
                    if (EvaluateCondition(bookmark.Condition))
                    {
                        breakProcess = true;
                        BaseDebuggerService.PrintDebugMessage(string.Format(StringParser.Parse("${res:MainWindow.Windows.Debug.Conditional.Breakpoints.BreakpointHitAtBecause}") + "\n", bookmark.LineNumber, bookmark.FileName, bookmark.Condition));
                    }
                }
            }

            if (breakProcess)
            {
                JumpToCurrentLine();
                RefreshPads();
            }
            else
            {
                e.Process.AsyncContinue();
            }
        }
Esempio n. 4
0
        void CreateOutlook(ArrayList contents)
        {
            Outlook          = new NavBar(contents);
            Outlook.Dock     = System.Windows.Forms.DockStyle.Left;
            Outlook.Location = new System.Drawing.Point(0, 85);
            Outlook.Name     = "NavBar";
            Outlook.Size     = new System.Drawing.Size(160, 600);
            Outlook.TabIndex = 1;


            if (PadContentCollection.Count == 0)
            {
                return;
            }

            //    new ButtonGroup("欢迎使用")
            //    {
            //        ImageButtons = new List<ImageButton>()
            //        {
            //            new ImageButton("欢迎使用","Main",WinFormsResourceService.GetBitmap("NavBtnMain")),
            //            new ImageButton("联系人管理","ManageLinkMan",WinFormsResourceService.GetBitmap("NavBtnManageLinkMan"))
            //        }
            //    } ,

            var buttonGroup = new NavBar.ButtonGroup("欢迎使用");

            if (buttonGroup.ImageButtons == null)
            {
                buttonGroup.ImageButtons = new List <NavBar.ImageButton>();
            }
            foreach (PadDescriptor padDescriptor in contents)
            {
                buttonGroup.ImageButtons.Add(new NavBar.ImageButton(padDescriptor.Title, "", WinFormsResourceService.GetBitmap("NavBtnMain")));
            }
            Outlook.NavButtonGroup.Add(buttonGroup);
            Outlook.InitNavBar();
        }
        static ClassBrowserIconService()
        {
            imglist            = new ImageList();
            imglist.ColorDepth = ColorDepth.Depth32Bit;
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Assembly"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.OpenAssembly"));

            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Library"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.NameSpace"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.SubTypes"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.SuperTypes"));

            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.ClosedFolderBitmap"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.OpenFolderBitmap"));

            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Reference"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.ClosedReferenceFolder"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.OpenReferenceFolder"));

            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.ResourceFileIcon"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Event"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.SelectionArrow"));

            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.CombineIcon"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Literal"));             // const

            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Local"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Parameter"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Operator"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Keyword"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.TextFileIcon"));

            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Class"));             //21
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.InternalClass"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.ProtectedClass"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.PrivateClass"));

            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Struct"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.InternalStruct"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.ProtectedStruct"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.PrivateStruct"));

            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Interface"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.InternalInterface"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.ProtectedInterface"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.PrivateInterface"));

            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Enum"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.InternalEnum"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.ProtectedEnum"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.PrivateEnum"));

            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Method"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.InternalMethod"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.ProtectedMethod"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.PrivateMethod"));

            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Property"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.InternalProperty"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.ProtectedProperty"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.PrivateProperty"));

            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Field"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.InternalField"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.ProtectedField"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.PrivateField"));

            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Delegate"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.InternalDelegate"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.ProtectedDelegate"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.PrivateDelegate"));

            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Event"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.InternalEvent"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.ProtectedEvent"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.PrivateEvent"));

            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Indexer"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.InternalIndexer"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.ProtectedIndexer"));
            imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.PrivateIndexer"));
        }
 void InitImageList()
 {
     try {
         imageList.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Error"));
     } catch (ResourceNotFoundException) { }
 }
 public Bitmap GetResourceServiceBitmap(string resourceName)
 {
     return(WinFormsResourceService.GetBitmap(resourceName));
 }
Esempio n. 8
0
        bool AddDependencyRow(Dictionary <string, Version> addInDict, AddInReference dep, int rowIndex, string requiredByName)
        {
            string  text = requiredByName ?? GetDisplayName(dep.Name);
            Version versionFound;
            Label   label = new Label();

            label.AutoSize = true;
            label.Text     = text;
            PictureBox box = new PictureBox();

            box.BorderStyle = BorderStyle.None;
            box.Size        = new Size(16, 16);
            bool isOK = dep.Check(addInDict, out versionFound);

            box.SizeMode = PictureBoxSizeMode.CenterImage;
            box.Image    = isOK ? WinFormsResourceService.GetBitmap("Icons.16x16.OK") : WinFormsResourceService.GetBitmap("Icons.16x16.DeleteIcon");
            dependencyTable.Controls.Add(label, 1, rowIndex);
            dependencyTable.Controls.Add(box, 0, rowIndex);
            return(isOK);
        }
        private static SideTab CreateReportingSidetab()
        {
            SideTab sideTab = new SideTab("ReportDesigner");

            sideTab.CanSaved = false;
            AddPointerToSideTab(sideTab);

            // TextItem
            ToolboxItem tb = new ToolboxItem(typeof(ICSharpCode.Reports.Addin.BaseTextItem));

            tb.DisplayName = ResourceService.GetString("SharpReport.Toolbar.TextBox");
            tb.Bitmap      = WinFormsResourceService.GetIcon("Icons.16.16.SharpReport.Textbox").ToBitmap();
            sideTab.Items.Add(new SideTabItemDesigner(tb));



            //GroupHeader
            tb             = new ToolboxItem(typeof(ICSharpCode.Reports.Addin.GroupHeader));
            tb.Bitmap      = WinFormsResourceService.GetBitmap("Icons.16x16.NameSpace");
            tb.DisplayName = ResourceService.GetString("SharpReport.Toolbar.GroupHeader");
            sideTab.Items.Add(new SideTabItemDesigner(tb));


            //GroupFooter
            tb             = new ToolboxItem(typeof(ICSharpCode.Reports.Addin.GroupFooter));
            tb.Bitmap      = WinFormsResourceService.GetBitmap("Icons.16x16.NameSpace");
            tb.DisplayName = ResourceService.GetString("SharpReport.Toolbar.GroupFooter");
            sideTab.Items.Add(new SideTabItemDesigner(tb));

            // Row
            tb             = new ToolboxItem(typeof(ICSharpCode.Reports.Addin.BaseRowItem));
            tb.Bitmap      = WinFormsResourceService.GetBitmap("Icons.16x16.SharpQuery.Table");
            tb.DisplayName = ResourceService.GetString("SharpReport.Toolbar.DataRow");
            sideTab.Items.Add(new SideTabItemDesigner(tb));

            //BaseTable
//			tb.Bitmap = WinFormsResourceService.GetBitmap("Icons.16x16.SharpQuery.Table");
            tb.Bitmap      = WinFormsResourceService.GetBitmap("Icons.16x16.SharpQuery.Table");
            tb             = new ToolboxItem(typeof(ICSharpCode.Reports.Addin.BaseTableItem));
            tb.DisplayName = ResourceService.GetString("SharpReport.Toolbar.Table");
            sideTab.Items.Add(new SideTabItemDesigner(tb));


            //BaseDataItem
            tb             = new ToolboxItem(typeof(ICSharpCode.Reports.Addin.BaseDataItem));
            tb.DisplayName = ResourceService.GetString("SharpReport.Toolbar.DataField");
//				tb.Bitmap = WinFormsResourceService.GetBitmap("Icons.16x16.SharpQuery.Column");
            tb.Bitmap = WinFormsResourceService.GetBitmap("Icons.16x16.SharpQuery.Column");
            sideTab.Items.Add(new SideTabItemDesigner(tb));

            //Grahics
            // Line
            tb             = new ToolboxItem(typeof(ICSharpCode.Reports.Addin.BaseLineItem));
            tb.DisplayName = ResourceService.GetString("SharpReport.Toolbar.Line");
            tb.Bitmap      = WinFormsResourceService.GetIcon("Icons.16.16.SharpReport.Line").ToBitmap();
            sideTab.Items.Add(new SideTabItemDesigner(tb));

            // Rectangle
            tb             = new ToolboxItem(typeof(ICSharpCode.Reports.Addin.BaseRectangleItem));
            tb.DisplayName = ResourceService.GetString("SharpReport.Toolbar.Rectangle");
            tb.Bitmap      = GlobalValues.RectangleBitmap();
            sideTab.Items.Add(new SideTabItemDesigner(tb));

            // Circle
            tb             = new ToolboxItem(typeof(ICSharpCode.Reports.Addin.BaseCircleItem));
            tb.DisplayName = ResourceService.GetString("SharpReport.Toolbar.Circle");
            tb.Bitmap      = GlobalValues.CircleBitmap();
            sideTab.Items.Add(new SideTabItemDesigner(tb));


            // Image
            tb             = new ToolboxItem(typeof(ICSharpCode.Reports.Addin.BaseImageItem));
            tb.DisplayName = ResourceService.GetString("SharpReport.Toolbar.Image");
            tb.Bitmap      = WinFormsResourceService.GetIcon("Icons.16x16.ResourceEditor.bmp").ToBitmap();
            sideTab.Items.Add(new SideTabItemDesigner(tb));
            return(sideTab);
        }
Esempio n. 10
0
 public void ShowAlert(NotificationDTO data)
 {
     InitButtonsStyle(data);
     control.Show(form, data.Subject, data.Body, null, new Bitmap(WinFormsResourceService.GetBitmap("sendsysmsg"), new Size(48, 48)), data);
 }
 public SharpDevelopSideTabItem(string name, object tag)
     : base(name, tag)
 {
     Icon = WinFormsResourceService.GetBitmap("Icons.16x16.SideBarDocument");
 }