private void Button4_MouseHover(object sender, EventArgs e)
 {
     ToolTip1.IsBalloon    = true;
     ToolTip1.UseAnimation = true;
     ToolTip1.ToolTipTitle = "";
     ToolTip1.SetToolTip(Button4, "Retrieve book info from Issued books List");
 }
Example #2
0
        /// <summary>
        /// Прорисовка инвентаря
        /// </summary>
        public void UpdateInventory(List<IItem> items)
        {
            var itemsCount = items.Count;

            MaxPages = itemsCount % ItemsPerPage == 0 & itemsCount != 0
                ? itemsCount / ItemsPerPage
                : itemsCount / ItemsPerPage + 1;
            if (MaxPages < CurrentPage)
                CurrentPage = MaxPages;
            _firstItemIndex = ItemsPerPage * (CurrentPage - 1);

            var itemsOnPage = items.Count <= ItemsPerPage * CurrentPage
                ? items.Count - _firstItemIndex
                : ItemsPerPage;

            PictureBox[] pb = new PictureBox[itemsOnPage];
            InventoryPanel.Controls.Clear();

            for (int i = 0; i < pb.Length; i++)
            {
                pb[i] = new PictureBox
                {
                    BorderStyle = BorderStyle.FixedSingle,
                    Image = items[i + _firstItemIndex].Image,
                    Size = new Size(45, 45)
                };
                InventoryPanel.Controls.Add(pb[i]);
                ToolTip1.SetToolTip(InventoryPanel.Controls[i], items[i + _firstItemIndex].ToString());
                InventoryPanel.Controls[i].MouseDown += InventoryPanelControls_MouseDown;
            }
        }
Example #3
0
 private void Button1_MouseHover(object sender, EventArgs e)
 {
     ToolTip1.IsBalloon    = true;
     ToolTip1.UseAnimation = true;
     ToolTip1.ToolTipTitle = "";
     ToolTip1.SetToolTip(Button2, "Retrieve Staff's Info from Employee List");
 }
Example #4
0
        public void ShowDataBaseStatus(Lawyer.Common.CS.ConfigFile.Config c)
        {
            try
            {
                ToolTip1.SetToolTip(btnRestore, "نصب نشده");

                btnRestore.Image = global::WFControls.CS.Properties.Resources.noInstalData24;

                if (IsCorrectConnection(c))
                {
                    btnConfig.Image = global::WFControls.CS.Properties.Resources.Connect;

                    CreateDataBase(c);

                    if (IsInstallDataBase(c))
                    {
                        if (IsAttachDataBase(c))
                        {
                            ToolTip1.SetToolTip(btnRestore, "نصب شده");

                            btnRestore.Image = global::WFControls.CS.Properties.Resources.InstallData24;
                        }
                    }
                }
            }
            catch (Exception)
            {
            }
        }
 /// <summary>
 /// 加载鼠标到关联控件显示信息
 /// </summary>
 private void LoadToolTip()
 {
     //绑定控件和显示显示信息
     ToolTip1.SetToolTip(picDelete, "删除");
     ToolTip1.SetToolTip(picFend, "查询");
     ToolTip1.SetToolTip(picUpdate, "修改");
 }
 private void Button3_MouseHover(object sender, EventArgs e)
 {
     ToolTip1.IsBalloon    = true;
     ToolTip1.UseAnimation = true;
     ToolTip1.ToolTipTitle = "";
     ToolTip1.SetToolTip(Button3, "Retrieve Staff info from list of Staffs");
 }
 private void Button5_MouseHover(object sender, EventArgs e)
 {
     ToolTip1.IsBalloon    = true;
     ToolTip1.UseAnimation = true;
     ToolTip1.ToolTipTitle = "";
     ToolTip1.SetToolTip(Button5, "Retrieve book info and staff info from list of books reservation");
 }
 private void Button2_MouseHover(object sender, EventArgs e)
 {
     ToolTip1.IsBalloon    = true;
     ToolTip1.UseAnimation = true;
     ToolTip1.ToolTipTitle = "";
     ToolTip1.SetToolTip(Button2, "Retrieve Student info from Student List");
 }
Example #9
0
 private void InitTooltip()
 {
     ToolTip1.SetToolTip(LinkLabelTweet, _home);
     ToolTip1.SetToolTip(LinkLabelFollowing, _following);
     ToolTip1.SetToolTip(LinkLabelFollowers, _followers);
     ToolTip1.SetToolTip(LinkLabelFav, _favorites);
 }
