Ejemplo n.º 1
0
        private void RefreshDialog()
        {
            bool success = RefreshJumpItems();

            EnableControls(success);

            textFolder.Text = ShortcutsFolder;

            string format = success ? "Jumper - {0}" : "Jumper";

            Text = String.Format(format, ShortcutsFolder);

            if (success)
            {
                WindowProperties.SetWindowProperty(GetHandle(), SystemProperties.System.AppUserModel.PreventPinning, false);
                TaskbarManager.Instance.ApplicationId = "Jumper@" + ShortcutsFolder;

                RefreshJumpList(GetHandle(), ShortcutsFolder, RefreshOnTop);
            }

            RefreshCommand();
        }
Ejemplo n.º 2
0
 private void Form1_Shown(object sender, EventArgs e)
 {
     WindowProperties.SetWindowProperty(GetHandle(), SystemProperties.System.AppUserModel.PreventPinning, true);
     RefreshDialog();
 }