Esempio n. 1
0
        static NIDELoadUC()
        {
            Type   t    = typeof(NIDELoadUC);
            string path = "Nevron.Examples.UI.WinForm.SampleIDEs.Bitmaps";

            StandardImageList         = NResourceHelper.ImageListFromBitmap(t, new Size(16, 16), Color.Magenta, "IDEStandard.bmp", path);
            SolutionExplorerImageList = NResourceHelper.ImageListFromBitmap(t, new Size(16, 16), Color.Magenta, "SolutionExplorer.bmp", path);
        }
Esempio n. 2
0
        static MainForm()
        {
            Type   t    = typeof(MainForm);
            string path = "Nevron.Examples.UI.WinForm.Resources";

            StandardImages = NResourceHelper.ImageListFromBitmap(typeof(MainForm), new Size(16, 16), Color.Silver, "Standard.bmp", path);
            ActionImages   = NResourceHelper.ImageListFromBitmap(typeof(MainForm), new Size(16, 16), Color.Magenta, "Action.bmp", path);
            LayoutImages   = NResourceHelper.ImageListFromBitmap(typeof(MainForm), new Size(16, 16), Color.Magenta, "Layout.bmp", path);
            ToolsImages    = NResourceHelper.ImageListFromBitmap(typeof(MainForm), new Size(16, 16), Color.Magenta, "Tools.bmp", path);
            ViewImages     = NResourceHelper.ImageListFromBitmap(typeof(MainForm), new Size(16, 16), Color.Magenta, "View.bmp", path);
            TestImages     = NResourceHelper.ImageListFromBitmap(typeof(MainForm), new Size(16, 16), Color.Magenta, "Test.bmp", path);
            FormatImages   = NResourceHelper.ImageListFromBitmap(typeof(MainForm), new Size(16, 16), Color.Magenta, "Format.bmp", path);
            MiscImages     = NResourceHelper.ImageListFromBitmap(typeof(MainForm), new Size(16, 16), Color.Magenta, "Misc.bmp", path);
            DockingImages  = NResourceHelper.ImageListFromBitmap(typeof(MainForm), new Size(16, 16), Color.Magenta, "Docking.bmp", path);
        }
Esempio n. 3
0
        internal void InitShapedPopups()
        {
            m_ShapedPopup1 = new NPopupNotify();
            m_ShapedPopup2 = new NPopupNotify();
            m_ShapedPopup3 = new NPopupNotify();

            m_ShapedPopup1.PredefinedStyle = PredefinedPopupStyle.Shaped;
            m_ShapedPopup2.PredefinedStyle = PredefinedPopupStyle.Shaped;
            m_ShapedPopup3.PredefinedStyle = PredefinedPopupStyle.Shaped;

            Type   type = typeof(NPopupNotifyUC);
            string path = "Nevron.Examples.UI.WinForm.PopupNotify";

            m_ShapedPopup1.ShapeTransparentColor = Color.Magenta;
            m_ShapedPopup2.ShapeTransparentColor = Color.Magenta;
            m_ShapedPopup3.ShapeTransparentColor = Color.Magenta;

            m_ShapedPopup1.Shape = NResourceHelper.BitmapFromResource(type, "notification3.bmp", path);
            m_ShapedPopup1.Caption.ButtonSize     = new NSize(20, 20);
            m_ShapedPopup1.Caption.ButtonsMargins = new NPadding(0, 4, 0, 6);
            m_ShapedPopup1.MoveableBounds         = new Rectangle(100, 69, 226, 10);
            m_ShapedPopup1.CaptionBounds          = new Rectangle(80, 69, 246, 30);
            m_ShapedPopup1.ContentBounds          = new Rectangle(100, 79, 206, 46);

            m_ShapedPopup2.Shape                  = NResourceHelper.BitmapFromResource(type, "notification1.bmp", path);
            m_ShapedPopup2.Content.Padding        = new NPadding(6, 0, 0, 0);
            m_ShapedPopup2.Caption.ButtonsMargins = new NPadding(0, 6, 0, 23);
            m_ShapedPopup2.Content.Text           = "<font color='#606060' face='Tahoma'><b>Meet John!</b></font>";

            m_ShapedPopup3.Shape = NResourceHelper.BitmapFromResource(type, "notification2.bmp", path);
            m_ShapedPopup3.Caption.ButtonsMargins = new NPadding(0, 3, 0, 4);
            m_ShapedPopup3.Content.Text           = "<font face='Trebuchet MS' color='brown' size='10'><b>Welcome to<br/>Nevron UI for .NET</b></font>";

            NImageAndTextItem item = m_ShapedPopup1.Content;

            item.Text = "<u><font face='Verdana' color='Red'><i>You have 1 <font color='Navy'>new</font> message(s)!</i></font></u>";

            ImageList       list     = NResourceHelper.ImageListFromBitmap(type, new Size(20, 20), Color.Magenta, "close.bmp", path);
            NUIItemImageSet imageSet = m_ShapedPopup1.CloseButtonImageSet;

            imageSet.NormalImage  = list.Images[0];
            imageSet.HotImage     = list.Images[1];
            imageSet.PressedImage = list.Images[2];
        }
Esempio n. 4
0
 internal NTreeListUCHelper()
 {
     m_Images      = NResourceHelper.ImageListFromBitmap(GetType(), new Size(16, 16), Color.Transparent, "Outlook.jpg", "Nevron.Examples.UI.WinForm.TreeList.Images");
     m_arrNames    = new string[] { "John Doe", "*****@*****.**", "*****@*****.**", "*****@*****.**" };
     m_arrSubjects = new string[] { "NTreeList Question", "Re: Help Needed", "Licensing Question", "Nevron UI General Support" };
 }