Example #10
0
 private void TextLink_MouseHover(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(TipInfoText))
     {
         return;
     }
     ToolTip1.SetToolTip(this.textLink, TipInfoText);
 }
        private void PreprocessorText_TextChanged(object sender, EventArgs e)
        {
            TextBox t = sender as TextBox;

            ml_config.imports.PreprocessorDefinitions = t.Text;
            string tooltip_text = ml_config.imports.ReplaceMacro(this.PreprocessorText.Text);

            ToolTip1.SetToolTip(PreprocessorText, tooltip_text);
        }
Example #12
0
 private void ToolTip_Setup()
 {
     ToolTip1.SetToolTip(cboMode, "Set how the text will be animated on the notes.");
     ToolTip1.SetToolTip(cboSpeed, "Set how fast text effects happen during animations.");
     ToolTip1.SetToolTip(cboHoldTime, "How long to show the text after animations are done.");
     ToolTip1.SetToolTip(cboAlign, "Set the text alignment. This is not used for some animations.");
     ToolTip1.SetToolTip(tbDelim, "Some animations combine all text. This string will be placed between each line of text.");
     ToolTip1.SetToolTip(tbXoff, "Modify the position of text so it can align with images being used.");
     ToolTip1.SetToolTip(tbYoff, "Modify the position of text so it can align with images being used.");
 }
Example #13
0
        private void AddProduct(string strName, string strDesc, bool classic)
        {
            ArrayList chk = _chkProds;
            ArrayList txt = _txtQtys;

            if (classic)
            {
                chk = _chkProdsClassic;
                txt = _txtQtysClassic;
            }

            CheckBox cb = (CheckBox)chk[0];
            TextBox  tb;

            if (cb.Text.Equals("Start"))
            {
                cb.Text = strName;
                ToolTip1.SetToolTip(cb, strDesc);
            }
            else
            {
                cb = new CheckBox();
                tb = new TextBox();

                this.fmeProds.Controls.Add(cb);
                this.fmeProds.Controls.Add(tb);

                CheckBox cb1 = (CheckBox)chk[chk.Count - 1];
                TextBox  tb1 = (TextBox)txt[txt.Count - 1];

                cb.Text = strName;
                ToolTip1.SetToolTip(cb, strDesc);

                cb.Location = new Point(cb1.Left, cb1.Top + HORZ_INC);
                cb.Size     = new Size(cb1.Width, cb1.Height);
                cb.Visible  = true;
                cb.Font     = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));

                tb.Location = new Point(tb1.Left, tb1.Top + HORZ_INC);
                tb.Size     = new Size(tb1.Width, tb1.Height);
                tb.Visible  = true;
                tb.Font     = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));

                if (!classic)
                {
                    this.fmeProds.Height += HORZ_INC;
                    //this.txtOutput.Height += HORZ_INC;
                    this.Height += HORZ_INC;
                }

                chk.Add(cb);
                txt.Add(tb);
            }
        }
Example #14
0
        private void SetLinklabelWeb(string data)
        {
            string webtext = _owner.TwitterInstance.PreProcessUrl("<a href=\"" + data + "\">Dummy</a>");

            webtext = ShortUrl.Resolve(webtext, false);
            string jumpto = Regex.Match(webtext, "<a href=\"(?<url>.*?)\"").Groups["url"].Value;

            ToolTip1.SetToolTip(LinkLabelWeb, jumpto);
            LinkLabelWeb.Tag  = jumpto;
            LinkLabelWeb.Text = data;
        }
        private void IncludePathText_TextChanged(object sender, EventArgs e)
        {
            TextBox t = sender as TextBox;

            ml_config.imports.IncludePath = t.Text;
            string      tooltip_text;
            CheckResult chk = ml_config.imports.CheckIncludePath(out tooltip_text);

            SetCheckInfo(IncludePathCheck, chk, tooltip_text);
            tooltip_text = ml_config.imports.ReplaceMacro(this.IncludePathText.Text);
            ToolTip1.SetToolTip(IncludePathText, tooltip_text);
        }
        private void DependsText_TextChanged(object sender, EventArgs e)
        {
            TextBox t = sender as TextBox;

            ml_config.imports.Dependencies = t.Text;
            string      tooltip_text;
            CheckResult chk = ml_config.imports.CheckDependencies(out tooltip_text);

            SetCheckInfo(DependsCheck, chk, tooltip_text);
            tooltip_text = ml_config.imports.ReplaceMacro(this.DependsText.Text);
            ToolTip1.SetToolTip(DependsText, tooltip_text);
        }
Example #17
0
        private void BackRestore_Load(object sender, EventArgs e)
        {
            ToolTip1.SetToolTip(btnStart, "Start");

            ToolTip1.SetToolTip(btnCancel, "Cancel");

            ToolTip1.SetToolTip(btnBrows, "مشخص کردن فایل");

            ////////ToolTip1.SetToolTip(btnClose, "نمایش جزئیات");

            //pnlDetail.Visible = false;

            lblMessage.Text = string.Empty;
        }
Example #18
0
 private void Form1_Load(object sender, EventArgs e)
 {
     BasePath = Properties.Settings.Default.bs;
     if (BasePath == "not set")
     {
         MessageBox.Show("Select a folder to begin sorting");
         choose_new_basepath();
     }
     else
     {
         SetBasePath(BasePath);
     }
     ToolTip1.SetToolTip(CheckBox1, "Enable image moving by clicking on the image to the selected category");
 }
Example #19
0
        private void ImageIconControl_Updated(object sender, EventArgs e)
        {
            ItemControl cnt  = (ItemControl)sender;
            var         item = cnt.Item;

            if (item == null)
            {
                return;
            }

            this.InvokeSafe(new System.Action(() =>
            {
                ToolTip1.SetToolTip(cnt, (cnt.Item.State == StateManager.eState.Err ? cnt.Item.Message : cnt.Item.ToString()));
            }));
        }
Example #20
0
        public PictureBox AddActionImage(PictureBox p, string tooltip)
        {
            p.Size      = new Size(16, 16);
            p.BackColor = Color.Transparent;

            ToolTip1.SetToolTip(p, tooltip);

            action_images.Add(p);
            Controls.Add(p);

            p.MouseEnter += new EventHandler(ContactItem_MouseEnter);
            p.MouseLeave += new EventHandler(ContactItem_MouseLeave);

            return(p);
        }
 private void LockUnlockUserField()
 {
     if (!string.IsNullOrEmpty(MunisUser.Number))
     {
         CurrentUserTextBox.BackColor = Colors.EditColor;
         CurrentUserTextBox.ReadOnly  = true;
         ToolTip1.SetToolTip(CurrentUserTextBox, "Munis Linked Employee - Double-Click to change.");
     }
     else
     {
         CurrentUserTextBox.BackColor = Color.Empty;
         CurrentUserTextBox.ReadOnly  = false;
         ToolTip1.SetToolTip(CurrentUserTextBox, "");
     }
 }
Example #22
0
 public void UpdateSellingItems(List<IItem> items)
 {
     _sellingItems = items;
     SellingItemsPanel.Controls.Clear();
     for (int i = 0; i < items.Count; i++)
     {
         var pictureBox = new PictureBox
         {
             BorderStyle = BorderStyle.FixedSingle,
             Image = items[i].Image,
             Size = new Size(45, 45)
         };
         SellingItemsPanel.Controls.Add(pictureBox);
         ToolTip1.SetToolTip(SellingItemsPanel.Controls[i], items[i].ToString());
         SellingItemsPanel.Controls[i].MouseDown += SellingItemsPanelControls_MouseDown;
     }
 }
        private void SetToolTip(string toReceive)
        {
            ToolTip1.SetToolTip(ComboBoxTasks, $"Выбор команды для редактирования и отправки на {toReceive}");
            ToolTip1.SetToolTip(TextBoxURLSend, $"Сетевой адрес контейнера команды посылаемой на {toReceive}");
            ToolTip1.SetToolTip(TextBoxURLReceive, $"Сетевой адрес контейнера команды пришедшей от {toReceive}");

            ToolTip1.SetToolTip(TextBoxPipeServerStatus, $"Статус контейнера для команды посылаемой на {toReceive}");
            ToolTip1.SetToolTip(SendTextBox, $"Текст команды посылаемой на {toReceive} в формате XML");
            ToolTip1.SetToolTip(ListTaskSend, $"Список всех команд посылаемых на {toReceive} в текущем сеансе работы");
            ToolTip1.SetToolTip(DataGridSend, $"Значения параметров команды посылаемой {toReceive}");
            ToolTip1.SetToolTip(ButtonSend, $"Послать {toReceive} выбранную команду для исполнения");
            ToolTip1.SetToolTip(TimeStampTextBox, $"Время получения команды от {toReceive}");

            ToolTip1.SetToolTip(ReceiveTextBox, $"Текст команды пришедшей от {toReceive} в формате XML");
            ToolTip1.SetToolTip(DataGridReceive, $"Значения параметров команды принятой от {toReceive}");
            ToolTip1.SetToolTip(ListTaskReceive, $"Список всех пришедших команд от {toReceive} в текущем сеансе работы");
            ToolTip1.SetToolTip(TextBoxError, $"Текст ошибки соединения с {toReceive} по сети");
        }
        private void SetMunisEmpStatus()
        {
            ToolTip1.SetToolTip(CurrentUserTextBox, string.Empty);
            if (MunisUser != null)
            {
                CurrentUserTextBox.Text = MunisUser.Name;

                if (!string.IsNullOrEmpty(MunisUser.Number))
                {
                    if (editMode)
                    {
                        CurrentUserTextBox.ReadOnly  = true;
                        CurrentUserTextBox.BackColor = Colors.EditColor;
                        ToolTip1.SetToolTip(CurrentUserTextBox, "Double-Click to change.");
                    }
                    else
                    {
                        CurrentUserTextBox.ReadOnly  = true;
                        CurrentUserTextBox.BackColor = Colors.EditColor;
                        ToolTip1.SetToolTip(CurrentUserTextBox, "Munis Linked Employee");
                    }
                    controlParser.ErrorProvider.SetError(CurrentUserTextBox, string.Empty);
                }
                else
                {
                    if (editMode)
                    {
                        CurrentUserTextBox.ReadOnly  = false;
                        CurrentUserTextBox.BackColor = Color.Empty;
                    }
                    else
                    {
                        CurrentUserTextBox.ReadOnly  = true;
                        CurrentUserTextBox.BackColor = Color.Empty;
                    }
                }
            }
        }
