-
Notifications
You must be signed in to change notification settings - Fork 0
/
AbaUm.cs
61 lines (56 loc) · 2.05 KB
/
AbaUm.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using System;
using System.IO;
using System.Linq;
using System.Drawing;
using System.Threading;
using System.Diagnostics;
using System.Windows.Forms;
using System.ComponentModel;
using System.Collections.Generic;
namespace FormsComponentes
{
public partial class AbaUm : TabPage
{
public AbaUm()
{
InitializeComponent();
}
/// <summary>
/// Evento LinkLabel - Acesso á página de web
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void LinkForHelp_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
{
try
{
VisitLink();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Unable to open link that was clicked.");
}
}
/// <summary>
/// Método VisitLink - Acesso á página de web
/// </summary>
private void VisitLink()
{
this.link_help.LinkVisited = true;
System.Diagnostics.Process.Start("C:\\Program Files (x86)\\Google\\Chrome\\Application\\Chrome.exe",
"https://docs.microsoft.com/pt-br/dotnet/api/system.windows.forms.linklabel.linkclicked?view=netcore-3.1");
}
public string GetInfo()
{
return
$"RichTextBox:> {rtxt_RichTB.Text}\n" +
$"Numerics:> {num_Numeric1.Value + "/" + num_Numeric2.Value + "/" + num_Numeric3.Value}\n" +
$"MaskedTextBox:> {rtxt_Masked.Text}\n" +
$"ComboBox:> {cb_Combo.Text}\n" +
$"RadioButton:> {(this.rb_RadioUm.Checked == true ? "Ítem - 1" : this.rb_RadioDois.Checked ? "Ítem - 2" : this.rb_RadioTres.Checked ? "Ítem - 3" : "")}\n" +
$"CheckBox:> {(this.chk_Um.Checked == true ? "SMS -" : "")}" +
$" {(this.chk_Dois.Checked == true ? "E-mail -" : "")}" +
$" {(this.chk_Tres.Checked == true ? "WhatsApp" : "")}\n";
}
}
}