mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-26 21:42:11 +00:00
This commit is contained in:
parent
bfb47bccbb
commit
03fdf17d5b
2 changed files with 14 additions and 8 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
<Window x:Class="Cosmos.Build.Builder.MainWindow"
|
<Window x:Class="Cosmos.Build.Builder.MainWindow"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
Title="Cosmos Kit Builder" Height="496" Width="709" Loaded="Window_Loaded" Icon="/Cosmos.Build.Builder;component/Cosmos.ico" Closed="Window_Closed">
|
Title="Cosmos Kit Builder" Height="496" Width="709" Loaded="Window_Loaded" Icon="/Cosmos.Build.Builder;component/Cosmos.ico" Closed="Window_Closed" SizeChanged="Window_SizeChanged">
|
||||||
<DockPanel>
|
<DockPanel>
|
||||||
<WrapPanel DockPanel.Dock="Top">
|
<WrapPanel DockPanel.Dock="Top">
|
||||||
<Button Name="butnCopy" Click="butnCopy_Click">Copy</Button>
|
<Button Name="butnCopy" Click="butnCopy_Click">Copy</Button>
|
||||||
|
|
|
||||||
|
|
@ -244,8 +244,8 @@ namespace Cosmos.Build.Builder {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window_Loaded(object sender, RoutedEventArgs e) {
|
void Window_Loaded(object sender, RoutedEventArgs e) {
|
||||||
Left = Properties.Settings.Default.Location.X;
|
Left = Properties.Settings.Default.Location.X;
|
||||||
Top = Properties.Settings.Default.Location.Y;
|
Top = Properties.Settings.Default.Location.Y;
|
||||||
string xAppPath = System.AppDomain.CurrentDomain.BaseDirectory;
|
string xAppPath = System.AppDomain.CurrentDomain.BaseDirectory;
|
||||||
mCosmosPath = Path.GetFullPath(xAppPath + @"..\..\..\..\..\");
|
mCosmosPath = Path.GetFullPath(xAppPath + @"..\..\..\..\..\");
|
||||||
if (App.InstallTask) {
|
if (App.InstallTask) {
|
||||||
|
|
@ -261,10 +261,16 @@ namespace Cosmos.Build.Builder {
|
||||||
Clipboard.SetText(mClipboard.ToString());
|
Clipboard.SetText(mClipboard.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Window_Closed(object sender, EventArgs e)
|
private void Window_Closed(object sender, EventArgs e) {
|
||||||
{
|
Properties.Settings.Default.Location = new System.Drawing.Point((int)Left, (int)Top);
|
||||||
Properties.Settings.Default.Location = new System.Drawing.Point((int)Left, (int)Top);
|
Properties.Settings.Default.Save();
|
||||||
Properties.Settings.Default.Save();
|
}
|
||||||
|
|
||||||
|
private void Window_SizeChanged(object sender, SizeChangedEventArgs e) {
|
||||||
|
// User had unminimized window, or maximized it, or otherwise manually intervened.
|
||||||
|
if (WindowState != System.Windows.WindowState.Minimized) {
|
||||||
|
mPreventAutoClose = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue