-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish UI for environments creation (#2539)
* add initial changes * add parsers * fix build * update existing classes and xaml * add hyper-v adaptive card for creation * add changes for hyper-v * fix build * add changes to show settings cards from hyper v * update with latest changes * add recent changes * fix build * add updates for adaptive cards to appear in review page * add creation to experiements page and fix adaptive card not showing up after moving to a different page * add missing message classes * Delete tools/SetupFlow/DevHome.SetupFlow/Models/Environments/CreateEnvironmentTask.cs * update message passing * add initial changes * add more updates * update based on comments, and add more comments * update comments and itemsviews choice set to prevent the choiceset from holding onto items view control internally * Use adaptive card render service to render adaptive card within content dialog * add updates * add * update json * add more updates * add more changes * only update UI if status method returns a mail * add updates for UI * add finishing UI changed * update based on comments and make sure a new create environment flow is made when you click the create environment button * update spelling
- Loading branch information
Showing
57 changed files
with
1,485 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
HyperVExtension/src/HyperVExtension/Models/ByteTransferProgress.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace HyperVExtension.Models; | ||
|
||
/// <summary> | ||
/// Represents progress of an operation that require transferring bytes from one place to another. | ||
/// </summary> | ||
public class ByteTransferProgress | ||
{ | ||
public long BytesReceived { get; set; } | ||
|
||
public long TotalBytesToReceive { get; set; } | ||
|
||
public uint PercentageComplete => (uint)((BytesReceived / (double)TotalBytesToReceive) * 100); | ||
|
||
public ByteTransferProgress(long bytesReceived, long totalBytesToReceive) | ||
{ | ||
BytesReceived = bytesReceived; | ||
TotalBytesToReceive = totalBytesToReceive; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.