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); }
private async void LaunchInTaskBar() { var process = await taskbar.AddToTaskbar(System.Diagnostics.Process.GetCurrentProcess()); process.SetPosition(0, 0); }