public MainForm() { InitializeComponent(); Windows7Taskbar.AllowTaskbarWindowMessagesThroughUIPI(); Windows7Taskbar.SetCurrentProcessAppId("TaskbarManaged"); setActiveMon(new CPUMonitor()); }
public MainForm() { InitializeComponent(); Windows7Taskbar.AllowTaskbarWindowMessagesThroughUIPI(); Windows7Taskbar.SetCurrentProcessAppId("AcousticsTaskbar"); Reinit(); }
public Windows7Form() { InitializeComponent(); Windows7Taskbar.AllowTaskbarWindowMessagesThroughUIPI(); Windows7Taskbar.SetCurrentProcessAppId("TaskbarManaged"); //string appId = Windows7Taskbar.GetCurrentProcessAppId(); }
private static void InitJumpList() { if (Utils.IsWin7OrLater) { try { Windows7Taskbar.SetCurrentProcessAppId(PreferencesFactory.get().getProperty("application.name")); _jumpListManager = new JumpListManager(PreferencesFactory.get().getProperty("application.name")); _jumpListManager.UserRemovedItems += (o, e) => { }; } catch (Exception exception) { Logger.warn("Exception while initializing jump list", exception); } } }
private void DocumentReader_Load(object sender, EventArgs e) { // Windows7Taskbar.SetCurrentProcessAppId(APP_ID); rtbText.Text = "Mary had a little lamb,\r\nHer fur as white as snow,\r\nAnd everywhere that Mary went,\r\nThe lamb was sure to go.\r\n\r\n"; for (int i = 0; i < 5; ++i) { rtbText.Text = rtbText.Text + rtbText.Text; } if (Environment.CommandLine.Contains("/doc")) { string doc = Environment.CommandLine.Substring( Environment.CommandLine.IndexOf("/doc") + "/doc".Length + 1); rtbText.LoadFile(doc); } }