Example #25
0
 private void StateManager_NewItemAdd(object sender, ItemEventArgs e)
 {
     this.InvokeSafe(new System.Action <ItemEventArgs>((args) =>
     {
         if (Monitor.TryEnter(lpScannedFiles, TIMEOUT))
         {
             try
             {
                 var cnt = ItemControl.GetInstance();
                 ToolTip1.SetToolTip(cnt, args.Item.SessionID.ToString());
                 cnt.Item             = args.Item;
                 cnt.Click           += new EventHandler(ImageIconControl_Click);
                 cnt.Updated         += new EventHandler(ImageIconControl_Updated);
                 cnt.ContextMenuStrip = scanContextMenuStrip;
                 lpScannedFiles.Controls.Add(cnt);
                 lblMessage.Text = string.Concat("Vouchers in folder: ", lpScannedFiles.Controls.Count, "     Starting from: ", m_CurrentVoucher);
             }
             finally
             {
                 Monitor.Exit(lpScannedFiles);
             }
         }
     }), e);
 }
Example #26
0
 private void ToolTip_Setup()
 {
     ToolTip1.SetToolTip(cmF1, "Set text gradient color #1.");
     ToolTip1.SetToolTip(cmF2, "Set text gradient color #2.");
     ToolTip1.SetToolTip(cmFD, "Set the text gradient direction to Down.");
     ToolTip1.SetToolTip(cmFR, "Set the text gradient direction to Sideways.");
     ToolTip1.SetToolTip(cmB1, "Set background gradient color #1.");
     ToolTip1.SetToolTip(cmB2, "Set background gradient color #2.");
     ToolTip1.SetToolTip(cmBD, "Set the background gradient direction to Down.");
     ToolTip1.SetToolTip(cmBR, "Set the background gradient direction to Sideways.");
     ToolTip1.SetToolTip(cboA1, "Set background Alpha/Opacity #1. Set low with no background gives blur effect.");
     ToolTip1.SetToolTip(cboA2, "Set background Alpha/Opacity #2. Set low with no background gives blur effect.");
     ToolTip1.SetToolTip(cmBordColor, "Select a color used for object border drawing.");
     ToolTip1.SetToolTip(cboBord, "Select a border style to draw on these objects.");
     ToolTip1.SetToolTip(cboBordWidth, "Select a line width option for the border object.");
     ToolTip1.SetToolTip(cmShadowColor, "Set text shadow color.");
     ToolTip1.SetToolTip(cbo3D, "Set text shadow location.0/360 is East.");
     ToolTip1.SetToolTip(cboDepth, "Set text shadow XY offset.");
     ToolTip1.SetToolTip(cmFormColor, "Set the background image color. Not used for NOTES.");
     ToolTip1.SetToolTip(cmNoImage, "Clear the current background image.");
     ToolTip1.SetToolTip(cmFormImage, "Select a background image." + Constants.vbCr + "For best results use images the same size as the NOTE/CELO object.");
     ToolTip1.SetToolTip(cboScaling, "Set how the background image will be scaled/drawn." + Constants.vbCr + "For best results use NORMAL or TILE.");
     ToolTip1.SetToolTip(cmBordPanColor, "Select a color used for outside panel border drawing.");
     ToolTip1.SetToolTip(cboBordPan, "Select a border style to draw on the panel.");
     ToolTip1.SetToolTip(cboBordPanWidth, "Select a line width option for the border object.");
     ToolTip1.SetToolTip(chkCardBack, "Use the panel image when drawing player cards. Panel color is the default background.");
     ToolTip1.SetToolTip(cmOVLNoImage, "Clear the current overlay image.");
     ToolTip1.SetToolTip(cmOverlay, "Select an overlay image. Image should be a PNG with alpha." + Constants.vbCr + "Can have green screen areas for stream chromakey/overlay." + Constants.vbCr + "For best results use images the same size as the NOTE/CELO object.");
     ToolTip1.SetToolTip(cboOVLScaling, "Set how the CELO overlay image will be scaled/drawn." + Constants.vbCr + "For best results use NORMAL or TILE.");
     ToolTip1.SetToolTip(cmCopy01, "Set this text setup style to NOTE #1 style.");
     ToolTip1.SetToolTip(cmCopy02, "Set this text setup style to NOTE #2 style.");
     ToolTip1.SetToolTip(cmCopy03, "Set this text setup style to NOTE #3 style.");
     ToolTip1.SetToolTip(cmCopy04, "Set this text setup style to NOTE #4 style.");
     ToolTip1.SetToolTip(cmCopyAll, "Set all text setup styles to the current style.");
     ToolTip1.SetToolTip(cmCopySize, "Set all NOTE sizes to the current size.");
 }
        private void SetCheckInfo(Label label, CheckResult chk, string text)
        {
            switch (chk)
            {
            case CheckResult.SUCCESS:
            {
                label.Image = global::MatlabInputForm.Properties.Resources.success;
                break;
            }

            case CheckResult.WARNING:
            {
                label.Image = global::MatlabInputForm.Properties.Resources.warning;
                break;
            }

            case CheckResult.FAILURE:
            {
                label.Image = global::MatlabInputForm.Properties.Resources.failure;
                break;
            }
            }
            ToolTip1.SetToolTip(label, text);
        }
