public TrayIcon() { InitializeComponent(); // If plink.exe is not found, show the settings. this.settingsForm = new SettingsForm(); if (!PuttyTunnelManagerSettings.Instance().HasPlink) { this.notifyIcon.ShowBalloonTip(5, Application.ProductName, "Could not find plink.exe. Please locate it via the settings window.", ToolTipIcon.Info); settingsForm.ShowDialog(); } this.tipForm = new TipForm(); this.aboutForm = new AboutForm(); this.UpdateSessions(); foreach (Session session in Core.Instance().Sessions) { if (!session.IsOpen && session.AutoStart) { session.Open(); } } }
public TrayIcon() { InitializeComponent(); // If plink.exe is not found, show the settings. this.settingsForm = new SettingsForm(); if (!PuttyTunnelManagerSettings.Instance().HasPlink) { this.notifyIcon.ShowBalloonTip(5, Application.ProductName, "Could not find plink.exe. Please locate it via the settings window.", ToolTipIcon.Info); settingsForm.ShowDialog(); } this.tipForm = new TipForm(); this.aboutForm = new AboutForm(); MessageForm messageForm = new MessageForm(); UserNotifications.init( messageForm ); UserNotifications.Notify( "PTM", "starting..." ); this.UpdateSessions(); // we need to enum sessions automaticaly for start some sessions }
public TrayIcon() { InitializeComponent(); // If plink.exe is not found, show the settings. this.settingsForm = new SettingsForm(); if (!PuttyTunnelManagerSettings.Instance().HasPlink) { this.notifyIcon.ShowBalloonTip(5, Application.ProductName, "Could not find plink.exe. Please locate it via the settings window.", ToolTipIcon.Info); settingsForm.ShowDialog(); } this.tipForm = new TipForm(); this.aboutForm = new AboutForm(); }