private void ShowHint(DevExpress.XtraTab.IXtraTabPage page)
 {
     ToolTipControlInfo toolTip = new ToolTipControlInfo();
     toolTip.ToolTipType = ToolTipType.SuperTip;
     toolTip.Interval = 500;
     toolTip.Object = page;
     SuperToolTip superTip = new SuperToolTip();
     toolTip.SuperTip = superTip;
     superTip.Items.AddTitle(page.Text);
     superTip.Items.AddSeparator();
     ToolTipItem item1 = new ToolTipItem();
     var child = (page as XtraMdiTabPage).MdiChild;
     item1.Image = ThumbnailHelper.FormToBitmap(child, new Size((int)(child.Size.Width * 0.6), (int)(child.Size.Height * 0.6)));
     superTip.Items.Add(item1);
     ToolTipController.DefaultController.ShowHint(toolTip);
 }
示例#2
0
        private void toolTipController1_GetActiveObjectInfo(object sender, ToolTipControllerGetActiveObjectInfoEventArgs e)
        {
            if (e.SelectedControl != gridControl1)
            {
                return;
            }
            ToolTipControlInfo info      = null;
            SuperToolTip       sTooltip1 = new SuperToolTip();

            try
            {
                GridView view = gridControl1.GetViewAt(e.ControlMousePosition) as GridView;
                if (view == null)
                {
                    return;
                }
                GridHitInfo hi = view.CalcHitInfo(e.ControlMousePosition);
                if (hi.HitTest == GridHitTest.RowIndicator)
                {
                    info = new ToolTipControlInfo(GridHitTest.RowIndicator.ToString() + hi.RowHandle.ToString(), "Row Handle: " + hi.RowHandle.ToString());
                    ToolTipTitleItem titleItem1 = new ToolTipTitleItem();
                    Image            im         = view.GetRowCellValue(hi.RowHandle, "Picture") as Image;
                    ToolTipItem      item1      = new ToolTipItem();
                    item1.Image = im;
                    sTooltip1.Items.Add(item1);
                }
                info          = new ToolTipControlInfo(hi.HitTest, "");
                info.SuperTip = sTooltip1;
            }
            finally
            {
                e.Info = info;
            }
        }
示例#3
0
 protected override void InitToolTipItem(ToolTipItem item) {
     var movie = ObjectSpace.FindObject<Movie>(CriteriaOperator.Parse("MovieTitle=?", EditObject));
     var photo = movie.Photo;
     if (photo != null)
         item.Image = photo.CreateImage(MaxPhotoWidth, MaxPhotoHeight);
     item.Text = movie.GetMovieInfoHtml();
 }
        public static SuperToolTip CreateToolTips(string name, string info, string picPath)
        {
            var superToolTip1 = new SuperToolTip {
                AllowHtmlText = DefaultBoolean.True
            };
            var toolTipTitleItem1 = new ToolTipTitleItem();
            var toolTipItem1      = new ToolTipItem();

            toolTipTitleItem1.Text = name;
            if (!string.IsNullOrEmpty(picPath))
            {
                if (File.Exists(Environment.CurrentDirectory + picPath))
                {
                    toolTipItem1.Appearance.Image = Image.FromFile(Environment.CurrentDirectory + picPath);
                }
                toolTipItem1.Appearance.Options.UseImage = true;
                if (File.Exists(Environment.CurrentDirectory + picPath))
                {
                    toolTipItem1.Image = Image.FromFile(Environment.CurrentDirectory + picPath);
                }
            }
            toolTipItem1.LeftIndent = 6;
            toolTipItem1.Text       = info;
            superToolTip1.Items.Add(toolTipTitleItem1);
            superToolTip1.Items.Add(toolTipItem1);
            return(superToolTip1);
        }
示例#5
0
 private void ParseTooltips()
 {
     if (this.codon != null && this.codon.Properties.Contains("tooltip"))
     {
         SuperToolTip     superToolTip     = new SuperToolTip();
         ToolTipItem      toolTipItem      = new ToolTipItem();
         ToolTipTitleItem toolTipTitleItem = new ToolTipTitleItem();
         string           text             = StringParser.Parse(this.codon.Properties["tooltip"]);
         if (text.Contains(":"))
         {
             toolTipTitleItem.Text = text.Split(new char[]
             {
                 ':'
             })[0];
             toolTipItem.Text = text.Split(new char[]
             {
                 ':'
             })[1];
         }
         else
         {
             toolTipItem.Text = text;
         }
         superToolTip.Items.Add(toolTipTitleItem);
         superToolTip.Items.Add(toolTipItem);
         this.SuperTip = superToolTip;
     }
 }
        private void toolTipController1_BeforeShow(object sender, DevExpress.Utils.ToolTipControllerShowEventArgs e)
        {
            if (toolTipController1.ActiveObject is AppointmentViewInfo)
            {
                Appointment apt = ((AppointmentViewInfo)toolTipController1.ActiveObject).Appointment;

                e.ToolTipType = ToolTipType.SuperTip;

                SuperToolTip     stt       = new SuperToolTip();
                ToolTipTitleItem ttiTitle  = new ToolTipTitleItem();
                ToolTipItem      ttiBody   = new ToolTipItem();
                ToolTipItem      ttiFooter = new ToolTipItem();

                ttiTitle.Text = "Appointment";

                ttiBody.Text = string.Format("Subject: {0} \nDescription: {1}\nPrice: {2}",
                                             apt.Subject, apt.Description, apt.CustomFields["cfPrice"]);

                ttiBody.Image = SystemIcons.Information.ToBitmap();

                ttiFooter.AllowHtmlText        = DefaultBoolean.True;
                ttiFooter.Text                 = "<b>www.devexpress.com</b>";
                ttiFooter.Appearance.BackColor = Color.Red;
                ttiFooter.Appearance.ForeColor = Color.Blue;
                ttiFooter.LeftIndent           = 30;

                stt.Items.Add(ttiTitle);
                stt.Items.AddSeparator();
                stt.Items.Add(ttiBody);
                stt.Items.AddSeparator();
                stt.Items.Add(ttiFooter);

                e.SuperTip = stt;
            }

            if (toolTipController1.ActiveObject is ResourceHeader)
            {
                Resource res = ((ResourceHeader)toolTipController1.ActiveObject).Resource;

                e.ToolTipType = ToolTipType.Standard;
                e.Rounded     = true;

                e.Title   = "Resource";
                e.ToolTip = res.Caption;
            }

            if (toolTipController1.ActiveObject is DayHeader || toolTipController1.ActiveObject is TimeScaleHeader)
            {
                TimeInterval interval = ((SchedulerHeader)toolTipController1.ActiveObject).Interval;

                e.ToolTipType = ToolTipType.Standard;
                e.IconType    = ToolTipIconType.Exclamation;
                e.ShowBeak    = true;
                e.Title       = "TimeInterval";
                e.ToolTip     = interval.ToString();
            }
        }
示例#7
0
 private void TextEditDocLocation_EditValueChanged(object sender, EventArgs e)
 {
     var obj = sender as BaseEdit;
     var superToolTip1 = new SuperToolTip();
     var toolTipItem1 = new ToolTipItem();
     toolTipItem1.Text = obj.Text;
     superToolTip1.Items.Add(toolTipItem1);
     obj.SuperTip = superToolTip1;
 }
示例#8
0
        private static SuperToolTip addImageToToolTip(Image tooltipImage, SuperToolTip tooltip)
        {
            var toolTipItem = new ToolTipItem {
                Image = tooltipImage
            };

            tooltip.Items.Add(toolTipItem);
            return(tooltip);
        }
        ///<summary>Creates a new GoogleMapsControl.</summary>
        public GoogleMapControl()
        {
            InitializeComponent();
            UpdateMap();

            tooltipTitle = tooltip.Items.AddTitle("Address");
            tooltipContents = tooltip.Items.Add(AddressString);
            toolTipController.SetSuperTip(this, tooltip);
            toolTipController.SetSuperTip(pictureBox, tooltip);
        }
示例#10
0
        ///<summary>Creates a new GoogleMapsControl.</summary>
        public GoogleMapControl()
        {
            InitializeComponent();
            UpdateMap();

            tooltipTitle    = tooltip.Items.AddTitle("Address");
            tooltipContents = tooltip.Items.Add(AddressString);
            toolTipController.SetSuperTip(this, tooltip);
            toolTipController.SetSuperTip(pictureBox, tooltip);
        }
示例#11
0
        private void TextEditDocLocation_EditValueChanged(object sender, EventArgs e)
        {
            var obj           = sender as BaseEdit;
            var superToolTip1 = new SuperToolTip();
            var toolTipItem1  = new ToolTipItem();

            toolTipItem1.Text = obj.Text;
            superToolTip1.Items.Add(toolTipItem1);
            obj.SuperTip = superToolTip1;
        }
