Skip to content

Commit

Permalink
v0.0.0.8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
torum committed Sep 25, 2018
1 parent 9539197 commit 0244ddc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions BitWallpaper/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ public void BringToForeground()

_isSystemTray = false;

(this.DataContext as MainViewModel).MinMode = false;

}

private void Window_SizeChanged(object sender, SizeChangedEventArgs e)
Expand Down Expand Up @@ -325,7 +327,7 @@ private void Window_StateChanged(object sender, EventArgs e)

_dispatcherMouseTimer.Stop();

//BackgroundGrid.Margin = new Thickness(0);
MarginGrid.Margin = new Thickness(0);
}
else if (this.WindowState == WindowState.Maximized)
{
Expand All @@ -334,7 +336,7 @@ private void Window_StateChanged(object sender, EventArgs e)

_dispatcherMouseTimer.Start();

//MarginGrid.Margin = new Thickness(3);
MarginGrid.Margin = new Thickness(8);
}

}
Expand All @@ -346,11 +348,17 @@ private void CloseButton_Click(object sender, RoutedEventArgs e)

private void MaxButton_Click(object sender, RoutedEventArgs e)
{

MarginGrid.Margin = new Thickness(8);

this.WindowState = WindowState.Maximized;
}

private void RestoreButton_Click(object sender, RoutedEventArgs e)
{

MarginGrid.Margin = new Thickness(0);

this.WindowState = WindowState.Normal;
}

Expand Down Expand Up @@ -391,9 +399,6 @@ private void ToggleSystemTrayMode()
if (_isSystemTray)
{
BringToForeground();
//_isSystemTray = false;

(this.DataContext as MainViewModel).MinMode = false;
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion BitWallpaper/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7713,7 +7713,7 @@ private void LoadChart(Pairs pair, CandleTypes ct)
// 期間設定
chartAxisX[0].MaxValue = span - 1;
//chartAxisX[0].MinValue = 0;
chartAxisX[0].MinValue = 0;
// まとめて追加
Expand Down

0 comments on commit 0244ddc

Please sign in to comment.