public MainForm()
 {
     InitializeComponent();
     Windows7Taskbar.AllowTaskbarWindowMessagesThroughUIPI();
     Windows7Taskbar.SetCurrentProcessAppId("TaskbarManaged");
     setActiveMon(new CPUMonitor());
 }
示例#2
0
        public MainForm()
        {
            InitializeComponent();
            Windows7Taskbar.AllowTaskbarWindowMessagesThroughUIPI();
            Windows7Taskbar.SetCurrentProcessAppId("AcousticsTaskbar");

            Reinit();
        }
示例#3
0
        public Windows7Form()
        {
            InitializeComponent();

            Windows7Taskbar.AllowTaskbarWindowMessagesThroughUIPI();

            Windows7Taskbar.SetCurrentProcessAppId("TaskbarManaged");
            //string appId = Windows7Taskbar.GetCurrentProcessAppId();
        }
示例#4
0
 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);
         }
     }
 }
示例#5
0
        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);
            }
        }