This repository has been archived by the owner on Sep 11, 2023. It is now read-only.
/
ToolTipControl.cs
47 lines (41 loc) · 1.6 KB
/
ToolTipControl.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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraSplashScreen;
namespace ToolTipControllerExample {
public partial class ToolTipControl : DevExpress.XtraEditors.XtraUserControl {
public ToolTipControl() {
InitializeComponent();
seBudget.Properties.ReadOnly = true;
bePhone.Properties.ReadOnly = true;
beLocation.Properties.ReadOnly = true;
}
public decimal Budget { set { seBudget.Value = value; } }
public string Department { set { lbDepartment.Text = value; } }
public string Phone { set { bePhone.Text = value; } }
public string DepartmentLocation { set { beLocation.Text = value; } }
protected override void OnVisibleChanged(EventArgs e) {
base.OnVisibleChanged(e);
if(this.Visible) {
popupControlContainer1.Show();
}
}
private void labelControl5_Click(object sender, EventArgs e) {
this.popupControlContainer1.Hide();
this.Hide();
}
private void bePhone_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) {
Form df = new DialingForm(bePhone.Text);
df.Show();
}
private void beLocation_Properties_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) {
Form2 locating = new Form2();
locating.Show();
}
}
}