Ejemplo n.º 1
0
        private async void LaunchInTaskBar()
        {
            var taskbar = TaskBarFactory.GetTaskbar();
            var process = await taskbar.AddToTaskbar();

            process.SetPosition(0, 0);
        }
Ejemplo n.º 2
0
        private async Task SetupTaskbar()
        {
            taskbar = TaskBarFactory.GetTaskbar();
            process = await taskbar.AddToTaskbar();

            Size      = new Size(452, 30);
            var(X, Y) = ConfigUtils.StringToPosition(Config.Get(ConfigKeys.BarPosition));
            process.SetPosition(X, Y);
        }
Ejemplo n.º 3
0
        public TaskbarForm()
        {
            InitializeComponent();

            SetTools();

            taskbar             = TaskBarFactory.GetTaskbar();
            taskbar.SizeChanged = TaskbarSizeChanged;
            SetupTaskbarForm();
            LaunchInTaskBar();

            BuildContextMenuStrip();

            openFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
            openFileDialog.Multiselect      = false;
            openFileDialog.FilterIndex      = 1;

            updater = new AutoUpdater(this);
            updater.DoUpdate(true);

            RegisterHotkeys();
        }