示例#12
0
        protected override void InitToolTipItem(ToolTipItem item)
        {
            var movie = ObjectSpace.FindObject <Movie>(CriteriaOperator.Parse("MovieTitle=?", EditObject));
            var photo = movie.Photo;

            if (photo != null)
            {
                item.Image = photo.CreateImage(MaxPhotoWidth, MaxPhotoHeight);
            }
            item.Text = movie.GetMovieInfoHtml();
        }
示例#13
0
        protected override void InitToolTipItem(ToolTipItem item)
        {
            var customer = ((Customer)EditObject);
            var photo    = customer.Photo;

            if (photo != null)
            {
                item.Image = photo.CreateImage(MaxPhotoWidth, MaxPhotoHeight);
            }
            item.Text = customer.GetCustomerInfoHtml();
        }
示例#14
0
        ///////////////////////////////////////////////////////////////////////////////////////////////
        // Method(Public)
        ///////////////////////////////////////////////////////////////////////////////////////////////

        #region :: SetSuperToolTip :: ToolTip을 설정합니다.

        /// <summary>
        /// ToolTip을 설정합니다.
        /// </summary>
        /// <param name="title"></param>
        /// <param name="contents"></param>
        public void SetSuperToolTip(string title, string contents)
        {
            SuperToolTip     sTip      = new SuperToolTip();
            ToolTipTitleItem tTitle    = new ToolTipTitleItem();
            ToolTipItem      tContents = new ToolTipItem();

            tTitle.Text          = title;
            tContents.Text       = contents;
            tContents.LeftIndent = 6;
            sTip.Items.Add(tTitle);
            sTip.Items.Add(tContents); CboFrom.SuperTip = sTip;
        }
示例#15
0
 protected override void InitToolTipItem(ToolTipItem item)
 {
     if (CurrentContact == null)
     {
         return;
     }
     if (CurrentContact.Photo != null)
     {
         item.Image = ImageCreator.CreateImage(CurrentContact.Photo, MaxPhotoWidth, MaxPhotoHeight);
     }
     item.Text = CurrentContact.GetContactInfoHtml();
 }
示例#16
0
        XtraTabPage AddTabButton(
            string name,
            string text,
            string ttHeader,
            string ttText,
            string imageName,
            bool show)
        {
            XtraTabPage           tp;
            XtraTabPageCollection tabs = Tabs.TabPages;

            int tpi = 0;

            while (tpi < tabs.Count)             // always remove any existing item
            {
                tp = tabs[tpi];
                if (tp.Tag != null && Lex.Eq(tp.Tag.ToString(), name))
                {
                    tabs.RemoveAt(tpi);
                }
                else
                {
                    tpi++;
                }
            }

            if (!show)
            {
                return(null);
            }

            tp = new XtraTabPage();
            SetTabImage(tp, imageName);
            tp.Text = text;
            tp.Tag  = name;            // tab id
            SuperToolTip stt = new SuperToolTip();

            ToolTipTitleItem ttti = new DevExpress.Utils.ToolTipTitleItem();

            ttti.Text = ttHeader;

            ToolTipItem tti = new ToolTipItem();

            tti.LeftIndent = 6;
            tti.Text       = ttText;
            stt.Items.Add(ttti);
            stt.Items.Add(tti);
            tp.SuperTip = stt;
            tabs.Add(tp);
            return(tp);
        }
示例#17
0
        bool GenerateVoteToolTipCore(SuperToolTip superTip, string titleText, List <CandidateVote> votes, int totalCount, bool allowElecotralInfo = true)
        {
            ToolTipTitleItem title = new ToolTipTitleItem()
            {
                Text = titleText
            };

            superTip.Items.Add(title);
            superTip.Items.AddSeparator();

            if (votes.Count == 0)
            {
                superTip.Items.Add(new ToolTipItem()
                {
                    Text = "No information available yet"
                });
                return(true);
            }
            CandidateVote eWinner = null;

            foreach (var vote in votes.OrderBy(q => q.CandidateType))
            {
                ToolTipItem ti = new ToolTipItem();
                ti.Image = colorizer.GenerateImage(vote.CandidateType);
                ti.Text  = string.Format("{0} <b>{1:p}</b> ({2:n0})", GetNameByType(vote.CandidateType), Helpers.GetPercent(vote.VotesCount, totalCount), vote.VotesCount);
                superTip.Items.Add(ti);

                if (vote.ElectoralVotes > 0)
                {
                    if (eWinner != null)
                    {
                        eWinner = null;
                    }
                    else
                    {
                        eWinner = vote;
                    }
                }
            }

            if (eWinner != null && allowElecotralInfo)
            {
                superTip.Items.AddSeparator();
                ToolTipItem winner = new ToolTipItem();
                winner.Image = colorizer.GenerateImage(eWinner.CandidateType);
                winner.Text  = string.Format("<b>{0}</b> electoral votes going to <b>{1}</b>", eWinner.ElectoralVotes, GetNameByType(eWinner.CandidateType));
                superTip.Items.Add(winner);
            }
            return(true);
        }
 public void ShowHint(object editObject, Point location, IObjectSpace objectSpace, ToolTipController toolTipController) {
     if (Equals(editObject, _editObject)) return;
     _objectSpace = objectSpace;
     _editObject = editObject;
     var info = new ToolTipControlInfo();
     var item = new ToolTipItem();
     InitToolTipItem(item);
     item.ImageToTextDistance = 10;
     info.Object = DateTime.Now.Ticks;
     info.SuperTip = new SuperToolTip();
     info.SuperTip.Items.Add(item);
     info.ToolTipPosition = parent.PointToScreen(location);
     toolTipController.ShowHint(info);
     _hintIsShown = true;
 }
        private void CheckAddress()
        {
            string title;
            string msg;
            List <AccessoryDecoderConnection> connections = null;
            SuperToolTip     sttInfo  = new SuperToolTip();
            ToolTipTitleItem sttTitle = new ToolTipTitleItem();
            ToolTipItem      sttItem  = new ToolTipItem();

            // Obtain all duplicated addresses
            connections.AddRange(AccessoryDecoderConnection.GetDuplicated());


            if (this.Address <= 0)
            {
                title = "INFORMATION";
                msg   = "Accessory addresses must start at address 1. A connection with address 0 mens that the connection is disabled.";

                sttTitle.Appearance.Image = Properties.Resources.ICO_INFORMATION_16;
            }
            else if (connections.Count > 0)
            {
                title = "WARNING";
                msg   = string.Format("The address {0} is used in other {1} accessory connection(s).", this.Address, connections.Count);

                sttTitle.Appearance.Image = Properties.Resources.ICO_ERROR_16;
            }
            else
            {
                title = "INFORMATION";
                msg   = string.Format("Accessory address is valid. Used only in the current connection.");

                sttTitle.Appearance.Image = Properties.Resources.ICO_INFORMATION_16;
            }

            sttTitle.Appearance.Options.UseImage = true;
            sttTitle.Text      = title;
            sttItem.LeftIndent = 6;
            sttItem.Text       = msg;
            sttInfo.Items.Add(sttTitle);
            sttInfo.Items.Add(sttItem);

            var sea = new ToolTipControllerShowEventArgs();

            sea.SuperTip    = sttInfo;
            sea.ToolTipType = ToolTipType.SuperTip;
            toolTipController.ShowHint(sea, Cursor.Position);
        }
