예제 #1
0
 public FMain()
 {
     InitializeComponent();
     notifyIcon.Icon = Icon;
     ddns.Load();
     LoadConf();
     notifyIcon.Icon  = icoTray;
     allowshowdisplay = tbDomain.Text.Length == 0 || tbToken.Text.Length == 0;
     if (!allowshowdisplay)
     {
         UpdateDNS();
     }
 }
예제 #2
0
파일: Form1.cs 프로젝트: v3gan/DuckDNS
 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();
     }
 }