Skip to content

Commit e6aed06

Browse files
committed
Name change to Intune. Library updates.
1 parent 4d182ea commit e6aed06

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

MainWindow.xaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
xmlns:mah="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
77
xmlns:local="clr-namespace:Endpoint_Manager_Scripts_Editor"
88
mc:Ignorable="d"
9-
Title="Script Viewer for Microsoft Endpoint Manager" Height="500" Width="1000" Background="Black" ShowTitleBar="False" WindowStartupLocation="CenterScreen" WindowStyle="None" ResizeMode="CanResizeWithGrip" ShowMaxRestoreButton="True" ShowMinButton="True" ShowCloseButton="True" MouseLeftButtonDown="MetroWindow_MouseLeftButtonDown">
9+
Title="Script Viewer for Microsoft Intune" Height="500" Width="1000" Background="Black" ShowTitleBar="False" WindowStartupLocation="CenterScreen" WindowStyle="None" ResizeMode="CanResizeWithGrip" ShowMaxRestoreButton="True" ShowMinButton="True" ShowCloseButton="True" MouseLeftButtonDown="MetroWindow_MouseLeftButtonDown">
1010
<Grid>
1111
<Grid.RowDefinitions>
1212
<RowDefinition Height="Auto"/>
@@ -15,9 +15,9 @@
1515
<RowDefinition Height="Auto"/>
1616
<RowDefinition Height="Auto"/>
1717
</Grid.RowDefinitions>
18-
<TextBlock Text="Script Viewer for Microsoft Endpoint Manager" Foreground="#BB86FC" FontFamily="Consolas" FontWeight="Bold" FontSize="22" Margin="5" HorizontalAlignment="Center"/>
18+
<TextBlock Text="Script Viewer for Intune" Foreground="#BB86FC" FontFamily="Consolas" FontWeight="Bold" FontSize="22" Margin="5" HorizontalAlignment="Center"/>
1919
<StackPanel Grid.Row="1" Orientation="Horizontal">
20-
<Button Content="Connect Endpoint Manager" Click="Btn_ConnectIntune" Margin="5" Foreground="#03DAC5" FontSize="12" FontFamily="Consolas"/>
20+
<Button Content="Connect Intune" Click="Btn_ConnectIntune" Margin="5" Foreground="#03DAC5" FontSize="12" FontFamily="Consolas"/>
2121
<ComboBox Name="ComboBox" Width="500" Margin="5" FontSize="14" FontFamily="Consolas" ItemsSource="{Binding comboSource}" mah:TextBoxHelper.Watermark="Select Script" SelectionChanged="ComboBox_SelectionChanged"/>
2222
</StackPanel>
2323
<TextBox Grid.Row="2" Name="ScriptWindow" Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14" FontFamily="Consolas" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" IsReadOnly="True"/>
@@ -40,7 +40,7 @@
4040
<ColumnDefinition Width="1*"/>
4141
<ColumnDefinition Width="Auto"/>
4242
</Grid.ColumnDefinitions>
43-
<TextBlock Grid.Column="0" Name="Status" Text="Connect to Endpoint Manager" Foreground="#03DAC5" VerticalAlignment="Center" Margin="5" FontSize="14" FontFamily="Consolas"/>
43+
<TextBlock Grid.Column="0" Name="Status" Text="Connect to Intune" Foreground="#03DAC5" VerticalAlignment="Center" Margin="5" FontSize="14" FontFamily="Consolas"/>
4444
<StackPanel Grid.Column="1" Orientation="Horizontal">
4545
<TextBlock Name="Tenant" Text="TenantId: " Foreground="#03DAC5" VerticalAlignment="Center" Margin="5" FontSize="14" FontFamily="Consolas"/>
4646
<TextBlock Name="Account" Text="Account: " Foreground="#03DAC5" VerticalAlignment="Center" Margin="5,5,10,5" FontSize="14" FontFamily="Consolas"/>

MainWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace Endpoint_Manager_Scripts_Editor
1515
{
1616
public partial class MainWindow
1717
{
18-
string[] scopes = new string[] { "DeviceManagementConfiguration.ReadWrite.All" };
18+
readonly string[] scopes = new string[] { "DeviceManagementConfiguration.ReadWrite.All" };
1919
private RootValue scripts;
2020
private string authToken;
2121

@@ -105,7 +105,7 @@ public async Task<string> GetHttpContentWithToken(string url, string token)
105105

106106
private async void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
107107
{
108-
int index = scripts.value.FindIndex(x => x.displayName == ComboBox.SelectedItem);
108+
int index = scripts.value.FindIndex(x => x.displayName == ComboBox.SelectedItem as string);
109109
string id = scripts.value[index].id;
110110
string graphAPIEndpoint = "https://graph.microsoft.com/beta/deviceManagement/deviceManagementScripts" + "/" + id;
111111
var result = await GetHttpContentWithToken(graphAPIEndpoint, authToken);

Properties/AssemblyInfo.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
// General Information about an assembly is controlled through the following
88
// set of attributes. Change these attribute values to modify the information
99
// associated with an assembly.
10-
[assembly: AssemblyTitle("Script Viewer for Microsoft Endpoint Manager")]
10+
[assembly: AssemblyTitle("Script Viewer for Microsoft Intune")]
1111
[assembly: AssemblyDescription("")]
1212
[assembly: AssemblyConfiguration("")]
1313
[assembly: AssemblyCompany("smsagent.blog")]
14-
[assembly: AssemblyProduct("Script Viewer for Microsoft Endpoint Manager")]
14+
[assembly: AssemblyProduct("Script Viewer for Microsoft Intune")]
1515
[assembly: AssemblyCopyright("Copyright ©Trevor Jones 2022")]
1616
[assembly: AssemblyTrademark("")]
1717
[assembly: AssemblyCulture("")]
@@ -51,5 +51,5 @@
5151
// You can specify all the values or you can default the Build and Revision Numbers
5252
// by using the '*' as shown below:
5353
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("1.0.0.0")]
55-
[assembly: AssemblyFileVersion("1.0.0.0")]
54+
[assembly: AssemblyVersion("1.1.0.0")]
55+
[assembly: AssemblyFileVersion("1.1.0.0")]

Script Viewer for Microsoft Endpoint Manager.csproj renamed to Script Viewer for Microsoft Intune.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<ProjectGuid>{8B5B5B71-A6B3-4AD7-AC83-F32EAB7355EC}</ProjectGuid>
88
<OutputType>WinExe</OutputType>
99
<RootNamespace>Endpoint_Manager_Scripts_Editor</RootNamespace>
10-
<AssemblyName>Script Viewer for Microsoft Endpoint Manager</AssemblyName>
10+
<AssemblyName>Script Viewer for Microsoft Intune</AssemblyName>
1111
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
1212
<FileAlignment>512</FileAlignment>
1313
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
@@ -116,15 +116,15 @@
116116
<PrivateAssets>all</PrivateAssets>
117117
</PackageReference>
118118
<PackageReference Include="Fody">
119-
<Version>6.6.1</Version>
119+
<Version>6.6.4</Version>
120120
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
121121
<PrivateAssets>all</PrivateAssets>
122122
</PackageReference>
123123
<PackageReference Include="MahApps.Metro">
124124
<Version>2.4.9</Version>
125125
</PackageReference>
126126
<PackageReference Include="Microsoft.Identity.Client">
127-
<Version>4.43.2</Version>
127+
<Version>4.47.2</Version>
128128
</PackageReference>
129129
<PackageReference Include="Newtonsoft.Json">
130130
<Version>13.0.1</Version>

Script Viewer for Microsoft Endpoint Manager.sln renamed to Script Viewer for Microsoft Intune.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.1.32319.34
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Script Viewer for Microsoft Endpoint Manager", "Script Viewer for Microsoft Endpoint Manager.csproj", "{8B5B5B71-A6B3-4AD7-AC83-F32EAB7355EC}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Script Viewer for Microsoft Intune", "Script Viewer for Microsoft Intune.csproj", "{8B5B5B71-A6B3-4AD7-AC83-F32EAB7355EC}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution

0 commit comments

Comments
 (0)