Skip to content

Commit

Permalink
[2.4 bump] Settings UX for Outlook Auto Launch
Browse files Browse the repository at this point in the history
  • Loading branch information
nachmore committed Jun 22, 2021
1 parent c73a78c commit f30123b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ChimeHelper/ChimeHelperUX/ChimeHelperUX.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
<TimeSuffix>$(TimeSuffix.Trim())</TimeSuffix>
<DateSuffix>$(DateSuffix.Trim())</DateSuffix>

<AssemblyVersion>2.3.$(DateSuffix).$(TimeSuffix)</AssemblyVersion>
<FileVersion>2.3.$(DateSuffix).$(TimeSuffix)</FileVersion>
<AssemblyVersion>2.4.$(DateSuffix).$(TimeSuffix)</AssemblyVersion>
<FileVersion>2.4.$(DateSuffix).$(TimeSuffix)</FileVersion>
<OutputPath>bin\$(Configuration)\</OutputPath>
<UseWPF>true</UseWPF>
<PreBuildEvent />
Expand All @@ -104,7 +104,7 @@
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent />
<Version>2.3</Version>
<Version>2.4</Version>
<Authors>Oren Nachman</Authors>
<Company>nachmore</Company>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
Expand Down
3 changes: 2 additions & 1 deletion ChimeHelper/ChimeHelperUX/SettingsWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
mc:Ignorable="d"
ResizeMode="NoResize"
Icon="/Icons/fan.ico"
Title="Chime Helper Settings" Height="300" Width="400">
Title="Chime Helper Settings" Height="350" Width="400">
<StackPanel>
<Border Background="#192A38" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="42" VerticalAlignment="Top" Width="574">
<StackPanel Orientation="Horizontal">
Expand Down Expand Up @@ -40,6 +40,7 @@
<Separator Margin="10,10,10,0"/>

<CheckBox Margin="10,10,10,0" IsChecked="{Binding NotifyOnMeetingStart, Mode=TwoWay}">Show a notification when a meeting is starting</CheckBox>
<CheckBox Margin="10,10,10,0" IsChecked="{Binding AutoLaunchOutlook, Mode=TwoWay}">Automatically open Outlook if not running</CheckBox>

<Separator Margin="10,10,10,0"/>

Expand Down
3 changes: 3 additions & 0 deletions ChimeHelper/ChimeHelperUX/SettingsWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public static void CreateAndShow()
public string PersonalizedId { get; set; }
public bool NotifyOnMeetingStart { get; set; }

public bool AutoLaunchOutlook { get; set; }
private SettingsWindow()
{
InitializeComponent();
Expand All @@ -50,6 +51,7 @@ private SettingsWindow()
PersonalId = Properties.Settings.Default.ChimeBridgePersonalID;
PersonalizedId = Properties.Settings.Default.ChimeBridgePersonalizedID;
NotifyOnMeetingStart = Properties.Settings.Default.NotifyOnMeetingStart;
AutoLaunchOutlook = Properties.Settings.Default.AutoLaunchOutlook;

DataContext = this;
}
Expand All @@ -70,6 +72,7 @@ private void btnSave_Click(object sender, RoutedEventArgs e)
Properties.Settings.Default.ChimeBridgePersonalID = PersonalId?.Replace(" ", "");
Properties.Settings.Default.ChimeBridgePersonalizedID = PersonalizedId;
Properties.Settings.Default.NotifyOnMeetingStart = NotifyOnMeetingStart;
Properties.Settings.Default.AutoLaunchOutlook = AutoLaunchOutlook;

Properties.Settings.Default.Save();
Properties.Settings.Default.Reload();
Expand Down

0 comments on commit f30123b

Please sign in to comment.