Пример #1
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);
        }
Пример #2
0
        private async void LaunchInTaskBar()
        {
            var process = await taskbar.AddToTaskbar(System.Diagnostics.Process.GetCurrentProcess());

            process.SetPosition(0, 0);
        }