Example #28
0
        public FrmTemplate()
        {
            InitializeComponent();
            this.StyleManager              = metroStyleManager1;
            this.port.StyleManager         = metroStyleManager1;
            this.ip.StyleManager           = metroStyleManager1;
            this.secret.StyleManager       = metroStyleManager1;
            this.ToolTip1.StyleManager     = metroStyleManager1;
            this.st.StyleManager           = metroStyleManager1;
            this.backlog.StyleManager      = metroStyleManager1;
            this.textbox.StyleManager      = metroStyleManager1;
            this.save.StyleManager         = metroStyleManager1;
            this.load.StyleManager         = metroStyleManager1;
            this.metroButton1.StyleManager = metroStyleManager1;
            this.metroButton2.StyleManager = metroStyleManager1;
            ToolTip1.AutoPopDelay          = 3000;

            Console.SetOut(new MultiTextWriter(new ControlWriter(textbox), Console.Out));
            ToolTip1.SetToolTip(secret, "To Generate new secret use 0");
            ToolTip1.SetToolTip(port, "For Example : 4000");
            ToolTip1.SetToolTip(ip, "(for localhost) : 127.0.0.1 or 51.254.160.49");
            ToolTip1.SetToolTip(st, "Start && Stop the server");
            ToolTip1.SetToolTip(backlog, "Default: 100");
        }
Example #29
0
 private void IndicateError(ref TextBox tbx, string msg = "Field is required.")
 {
     tbx.ForeColor = Color.White;
     tbx.BackColor = Color.Red;
     ToolTip1.SetToolTip(tbx, msg);
 }
Example #30
0
 private void ClearError(ref TextBox tbx)
 {
     tbx.ForeColor = Color.Black;
     tbx.BackColor = Color.White;
     ToolTip1.SetToolTip(tbx, string.Empty);
 }