private void NotifyIcon_BalloonTipClicked(object sender, EventArgs e) { NotifyIcon notify = sender as NotifyIcon; if (notify == null) { return; } String natigative = notify.Tag as String; if (natigative == String.Empty || !Directory.Exists(natigative)) { return; } Win32API.BringWindowToTopOrCreate(natigative); }
static void Main() { log.Info("Starting Program"); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); IntPtr WINDOW_HANDLER = Win32API.FindWindow(null, SecuruStikMessageQueue.MainFormText); if (WINDOW_HANDLER == IntPtr.Zero) { SecuruStikSplashScreen splashScreen = new SecuruStikSplashScreen(); Application.Run(splashScreen); Application.Run(new SecuruStik_MainForm(SecuruStikSplashScreen.DropBoxUser)); } else { log.Info("App already detected to be running."); Win32API.BringWindowToTopOrCreate(DropBoxController.Local_SecFolder); } }
private void OpenShareInfosFolder() { Win32API.BringWindowToTopOrCreate(DropBoxController.Local_ShareInfoFolder); }
private void OpenDownloadFolder() { Win32API.BringWindowToTopOrCreate(DropBoxController.Local_DownloadFolder); }
private void OpenDropBoxFolder() { Win32API.BringWindowToTopOrCreate(DropBoxController.DropBoxFolder); }
private void OpenSecuruSticSecFolder() { Win32API.BringWindowToTopOrCreate(DropBoxController.Local_SecFolder); }