FogBugz » FogBugz for Visual Studio Read More
Clone URL:  
frmLogOn.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.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace FogBugzForVisualStudio { public partial class frmLogOn : Form { public frmLogOn() { InitializeComponent(); } public void ShowError(string sError) { lblError.Visible = true; lblError.Text = sError; lblError.Size = lblError.GetPreferredSize(new Size(lblError.Size.Width, 0)); panelMain.Location = new Point(panelMain.Location.X, lblError.Location.Y + lblError.Size.Height + 6); this.Size = new Size(this.Size.Width, panelMain.Location.Y + panelMain.Size.Height + 38); } private void frmLogOn_Shown(object sender, EventArgs e) { if (String.IsNullOrEmpty(fldURL.Text)) { fldURL.Focus(); } else if (cmbUser.Visible) { cmbUser.Focus(); } else if (String.IsNullOrEmpty(fldUser.Text)) { fldUser.Focus(); } else { fldPassword.Focus(); } } } }