示例#20
0
        private SuperToolTip GetSuperToolTip(CheckedComboBoxEdit edit, DataRow row)
        {
            SuperToolTip superToolTip = new SuperToolTip();
            ToolTipItem  itemDecsr    = new ToolTipItem();

            itemDecsr.Text = row[edit.Properties.DisplayMember].ToString();
            ToolTipItem itemValue = new ToolTipItem();

            itemValue.Text = row[edit.Properties.ValueMember].ToString();
            ToolTipItem itemImage = new ToolTipItem();

            itemImage.Image = GetToolTipImage(row, itemImage);
            superToolTip.Items.Add(itemDecsr);
            superToolTip.Items.Add(itemValue);
            superToolTip.Items.Add(itemImage);
            return(superToolTip);
        }
        private void ThongTinChiTietTKB(Label lbl, ToolTipController toolTipController1, string tenMH, int tietBD, int soTiet, string tenGV, string phongHoc, string diaChi, int mode)
        {
            try
            {
                SuperToolTip superToolTip1 = new SuperToolTip();

                ToolTipTitleItem toolTipTitleItem1 = new ToolTipTitleItem();
                toolTipTitleItem1.Appearance.Image            = global::QuanLyDaoTao.Properties.Resources.non_32;
                toolTipTitleItem1.Appearance.Options.UseImage = true;
                toolTipTitleItem1.Image = global::QuanLyDaoTao.Properties.Resources.non_32;
                toolTipTitleItem1.Text  = "Thông tin chi tiết thời khóa biểu";

                ToolTipItem toolTipItem1 = new ToolTipItem();
                toolTipItem1.LeftIndent = 6;
                toolTipItem1.Text      += "Tên môn học: " + tenMH;
                toolTipItem1.Text      += "\nTiết bắt đầu: " + (tietBD + 1).ToString();
                toolTipItem1.Text      += "\nSố tiết: " + soTiet.ToString();
                toolTipItem1.Text      += "\nGiảng viên: " + tenGV;
                toolTipItem1.Text      += "\nPhòng học: " + phongHoc;
                toolTipItem1.Text      += "\nĐịa chỉ: " + diaChi;
                if (mode == 1)
                {
                    toolTipItem1.Text += "\nTrạng thái: Đã dạy";
                }
                else
                {
                    toolTipItem1.Text += "\nTrạng thái: Chưa/không dạy";
                }

                ToolTipTitleItem toolTipTitleItem2 = new ToolTipTitleItem();
                toolTipTitleItem2.LeftIndent = 6;
                toolTipTitleItem2.Text       = "Hệ thống quản lý đào tạo";
                superToolTip1.Items.Add(toolTipTitleItem1);
                superToolTip1.Items.Add(toolTipItem1);

                ToolTipSeparatorItem toolTipSeparatorItem1 = new ToolTipSeparatorItem();
                superToolTip1.Items.Add(toolTipSeparatorItem1);
                superToolTip1.Items.Add(toolTipTitleItem2);

                toolTipController1.SetSuperTip(lbl, superToolTip1);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#22
0
        public void ShowHint(object editObject, Point location)
        {
            if (object.Equals(editObject, this.editObject))
            {
                return;
            }
            this.editObject = editObject;
            ToolTipControlInfo info = new ToolTipControlInfo();
            ToolTipItem        item = new ToolTipItem();

            InitToolTipItem(item);
            item.ImageToTextDistance = 10;
            info.Object   = DateTime.Now.Ticks;
            info.SuperTip = new SuperToolTip();
            info.SuperTip.Items.Add(item);
            info.ToolTipPosition = this.parent.PointToScreen(location);
            controller.ShowHint(info);
        }
示例#23
0
        private void ShowHint(DevExpress.XtraTab.IXtraTabPage page)
        {
            ToolTipControlInfo toolTip = new ToolTipControlInfo();

            toolTip.ToolTipType = ToolTipType.SuperTip;
            toolTip.Interval    = 500;
            toolTip.Object      = page;
            SuperToolTip superTip = new SuperToolTip();

            toolTip.SuperTip = superTip;
            superTip.Items.AddTitle(page.Text);
            superTip.Items.AddSeparator();
            ToolTipItem item1 = new ToolTipItem();

            item1.Image = ThumbnailHelper.FormToBitmap((page as XtraMdiTabPage).MdiChild, new Size(200, 200));
            superTip.Items.Add(item1);
            ToolTipController.DefaultController.ShowHint(toolTip);
        }
示例#24
0
        public void ShowHint(object editObject, Point location, IObjectSpace objectSpace, ToolTipController toolTipController)
        {
            if (Equals(editObject, _editObject))
            {
                return;
            }
            _objectSpace = objectSpace;
            _editObject  = editObject;
            var info = new ToolTipControlInfo();
            var item = new ToolTipItem();

            InitToolTipItem(item);
            item.ImageToTextDistance = 10;
            info.Object   = DateTime.Now.Ticks;
            info.SuperTip = new SuperToolTip();
            info.SuperTip.Items.Add(item);
            info.ToolTipPosition = _parent.PointToScreen(location);
            toolTipController.ShowHint(info);
            _hintIsShown = true;
        }
示例#25
0
 public object open(object param)
 {
     if (staticItem == null)
     {
         staticItem = new BarStaticItem();
         staticItem.Glyph = FWImageDic.WARN_IMAGE16;
         toolTip = new ToolTipItem();
         SuperToolTip superToltip = new SuperToolTip();
         superToltip.Items.Add(toolTip);
         staticItem.SuperTip = superToltip;
         ribStaBar.ItemLinks.Add(staticItem);
         staticItem.Alignment = BarItemLinkAlignment.Right;
     }
     else
     {
         //PHUOCNC Index = 3
         ribStaBar.ItemLinks[3].Visible = true;
     }
     return "NOTHING";
 }
        void ShowToolTip(IModelColumnTooltipData modelColumnTooltipData)
        {
            var toolTipControlInfo = new ToolTipControlInfo();
            var item = new ToolTipItem {
                ImageToTextDistance = 0
            };
            var modelTooltipData = modelColumnTooltipData.TooltipData;

            if (modelTooltipData.DataOnToolTip)
            {
                var modelMember = modelColumnTooltipData.ModelMember;
                if (modelMember.MemberInfo.MemberType == typeof(Image))
                {
                    var image = modelMember.MemberInfo.GetValue(GridView.GetRow(HotTrackInfo.RowHandle)) as Image;
                    if (modelTooltipData.MaxWidth > 0 && modelTooltipData.MaxHeight > 0)
                    {
                        image = image.CreateImage(modelTooltipData.MaxWidth, modelTooltipData.MaxHeight);
                    }
                    item.Image = image;
                }
                else
                {
                    item.Text = string.Format("{0}", GridView.GetRowCellValue(HotTrackInfo.RowHandle, HotTrackInfo.Column));
                }
            }
            else if (!string.IsNullOrEmpty(modelTooltipData.ToolTipText))
            {
                item.Text = modelTooltipData.ToolTipText;
            }
            else
            {
                var controller = ObjectToolTipController(modelColumnTooltipData);
                controller.ShowHint(GridView.GetRow(HotTrackInfo.RowHandle), HotTrackInfo.HitPoint, ObjectSpace, _toolTipController);
                return;
            }
            toolTipControlInfo.Object   = HotTrackInfo;
            toolTipControlInfo.SuperTip = new SuperToolTip();
            toolTipControlInfo.SuperTip.Items.Add(item);
            toolTipControlInfo.ToolTipPosition = Cursor.Position;
            _toolTipController.ShowHint(toolTipControlInfo);
        }
示例#27
0
        public static void _setTooTip(BaseControl control, String header, String htmlText, String footer)
        {
            SuperToolTip superToolTip = new SuperToolTip();

            ToolTipItem toolTipItem = new ToolTipItem();
            toolTipItem.Text = htmlText;
            toolTipItem.AllowHtmlText = DefaultBoolean.True;
            if (header != null)
            {
                superToolTip.Items.AddTitle(header);
            }
            superToolTip.Items.Add(toolTipItem);
            if (footer != null)
            {
                superToolTip.Items.AddSeparator();
                superToolTip.Items.AddTitle(footer);
            }
            superToolTip.AllowHtmlText = DefaultBoolean.True;

            control.SuperTip = superToolTip;
        }
示例#28
0
        private void makeAppList()
        {
            this.apps  = new Dictionary <string, string>();
            this.items = new List <TileBarItem>();
            String    execute    = String.Format("EXEC XSHEET.[dbo].[sp_CheckAPPList] N'{0}', N'{1}'", UserDomain, UserName);
            DataTable dt         = DBUtil.getDataTable("MAIN", execute, "", null, null);
            int       colorindex = 0;

            foreach (DataRow row in dt.Rows)
            {
                apps.Add(row[0].ToString().ToUpper(), row[3].ToString());
                TileBarItem item = new TileBarItem();
                item.AppearanceItem.Normal.BackColor            = ItemColorList.colorList[colorindex];
                item.AppearanceItem.Normal.Options.UseBackColor = true;
                item.DropDownOptions.BeakColor = System.Drawing.Color.Empty;
                TileItemElement tileitem = new TileItemElement();
                tileitem.Text = row[1].ToString();
                item.Elements.Add(tileitem);
                item.Id       = 6 + colorindex;
                item.ItemSize = DevExpress.XtraBars.Navigation.TileBarItemSize.Medium;
                ToolTipTitleItem tooltiptitle = new ToolTipTitleItem();
                tooltiptitle.Text = row[0].ToString();
                ToolTipItem tooltip = new ToolTipItem();
                tooltip.LeftIndent = 6 + colorindex;
                tooltip.Text       = row[1].ToString();
                SuperToolTip supertooltip = new SuperToolTip();
                supertooltip.Items.Add(tooltiptitle);
                supertooltip.Items.Add(tooltip);
                item.SuperTip = supertooltip;

                item.Tag = row[0].ToString();
                colorindex++;
                if (colorindex >= 4)
                {
                    colorindex = 0;
                }
                items.Add(item);
            }
        }
        private void SetToolTip(Control control, string content)
        {
            ToolTipInfo toolTipInfo1 = new ToolTipInfo();

            toolTipInfo1.MaxWidth        = 1000;
            toolTipInfo1.ToolTipStyle    = ToolTipStyle.Balloon;
            toolTipInfo1.ToolTipLocation = ToolTipLocation.BottomRight;
            toolTipInfo1.BeakBackColor   = ColorTranslator.FromHtml("#3D3D3D");
            toolTipInfo1.BorderColor     = ColorTranslator.FromHtml("#1E1E1E");
            ToolTipItem toolTipItem1 = new ToolTipItem();

            toolTipItem1.Padding         = new Padding(10);
            toolTipItem1.Style.BackColor = ColorTranslator.FromHtml("#3D3D3D");

            RichTextBox richTextBox1 = new RichTextBox();

            richTextBox1.Margin           = new Padding(0);
            richTextBox1.Location         = new Point(0, 0);
            richTextBox1.WordWrap         = true;
            richTextBox1.ScrollBars       = RichTextBoxScrollBars.None;
            richTextBox1.Width            = 500;
            richTextBox1.BackColor        = ColorTranslator.FromHtml("#3D3D3D");
            richTextBox1.ContentsResized += (ss, ee) =>
            {
                var send = ss as RichTextBox;

                send.Height = ee.NewRectangle.Height;
            };

            richTextBox1.Rtf         = content;
            richTextBox1.BorderStyle = BorderStyle.None;

            toolTipItem1.Control = richTextBox1;

            toolTipInfo1.Items.Add(toolTipItem1);

            this.sfToolTip1.SetToolTipInfo(control, toolTipInfo1);
        }
示例#30
0
        private void ThongTinChiTietTKB(Label lbl, ToolTipController toolTipController1, string tenMH, int tietBD, int soTiet, string lop, string maGV, string tenGV, string maMH)
        {
            try
            {
                SuperToolTip superToolTip1 = new SuperToolTip();

                ToolTipTitleItem toolTipTitleItem1 = new ToolTipTitleItem();
                toolTipTitleItem1.Appearance.Image            = global::QuanLyDaoTao.Properties.Resources.non_32;
                toolTipTitleItem1.Appearance.Options.UseImage = true;
                toolTipTitleItem1.Image = global::QuanLyDaoTao.Properties.Resources.non_32;
                toolTipTitleItem1.Text  = "Thông tin chi tiết thời khóa biểu";

                ToolTipItem toolTipItem1 = new ToolTipItem();
                toolTipItem1.LeftIndent = 6;
                toolTipItem1.Text      += "Giảng viên: " + maGV + " - " + tenGV;
                toolTipItem1.Text      += "\nMôn học: " + maMH + " - " + tenMH;
                toolTipItem1.Text      += "\nTiết bắt đầu: " + (tietBD + 1).ToString();
                toolTipItem1.Text      += "\nSố tiết: " + soTiet.ToString();
                toolTipItem1.Text      += "\nLớp: " + lop;

                ToolTipTitleItem toolTipTitleItem2 = new ToolTipTitleItem();
                toolTipTitleItem2.LeftIndent = 6;
                toolTipTitleItem2.Text       = "Hệ thống quản lý đào tạo";
                superToolTip1.Items.Add(toolTipTitleItem1);
                superToolTip1.Items.Add(toolTipItem1);

                ToolTipSeparatorItem toolTipSeparatorItem1 = new ToolTipSeparatorItem();
                superToolTip1.Items.Add(toolTipSeparatorItem1);
                superToolTip1.Items.Add(toolTipTitleItem2);

                toolTipController1.SetSuperTip(lbl, superToolTip1);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        private SuperToolTip GetToolTipInfo(CalendarHitInfo chi)
        {
            SuperToolTip sTooltip1        = new SuperToolTip();
            AppointmentBaseCollection abc = schedulerStorage2.GetAppointments(chi.HitDate, chi.HitDate.AddDays(1));

            ToolTipTitleItem titleItem1 = new ToolTipTitleItem();
            //titleItem1.Text = "Date: " + date;
            // Create a tooltip item that represents the SuperTooltip's contents.
            ToolTipItem item1 = new ToolTipItem();

            item1.Image = Image.FromFile("untitled.bmp"); //SchedulerTooltip.Properties.Resources.untitled;

            // Add the tooltip items to the SuperTooltip.
            sTooltip1.Items.Add(titleItem1);
            sTooltip1.Items.Add(item1);

            foreach (Appointment apt in abc)
            {
                titleItem1.Text += apt.Subject + " ";
                item1.Text      += String.Format("({0}-{1})\n", apt.Start, apt.End);
            }

            return(sTooltip1);
        }
示例#32
0
        /// <summary>
        /// AppendBitmapToToolTip
        /// </summary>
        /// <param name="stt"></param>
        /// <param name="i"></param>
        /// <param name="bitmap"></param>
        /// <returns></returns>

        public static ToolTipItem AppendBitmapToToolTip(
            SuperToolTip stt,
            ToolTipItem i,
            Bitmap bitmap)
        {
            if (bitmap == null)
            {
                return(i);
            }

            if (i != null && i.Text != "")
            {
                stt.Items.Add(i);
            }

            i       = new ToolTipItem();
            i.Image = bitmap;
            stt.Items.Add(i);

            i = new ToolTipItem();
            i.AllowHtmlText = DefaultBoolean.True;
            i.Appearance.TextOptions.WordWrap = WordWrap.Wrap;
            return(i);
        }
示例#33
0
        /// <summary>
        /// Initializes the picture boxes with the tooltip informations.
        /// </summary>
        public void InitializePictureBoxToolTips()
        {
            ToolTipInfo toolTipInfo1 = new ToolTipInfo();

            toolTipInfo1.MaxWidth      = 1000;
            toolTipInfo1.ToolTipStyle  = ToolTipStyle.Balloon;
            toolTipInfo1.BeakBackColor = ColorTranslator.FromHtml("#3D3D3D");
            toolTipInfo1.BorderColor   = ColorTranslator.FromHtml("#1E1E1E");
            ToolTipItem toolTipItem1 = new ToolTipItem();

            toolTipItem1.Padding         = new Padding(10);
            toolTipItem1.Style.BackColor = ColorTranslator.FromHtml("#3D3D3D");

            PictureBoxControl pictureBoxControl1 = new PictureBoxControl();

            PictureBox pictureBox1 = new PictureBox();

            pictureBox1.Image             = global::GettingStarted.Properties.Resources.Batman_Begins;
            pictureBox1.Size              = new Size(214, 292);
            pictureBox1.SizeMode          = PictureBoxSizeMode.StretchImage;
            pictureBoxControl1.PictureBox = pictureBox1;

            RichTextBox richTextBox1 = new RichTextBox();

            richTextBox1.Margin            = new Padding(0);
            richTextBox1.Location          = new Point(239, 0);
            richTextBox1.Size              = new Size(315, 292);
            richTextBox1.BackColor         = ColorTranslator.FromHtml("#3D3D3D");
            richTextBox1.Rtf               = "{\\rtf1\\ansi\\ansicpg1252\\deff0{\\fonttbl{\\f0\\fnil\\fcharset0 Segoe UI;}}\r\n{\\colortbl ;\\red245\\green245\\blue245;}\r\n\\viewkind4\\uc1\\pard\\cf1\\lang1033\\b0\\fs12\\par\r\n\\b\\f0\\fs30 Batman Begins\\b0\\f0\\fs4\\par\r\n\\par\r\n\\f0\\fs18 2005 - Thriller/Action\\b0\\f0\\fs28\\par\r\n\\par\r\n\\f0\\fs18 Batman Begins is a 2005 superhero film based \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 on the DC Comics character Batman, directed\\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 by Christopher Nolanand written by Nolan.\\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 The film reboots the Batman film series and \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 telling the origin story of Bruce Wayne.\\b0\\f0\\fs28\\par\r\n\\par\r\n\\f0\\fs18\\b Initial Release :\\b0  31, May 2005 (Sweden)\\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18 Director :\\b0 Christopher Nolan\\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18 Cast : \\b0 Bruce Willis\\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18Budget : \\b0 92 million USD\\par\r\n}\r\n";
            richTextBox1.BorderStyle       = BorderStyle.None;
            pictureBoxControl1.RichTextBox = richTextBox1;

            pictureBoxControl1.BackColor = ColorTranslator.FromHtml("#3D3D3D");
            pictureBoxControl1.AddControls();
            pictureBoxControl1.Size = new Size(515, 292);
            toolTipItem1.Control    = pictureBoxControl1;

            toolTipInfo1.Items.Add(toolTipItem1);

            this.sfToolTip1.SetToolTipInfo(this.pictureBox1, toolTipInfo1);

            ToolTipInfo toolTipInfo2 = new ToolTipInfo();

            toolTipInfo2.MaxWidth      = 1000;
            toolTipInfo2.ToolTipStyle  = ToolTipStyle.Balloon;
            toolTipInfo2.BeakBackColor = ColorTranslator.FromHtml("#3D3D3D");
            toolTipInfo2.BorderColor   = ColorTranslator.FromHtml("#1E1E1E");
            ToolTipItem toolTipItem2 = new ToolTipItem();

            toolTipItem2.Padding         = new Padding(10);
            toolTipItem2.Style.BackColor = ColorTranslator.FromHtml("#3D3D3D");

            PictureBoxControl pictureBoxControl2 = new PictureBoxControl();
            PictureBox        pictureBox2        = new PictureBox();

            pictureBox2.Image             = global::GettingStarted.Properties.Resources.Jurassic_World;
            pictureBox2.Size              = new Size(214, 292);
            pictureBox2.SizeMode          = PictureBoxSizeMode.StretchImage;
            pictureBoxControl2.PictureBox = pictureBox2;

            RichTextBox richTextBox2 = new RichTextBox();

            richTextBox2.Location          = new Point(239, 0);
            richTextBox2.Size              = new Size(297, 292);
            richTextBox2.Margin            = new Padding(0);
            richTextBox2.BackColor         = ColorTranslator.FromHtml("#3D3D3D");
            richTextBox2.Rtf               = "{\\rtf1\\ansi\\ansicpg1252\\deff0{\\fonttbl{\\f0\\fnil\\fcharset0 Segoe UI;}}\r\n{\\colortbl ;\\red245\\green245\\blue245;}\r\n\\viewkind4\\uc1\\pard\\cf1\\lang1033\\b0\\fs12\\par\r\n\\b\\f0\\fs30 The Jurassic World \\b0\\f0\\fs4\\par\r\n\\par\r\n\\f0\\fs18 (Story of Jurassic World) \\b0\\f0\\fs28\\par\r\n\\par\r\n\\f0\\fs18 Jurassic World is a 2015 American science fiction\\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 adventure film and the fourth installment\\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 of the Jurassic Park series, as well as the first film\\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 in a planned Jurassic World trilogy.\\b0\\f0\\fs28\\par\r\n\\par\r\n\\f0\\fs18\\b Initial Release : \\b0 29 May 2015 (US)\\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18 Director \\b0 : Colin Trevorrow\\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18 Cast :\\b0  Dwayne Johnson\\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18 Budget :\\b0  375.7 million USD\\par\r\n}\r\n";
            richTextBox2.BorderStyle       = BorderStyle.None;
            pictureBoxControl2.RichTextBox = richTextBox2;

            pictureBoxControl2.BackColor = ColorTranslator.FromHtml("#3D3D3D");
            pictureBoxControl2.AddControls();
            pictureBoxControl2.Size = new Size(497, 292);

            toolTipItem2.Control = pictureBoxControl2;
            toolTipInfo2.Items.Add(toolTipItem2);

            this.sfToolTip1.SetToolTipInfo(this.pictureBox2, toolTipInfo2);

            ToolTipInfo toolTipInfo3 = new ToolTipInfo();

            toolTipInfo3.MaxWidth      = 1000;
            toolTipInfo3.ToolTipStyle  = ToolTipStyle.Balloon;
            toolTipInfo3.BeakBackColor = ColorTranslator.FromHtml("#3D3D3D");
            toolTipInfo3.BorderColor   = ColorTranslator.FromHtml("#1E1E1E");
            ToolTipItem toolTipItem3 = new ToolTipItem();

            toolTipItem3.Padding         = new Padding(10);
            toolTipItem3.Style.BackColor = ColorTranslator.FromHtml("#3D3D3D");

            PictureBoxControl pictureBoxControl3 = new PictureBoxControl();

            PictureBox pictureBox3 = new PictureBox();

            pictureBox3.Image             = global::GettingStarted.Properties.Resources.Minions;
            pictureBox3.Size              = new Size(214, 292);
            pictureBox3.SizeMode          = PictureBoxSizeMode.StretchImage;
            pictureBoxControl3.PictureBox = pictureBox3;

            RichTextBox richTextBox3 = new RichTextBox();

            richTextBox3.Location          = new Point(239, 0);
            richTextBox3.Size              = new Size(302, 292);
            richTextBox3.Margin            = new Padding(0);
            richTextBox3.BackColor         = ColorTranslator.FromHtml("#3D3D3D");
            richTextBox3.Rtf               = "{\\rtf1\\ansi\\ansicpg1252\\deff0{\\fonttbl{\\f0\\fnil\\fcharset0 Segoe UI;}}\r\n{\\colortbl ;\\red245\\green245\\blue245;}\r\n\\viewkind4\\uc1\\pard\\cf1\\lang1033\\b0\\fs12\\par\r\n\\b\\f0\\fs30 The Minions\\b0\\f0\\fs4\\par\r\n\\par\r\n\\f0\\fs18 Minions film(2015)\\b0\\f0\\fs28\\par\r\n\\par\r\n\\f0\\fs18 Minions is a 2015 American 3D computer\\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 comedy film,serving as a prequel to the \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 Despicable Mefranchise. It was first \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 foreshadowed in the end credits of \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 Despicable Me 2 (2013), where Kevin, Stuart\\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 and Bob, three of the Minions, are seen auditioning for the film.\\b0\\f0\\fs28\\par\r\n\\par\r\n\\f0\\fs18\\b Initial Release :\\b0  22 March 2015\\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18 Directors \\b0 : Chris Sanders, Kirk DeMicco\\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18Cast :\\b0  Nicolas Cage\\par\r\n}\r\n";
            richTextBox3.BorderStyle       = BorderStyle.None;
            pictureBoxControl3.RichTextBox = richTextBox3;

            pictureBoxControl3.BackColor = ColorTranslator.FromHtml("#3D3D3D");
            pictureBoxControl3.AddControls();
            pictureBoxControl3.Size = new Size(502, 292);

            toolTipItem3.Control = pictureBoxControl3;
            toolTipInfo3.Items.Add(toolTipItem3);

            this.sfToolTip1.SetToolTipInfo(this.pictureBox3, toolTipInfo3);

            ToolTipInfo toolTipInfo4 = new ToolTipInfo();

            toolTipInfo4.MaxWidth      = 1000;
            toolTipInfo4.ToolTipStyle  = ToolTipStyle.Balloon;
            toolTipInfo4.BeakBackColor = ColorTranslator.FromHtml("#3D3D3D");
            toolTipInfo4.BorderColor   = ColorTranslator.FromHtml("#1E1E1E");
            ToolTipItem toolTipItem4 = new ToolTipItem();

            toolTipItem4.Padding         = new Padding(10);
            toolTipItem4.Style.BackColor = ColorTranslator.FromHtml("#3D3D3D");

            PictureBoxControl pictureBoxControl4 = new PictureBoxControl();

            PictureBox pictureBox4 = new PictureBox();

            pictureBox4.Image             = global::GettingStarted.Properties.Resources.Star_Wars;
            pictureBox4.Size              = new Size(214, 292);
            pictureBox4.SizeMode          = PictureBoxSizeMode.StretchImage;
            pictureBoxControl4.PictureBox = pictureBox4;

            RichTextBox richTextBox4 = new RichTextBox();

            richTextBox4.Location          = new Point(239, 0);
            richTextBox4.Size              = new Size(314, 292);
            richTextBox4.Margin            = new Padding(0);
            richTextBox4.BackColor         = ColorTranslator.FromHtml("#3D3D3D");
            richTextBox4.Rtf               = "{\\rtf1\\ansi\\ansicpg1252\\deff0{\\fonttbl{\\f0\\fnil\\fcharset0 Segoe UI;}}\r\n{\\colortbl ;\\red245\\green245\\blue245;}\r\n\\viewkind4\\uc1\\pard\\cf1\\lang1033\\b0\\fs12\\par\r\n\\b\\f0\\fs30 The Star War\\b0\\f0\\fs4\\par\r\n\\par\r\n\\f0\\fs18 Forces of Destiny (2017–present)\\b0\\f0\\fs28\\par\r\n\\par\r\n\\f0\\fs18 The Star Wars franchise takes place in a distant\\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 unnamed fictional galaxy at an undetermined \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 point in the ancient past, where many species \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 of aliens (often humanoid) co-exist. People own \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 robotic droids, who assist them in their daily routines,\\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 and space travel is common. \\b0\\f0\\fs28\\par\r\n\\par\r\n\\f0\\fs18\\b Initial Release :\\b0  December 14, 2017\\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18 Director :\\b0  George Lucas\\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18 Cast :\\b0  James Franco\\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18Budget : \\b0 493.3 million USD\\par\r\n}\r\n";
            richTextBox4.BorderStyle       = BorderStyle.None;
            pictureBoxControl4.RichTextBox = richTextBox4;

            pictureBoxControl4.BackColor = ColorTranslator.FromHtml("#3D3D3D");
            pictureBoxControl4.AddControls();
            pictureBoxControl4.Size = new Size(514, 292);

            toolTipItem4.Control = pictureBoxControl4;
            toolTipInfo4.Items.Add(toolTipItem4);

            this.sfToolTip1.SetToolTipInfo(this.pictureBox10, toolTipInfo4);

            ToolTipInfo toolTipInfo5 = new ToolTipInfo();

            toolTipInfo5.MaxWidth      = 1000;
            toolTipInfo5.ToolTipStyle  = ToolTipStyle.Balloon;
            toolTipInfo5.BeakBackColor = ColorTranslator.FromHtml("#3D3D3D");
            toolTipInfo5.BorderColor   = ColorTranslator.FromHtml("#1E1E1E");
            ToolTipItem toolTipItem5 = new ToolTipItem();

            toolTipItem5.Padding         = new Padding(10);
            toolTipItem5.Style.BackColor = ColorTranslator.FromHtml("#3D3D3D");

            PictureBoxControl pictureBoxControl5 = new PictureBoxControl();

            PictureBox pictureBox5 = new PictureBox();

            pictureBox5.Image             = global::GettingStarted.Properties.Resources.Ted;
            pictureBox5.Size              = new Size(214, 292);
            pictureBox5.SizeMode          = PictureBoxSizeMode.StretchImage;
            pictureBoxControl5.PictureBox = pictureBox5;

            RichTextBox richTextBox5 = new RichTextBox();

            richTextBox5.Location          = new Point(239, 0);
            richTextBox5.Size              = new Size(310, 292);
            richTextBox5.Margin            = new Padding(0);
            richTextBox5.BackColor         = ColorTranslator.FromHtml("#3D3D3D");
            richTextBox5.Rtf               = "{\\rtf1\\ansi\\ansicpg1252\\deff0{\\fonttbl{\\f0\\fnil\\fcharset0 Segoe UI;}}\r\n{\\colortbl ;\\red245\\green245\\blue245;}\r\n\\viewkind4\\uc1\\pard\\cf1\\lang1033\\b0\\fs12\\par\r\n\\b\\f0\\fs30 Teddy Bear\\b0\\f0\\fs28\\par\r\n\\par\r\n\\f0\\fs18 A teddy bear is a soft toy in the form of a bear.\\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 Developed apparently simultaneously by toymaker \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 Morris Michtom in the U.S in the early years of the \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 20th century.Teddy bears are among the most \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 popular gifts for children and are often given \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 to adults to signify love, congratulations or etc.. \\b0\\f0\\fs28\\par\r\n\\par\r\n\\f0\\fs18\\b \\b0\\f0\\fs28\\par\r\n\\par\r\n\\f0\\fs18\\b Introduced :\\b0  November 1902 \\par\r\n}\r\n";
            richTextBox5.BorderStyle       = BorderStyle.None;
            pictureBoxControl5.RichTextBox = richTextBox5;

            pictureBoxControl5.BackColor = ColorTranslator.FromHtml("#3D3D3D");
            pictureBoxControl5.AddControls();
            pictureBoxControl5.Size = new Size(510, 292);

            toolTipItem5.Control = pictureBoxControl5;
            toolTipInfo5.Items.Add(toolTipItem5);

            this.sfToolTip1.SetToolTipInfo(this.pictureBox4, toolTipInfo5);

            ToolTipInfo toolTipInfo6 = new ToolTipInfo();

            toolTipInfo6.MaxWidth      = 1000;
            toolTipInfo6.ToolTipStyle  = ToolTipStyle.Balloon;
            toolTipInfo6.BeakBackColor = ColorTranslator.FromHtml("#3D3D3D");
            toolTipInfo6.BorderColor   = ColorTranslator.FromHtml("#1E1E1E");
            ToolTipItem toolTipItem6 = new ToolTipItem();

            toolTipItem6.Padding         = new Padding(10);
            toolTipItem6.Style.BackColor = ColorTranslator.FromHtml("#3D3D3D");

            PictureBoxControl pictureBoxControl6 = new PictureBoxControl();

            PictureBox pictureBox6 = new PictureBox();

            pictureBox6.Image             = global::GettingStarted.Properties.Resources.Troy;
            pictureBox6.Size              = new Size(214, 292);
            pictureBox6.SizeMode          = PictureBoxSizeMode.StretchImage;
            pictureBoxControl6.PictureBox = pictureBox6;

            RichTextBox richTextBox6 = new RichTextBox();

            richTextBox6.Location          = new Point(239, 0);
            richTextBox6.Size              = new Size(280, 292);
            richTextBox6.Margin            = new Padding(0);
            richTextBox6.BackColor         = ColorTranslator.FromHtml("#3D3D3D");
            richTextBox6.Rtf               = "{\\rtf1\\ansi\\ansicpg1252\\deff0{\\fonttbl{\\f0\\fnil\\fcharset0 Segoe UI;}}\r\n{\\colortbl ;\\red245\\green245\\blue245;}\r\n\\viewkind4\\uc1\\pard\\cf1\\lang1033\\b0\\fs12\\par\r\n\\b\\f0\\fs30 Troy\\b0\\f0\\fs4\\par\r\n\\par\r\n\\f0\\fs18 2004 - War Film\\b0\\f0\\fs28\\par\r\n\\par\r\n\\f0\\fs18 Troy is a 2004 epic period war film written by \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 David Benioff, directed by Wolfgang Petersen \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 and co-produced by units in Malta, Mexico \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 and the U.K. Shepperton Studios. The film \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 features an ensemble cast led by Brad Pitt,\\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 Eric Bana, and Orlando Bloom.\\b0\\f0\\fs28\\par\r\n\\par\r\n\\f0\\fs18\\b Initial Release :\\b0  May 14, 2004 (US)\\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18 Director : \\b0 Wolfgang Petersen\\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18 Cast : \\b0 Tom Cruise\\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18Budget : \\b0 120 million USD\\par\r\n}\r\n";
            richTextBox6.BorderStyle       = BorderStyle.None;
            pictureBoxControl6.RichTextBox = richTextBox6;

            pictureBoxControl6.BackColor = ColorTranslator.FromHtml("#3D3D3D");
            pictureBoxControl6.AddControls();
            pictureBoxControl6.Size = new Size(480, 292);

            toolTipItem6.Control = pictureBoxControl6;
            toolTipInfo6.Items.Add(toolTipItem6);

            this.sfToolTip1.SetToolTipInfo(this.pictureBox6, toolTipInfo6);

            ToolTipInfo toolTipInfo7 = new ToolTipInfo();

            toolTipInfo7.MaxWidth      = 1000;
            toolTipInfo7.ToolTipStyle  = ToolTipStyle.Balloon;
            toolTipInfo7.BeakBackColor = ColorTranslator.FromHtml("#3D3D3D");
            toolTipInfo7.BorderColor   = ColorTranslator.FromHtml("#1E1E1E");
            ToolTipItem toolTipItem7 = new ToolTipItem();

            toolTipItem7.Padding         = new Padding(10);
            toolTipItem7.Style.BackColor = ColorTranslator.FromHtml("#3D3D3D");

            PictureBoxControl pictureBoxControl7 = new PictureBoxControl();

            PictureBox pictureBox7 = new PictureBox();

            pictureBox7.Image             = global::GettingStarted.Properties.Resources.V_for_Vendetta;
            pictureBox7.Size              = new Size(214, 292);
            pictureBox7.SizeMode          = PictureBoxSizeMode.StretchImage;
            pictureBoxControl7.PictureBox = pictureBox7;

            RichTextBox richTextBox7 = new RichTextBox();

            richTextBox7.Location          = new Point(239, 0);
            richTextBox7.Size              = new Size(305, 292);
            richTextBox7.Margin            = new Padding(0);
            richTextBox7.BackColor         = ColorTranslator.FromHtml("#3D3D3D");
            richTextBox7.Rtf               = "{\\rtf1\\ansi\\ansicpg1252\\deff0{\\fonttbl{\\f0\\fnil\\fcharset0 Segoe UI;}}\r\n{\\colortbl ;\\red245\\green245\\blue245;}\r\n\\viewkind4\\uc1\\pard\\cf1\\lang1033\\b0\\fs12\\par\r\n\\b\\f0\\fs30 V for Vendetta \\b0\\f0\\fs4\\par\r\n\\par\r\n\\f0\\fs18 Political thriller film\\b0\\f0\\fs28\\par\r\n\\par\r\n\\f0\\fs18 V for Vendetta is a 2005 dystopian political thriller \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 film directed by James McTeigue and written by\\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 the wachowski brothers, based on the 1988 \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 DC/Vertigo Comics limited series of the same \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 name by Alan Moore and David Lloyd.\\b0\\f0\\fs28\\par\r\n\\par\r\n\\f0\\fs18\\b Initial Release \\b0 : December 11,2005 \\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18 Director \\b0 : James McTeigue\\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18 Cast \\b0 : Robert Downer, Jr\\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18Budget : \\b0 1.215 billion USD\\par\r\n}\r\n";
            richTextBox7.BorderStyle       = BorderStyle.None;
            pictureBoxControl7.RichTextBox = richTextBox7;

            pictureBoxControl7.BackColor = ColorTranslator.FromHtml("#3D3D3D");
            pictureBoxControl7.AddControls();
            pictureBoxControl7.Size = new Size(505, 292);

            toolTipItem7.Control = pictureBoxControl7;
            toolTipInfo7.Items.Add(toolTipItem7);

            this.sfToolTip1.SetToolTipInfo(this.pictureBox7, toolTipInfo7);

            ToolTipInfo toolTipInfo8 = new ToolTipInfo();

            toolTipInfo8.MaxWidth      = 1000;
            toolTipInfo8.ToolTipStyle  = ToolTipStyle.Balloon;
            toolTipInfo8.BeakBackColor = ColorTranslator.FromHtml("#3D3D3D");
            toolTipInfo8.BorderColor   = ColorTranslator.FromHtml("#1E1E1E");
            ToolTipItem toolTipItem8 = new ToolTipItem();

            toolTipItem8.Padding         = new Padding(10);
            toolTipItem8.Style.BackColor = ColorTranslator.FromHtml("#3D3D3D");

            PictureBoxControl pictureBoxControl8 = new PictureBoxControl();

            PictureBox pictureBox8 = new PictureBox();

            pictureBox8.Image             = global::GettingStarted.Properties.Resources.Wall_E;
            pictureBox8.Size              = new Size(214, 292);
            pictureBox8.SizeMode          = PictureBoxSizeMode.StretchImage;
            pictureBoxControl8.PictureBox = pictureBox8;

            RichTextBox richTextBox8 = new RichTextBox();

            richTextBox8.Location          = new Point(239, 0);
            richTextBox8.Size              = new Size(305, 292);
            richTextBox8.Margin            = new Padding(0);
            richTextBox8.BackColor         = ColorTranslator.FromHtml("#3D3D3D");
            richTextBox8.Rtf               = "{\\rtf1\\ansi\\ansicpg1252\\deff0{\\fonttbl{\\f0\\fnil\\fcharset0 Segoe UI;}}\r\n{\\colortbl ;\\red245\\green245\\blue245;}\r\n\\viewkind4\\uc1\\pard\\cf1\\lang1033\\b0\\fs12\\par\r\n\\b\\f0\\fs30 WALL-E\\b0\\f0\\fs4\\par\r\n\\par\r\n\\f0\\fs18 computer-animated science fiction film\\b0\\f0\\fs28\\par\r\n\\par\r\n\\f0\\fs18 WALL-E (stylized with an interpunct as WALL·E)\\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 is a 2008 American computer-animated science \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 fiction film produced by Pixar Animation Studios.\\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 It was directed and co-written by Andrew Stanton,\\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 produced by Jim Morris, and co-written by \\b0\\f0\\fs3\\par\r\n\\par\r\n\\f0\\fs18 Jim Reardon. \\b0\\f0\\fs28\\par\r\n\\par\r\n\\f0\\fs18\\b Initial Release : \\b0 June 27, 2008(US)\\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18 Director : \\b0 Andrew Stanton\\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18 Cast :\\b0  Jason Bateman\\b0\\f0\\fs6\\par\r\n\\par\r\n\\b\\f0\\fs18Budget : \\b0 174 million USD\\par\r\n}\r\n";
            richTextBox8.BorderStyle       = BorderStyle.None;
            pictureBoxControl8.RichTextBox = richTextBox8;

            pictureBoxControl8.BackColor = ColorTranslator.FromHtml("#3D3D3D");
            pictureBoxControl8.AddControls();
            pictureBoxControl8.Size = new Size(505, 292);

            toolTipItem8.Control = pictureBoxControl8;
            toolTipInfo8.Items.Add(toolTipItem8);

            this.sfToolTip1.SetToolTipInfo(this.pictureBox5, toolTipInfo8);

            this.toolTipStyleComboBox.Text    = "Balloon";
            this.toolTipLocationComboBox.Text = "TopCenter";
            this.sfToolTip1.InitialDelay      = 50;
            this.initialDelayUpDown.Value     = this.sfToolTip1.InitialDelay;
            this.autoPopupDelayUpDown.Value   = this.sfToolTip1.AutoPopDelay;
            pictureBox3Info.ToolTipLocation   = ToolTipLocation.BottomCenter;
            sfToolTip1.Show(pictureBox3Info, this.PointToScreen(new Point(panel1.Location.X + panel1.Width / 2, panel1.Location.Y + 150)), 5000);
        }
示例#34
0
 protected override void InitToolTipItem(ToolTipItem item)
 {
     if (CurrentContact == null) return;
     if (CurrentContact.Photo != null)
         item.Image = ImageCreator.CreateImage(CurrentContact.Photo, MaxPhotoWidth, MaxPhotoHeight);
     item.Text = CurrentContact.GetContactInfoHtml();
 }
示例#35
0
 protected abstract void InitToolTipItem(ToolTipItem item);
示例#36
0
 public void ShowHint(object editObject, Point location)
 {
     if (object.Equals(editObject, this.editObject)) return;
     this.editObject = editObject;
     ToolTipControlInfo info = new ToolTipControlInfo();
     ToolTipItem item = new ToolTipItem();
     InitToolTipItem(item);
     item.ImageToTextDistance = 10;
     info.Object = DateTime.Now.Ticks;
     info.SuperTip = new SuperToolTip();
     info.SuperTip.Items.Add(item);
     info.ToolTipPosition = this.parent.PointToScreen(location);
     controller.ShowHint(info);
 }
示例#37
0
 protected virtual void InitToolTipItem(ToolTipItem item)
 {
 }
示例#38
0
        /// <summary>
        /// Get season super tip.
        /// </summary>
        /// <param name="season">
        /// The season.
        /// </param>
        /// <returns>
        /// The season super tip.
        /// </returns>
        public static SuperToolTip GetSeasonSuperTip(Season season)
        {
            if (season == null)
            {
                return new SuperToolTip();
            }

            var superTip = new SuperToolTip { AllowHtmlText = DefaultBoolean.True };

            superTip.Items.AddTitle(string.Format("Season {0}", season.SeasonNumber));

            foreach (Episode episode in season.Episodes)
            {
                var tip = new ToolTipItem();

                string found = File.Exists(episode.FilePath.FileNameAndPath)
                                   ? "<color=206,244,208>File Exists</color>"
                                   : "<b><color=244,206,206>File Does Not Exist</color></b>";

                tip.Text = string.Format("<b>{0}</b>:{1} - {2}", episode.EpisodeNumber, episode.EpisodeName, found);

                superTip.Items.Add(tip);
            }

            return superTip;
        }
示例#39
0
 protected virtual void InitToolTipItem(ToolTipItem item)
 {
 }
 protected abstract void InitToolTipItem(ToolTipItem item);
示例#41
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(xucBaseAddH));
            SuperToolTip             tip     = new SuperToolTip();
            ToolTipItem  item  = new ToolTipItem();
            SuperToolTip tip2  = new SuperToolTip();
            ToolTipItem  item2 = new ToolTipItem();

            this.imageCollection2 = new DevExpress.Utils.ImageCollection(this.components);
            this.Err        = new DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider(this.components);
            this.btnSave    = new SimpleButton();
            this.btnCancel  = new SimpleButton();
            this.btnSaveNew = new SimpleButton();
            this.imageCollection2.BeginInit();
            ((ISupportInitialize)this.Err).BeginInit();
            base.SuspendLayout();
            this.imageCollection2.ImageStream = (ImageCollectionStreamer)manager.GetObject("imageCollection2.ImageStream");
            this.Err.ContainerControl         = this;
            this.btnSave.Anchor     = AnchorStyles.Right | AnchorStyles.Bottom;
            this.btnSave.ImageIndex = 0;
            this.btnSave.ImageList  = this.imageCollection2;
            this.btnSave.Location   = new Point(0x167, 0x1b6);
            this.btnSave.Name       = "btnSave";
            this.btnSave.Size       = new Size(0x5c, 0x1b);
            item.Text = "Ctrl+S\r\n";
            tip.Items.Add(item);
            this.btnSave.SuperTip      = tip;
            this.btnSave.TabIndex      = 0x23;
            this.btnSave.Text          = "Lưu && Đ\x00f3ng";
            this.btnSave.Click        += new EventHandler(this.btnSave_Click);
            this.btnSave.KeyDown      += new KeyEventHandler(this.btnSave_KeyDown);
            this.btnCancel.Anchor      = AnchorStyles.Right | AnchorStyles.Bottom;
            this.btnCancel.ImageIndex  = 6;
            this.btnCancel.ImageList   = this.imageCollection2;
            this.btnCancel.Location    = new Point(0x22e, 0x1b6);
            this.btnCancel.Name        = "btnCancel";
            this.btnCancel.Size        = new Size(0x5f, 0x1b);
            this.btnCancel.TabIndex    = 0x24;
            this.btnCancel.Text        = "Đ\x00f3ng";
            this.btnCancel.Click      += new EventHandler(this.btnCancel_Click);
            this.btnCancel.KeyDown    += new KeyEventHandler(this.btnCancel_KeyDown);
            this.btnSaveNew.Anchor     = AnchorStyles.Right | AnchorStyles.Bottom;
            this.btnSaveNew.ImageIndex = 0;
            this.btnSaveNew.ImageList  = this.imageCollection2;
            this.btnSaveNew.Location   = new Point(0x1c9, 0x1b6);
            this.btnSaveNew.Name       = "btnSaveNew";
            this.btnSaveNew.Size       = new Size(0x5f, 0x1b);
            item2.Text = "Ctrl+Shift +S";
            tip2.Items.Add(item2);
            this.btnSaveNew.SuperTip = tip2;
            this.btnSaveNew.TabIndex = 0x25;
            this.btnSaveNew.Text     = "Lưu && Th\x00eam";
            this.btnSaveNew.Click   += new EventHandler(this.btnSaveNew_Click);
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = AutoScaleMode.Font;
            base.Controls.Add(this.btnSaveNew);
            base.Controls.Add(this.btnSave);
            base.Controls.Add(this.btnCancel);
            base.Name = "xucBaseAddH";
            base.Size = new Size(0x2a9, 0x1db);
            this.imageCollection2.EndInit();
            ((ISupportInitialize)this.Err).EndInit();
            base.ResumeLayout(false);
        }
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(XucBaseReportControls));
            SuperToolTip             tip     = new SuperToolTip();
            ToolTipItem      item            = new ToolTipItem();
            SuperToolTip     tip2            = new SuperToolTip();
            ToolTipTitleItem item2           = new ToolTipTitleItem();
            ToolTipItem      item3           = new ToolTipItem();

            this.imageCollection2 = new DevExpress.Utils.ImageCollection(this.components);
            this.plButton         = new PanelControl();
            this.plReportControl  = new PanelControl();
            this.printControl     = new PrintControl();
            this.printingSystem   = new PrintingSystem(this.components);
            this.plTop            = new PanelControl();
            this.bm   = new BarManager(this.components);
            this.bar1 = new Bar();
            this.barDockControlTop    = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft   = new BarDockControl();
            this.barDockControlRight  = new BarDockControl();
            this.btnPreviewForm       = new BarButtonItem();
            this.bbiDesign            = new BarButtonItem();
            this.ac = new AlertControl(this.components);
            this.imageCollection2.BeginInit();
            this.plButton.BeginInit();
            this.plReportControl.BeginInit();
            this.plReportControl.SuspendLayout();
            ((ISupportInitialize)this.printingSystem).BeginInit();
            this.plTop.BeginInit();
            this.bm.BeginInit();
            base.SuspendLayout();
            this.imageCollection2.ImageStream = (ImageCollectionStreamer)manager.GetObject("imageCollection2.ImageStream");
            this.plButton.Dock     = DockStyle.Bottom;
            this.plButton.Location = new Point(0, 0x1fc);
            this.plButton.Name     = "plButton";
            this.plButton.Size     = new Size(0x39d, 0x1c);
            this.plButton.TabIndex = 80;
            this.plButton.Visible  = false;
            this.plReportControl.Controls.Add(this.printControl);
            this.plReportControl.Dock              = DockStyle.Fill;
            this.plReportControl.Location          = new Point(0, 60);
            this.plReportControl.Name              = "plReportControl";
            this.plReportControl.Size              = new Size(0x39d, 0x1c0);
            this.plReportControl.TabIndex          = 0x51;
            this.printControl.BackColor            = Color.Empty;
            this.printControl.Dock                 = DockStyle.Fill;
            this.printControl.ForeColor            = Color.Empty;
            this.printControl.IsMetric             = false;
            this.printControl.Location             = new Point(2, 2);
            this.printControl.Name                 = "printControl";
            this.printControl.PageBorderVisibility = PageBorderVisibility.AllWithoutSelection;
            this.printControl.PrintingSystem       = this.printingSystem;
            this.printControl.Size                 = new Size(0x399, 0x1bc);
            this.printControl.TabIndex             = 2;
            this.printControl.TabStop              = false;
            this.printControl.TooltipFont          = new Font("Tahoma", 8.25f);
            this.plTop.Dock            = DockStyle.Top;
            this.plTop.Location        = new Point(0, 0x18);
            this.plTop.Name            = "plTop";
            this.plTop.Size            = new Size(0x39d, 0x24);
            this.plTop.TabIndex        = 0x4f;
            this.plTop.Visible         = false;
            this.bm.AutoSaveInRegistry = true;
            this.bm.Bars.AddRange(new Bar[] { this.bar1 });
            this.bm.DockControls.Add(this.barDockControlTop);
            this.bm.DockControls.Add(this.barDockControlBottom);
            this.bm.DockControls.Add(this.barDockControlLeft);
            this.bm.DockControls.Add(this.barDockControlRight);
            this.bm.Form   = this;
            this.bm.Images = this.imageCollection2;
            this.bm.Items.AddRange(new BarItem[] { this.btnPreviewForm, this.bbiDesign });
            this.bm.LargeImages         = this.imageCollection2;
            this.bm.MaxItemId           = 2;
            this.bm.RegistryPath        = @"HKEY_CURRENT_USER\Software\Perfect Software\Perfect Stock Management";
            this.bar1.BarName           = "Custom 2";
            this.bar1.DockCol           = 0;
            this.bar1.DockRow           = 0;
            this.bar1.DockStyle         = BarDockStyle.Top;
            this.bar1.Text              = "Custom 2";
            this.bar1.Visible           = false;
            this.btnPreviewForm.Caption = "T\x00e1ch Ra";
            this.btnPreviewForm.Glyph   = (Image)manager.GetObject("btnPreviewForm.Glyph");
            this.btnPreviewForm.Id      = 0;
            this.btnPreviewForm.Name    = "btnPreviewForm";
            item.Text = "Chức năng n\x00e0y gi\x00fap bạn t\x00e1ch b\x00e1o c\x00e1o đang xem ra một cửa sổ kh\x00e1c.";
            tip.Items.Add(item);
            this.btnPreviewForm.SuperTip   = tip;
            this.btnPreviewForm.ItemClick += new ItemClickEventHandler(this.BtnPreviewFormItemClick);
            this.bbiDesign.Caption         = "Thiết Kế";
            this.bbiDesign.Id              = 1;
            this.bbiDesign.ImageIndex      = 5;
            this.bbiDesign.Name            = "bbiDesign";
            item2.Text       = "Thiết Kế";
            item3.LeftIndent = 6;
            item3.Text       = "Đ\x00e2y l\x00e0 chức năng gi\x00fap ch\x00fang ta tự thiết kế lại trang b\x00e1o c\x00e1o hiện tại, bạn c\x00f3 thể lưu lại v\x00e0 bạn c\x00f3 thể sử dụng b\x00e1o c\x00e1o cho c\x00f4ng việc sau n\x00e0y. ";
            tip2.Items.Add(item2);
            tip2.Items.Add(item3);
            this.bbiDesign.SuperTip                = tip2;
            this.bbiDesign.ItemClick              += new ItemClickEventHandler(this.BbiDesignItemClick);
            this.ac.AllowHtmlText                  = true;
            this.ac.AppearanceText.Font            = new Font("Tahoma", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.ac.AppearanceText.Options.UseFont = true;
            this.ac.AutoFormDelay                  = 0x1388;
            this.ac.FormLocation     = AlertFormLocation.TopLeft;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = AutoScaleMode.Font;
            base.Controls.Add(this.plReportControl);
            base.Controls.Add(this.plButton);
            base.Controls.Add(this.plTop);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.Name = "XucBaseReportControls";
            base.Size = new Size(0x39d, 0x218);
            this.imageCollection2.EndInit();
            this.plButton.EndInit();
            this.plReportControl.EndInit();
            this.plReportControl.ResumeLayout(false);
            ((ISupportInitialize)this.printingSystem).EndInit();
            this.plTop.EndInit();
            this.bm.EndInit();
            base.ResumeLayout(false);
        }
示例#43
0
 protected override void InitToolTipItem(ToolTipItem item) {
     var customer = ((Customer)EditObject);
     var photo = customer.Photo;
     if (photo != null)
         item.Image = photo.CreateImage(MaxPhotoWidth, MaxPhotoHeight);
     item.Text = customer.GetCustomerInfoHtml();
 }