public FMain() { InitializeComponent(); notifyIcon.Icon = Icon; ddns.Load(); LoadConf(); notifyIcon.Icon = icoTray; allowshowdisplay = tbDomain.Text.Length == 0 || tbToken.Text.Length == 0; if (!allowshowdisplay) { UpdateDNS(); } }
public Form1() { InitializeComponent(); notifyIcon.Icon = Icon; //Top = Screen.PrimaryScreen.WorkingArea.Bottom - (Height + 200); //Left = Screen.PrimaryScreen.WorkingArea.Right - (Width + 25); ddns.Load(); tbDomain.Text = ddns.Domain; tbToken.Text = ddns.Token; cbInterval.Text = ddns.Interval; ParseInterval(); RefreshTimer(); notifyIcon.Icon = icoTray; allowshowdisplay = tbDomain.Text.Length == 0 || tbToken.Text.Length == 0; if (!allowshowdisplay) { UpdateDNS(); } }