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
/// <summary> | |
/// | |
/// </summary> | |
/// <returns></returns> | |
private static void InstallUpdateSyncWithInfo() | |
{ | |
try | |
{ | |
if (ApplicationDeployment.IsNetworkDeployed) | |
{ |
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
/// <summary> | |
/// | |
/// </summary> | |
/// <param name="destinationPath"></param> | |
/// <param name="sourcePath"></param> | |
/// <returns></returns> | |
public static bool CheckDestinationPathCorrectness(this string destinationPath, string sourcePath) | |
{ | |
var isValidPath = default(bool); |
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
Task.Run(() => | |
{ | |
isDirectoryCopySuccessful = CopyHelper.CopyDirectory(sourceLocation, destinationLocation); | |
Win.Application.Current.Dispatcher.Invoke(() => | |
{ | |
BaseWindow.HideNotification(); | |
ShowMessage?.Invoke("Files copied into destination location successfully", "Information"); | |
}); | |
}).ContinueWith((t) => |
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
private ObservableCollection<VMCopyToMenu> Menus; | |
/// <summary> | |
/// | |
/// </summary> | |
public TreeViewWindow() | |
{ | |
InitializeComponent(); | |
Menus = new ObservableCollection<VMCopyToMenu>(); | |
LoadMenuItems(); |
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
/// <summary> | |
/// | |
/// </summary> | |
public class VMCopyToMenu | |
{ | |
public string MainMenuItemName { get; set; } | |
public ObservableCollection<VMCopyToMenuItem> MenuItems { get; set; } | |
public IList Children |
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
<TreeView x:Name="SampleTree2"> | |
<TreeView.Resources> | |
<HierarchicalDataTemplate DataType="{x:Type local:VMCopyToMenu}" ItemsSource="{Binding MenuItems}"> | |
<TextBlock Text="{Binding MainMenuItemName}"/> | |
</HierarchicalDataTemplate> | |
<HierarchicalDataTemplate DataType="{x:Type local:VMCopyToMenuItem}" ItemsSource="{Binding MenuItems}" x:Key="Level2" | |
ItemTemplate="{StaticResource Level3}"> | |
<TextBlock Text="{Binding MainMenuItemName}"/> | |
</HierarchicalDataTemplate> |
NewerOlder