mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-21 21:38:52 +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"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
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>
|
||||
<WrapPanel DockPanel.Dock="Top">
|
||||
<Button Name="butnCopy" Click="butnCopy_Click">Copy</Button>
|
||||
|
|
|
|||
|
|
@ -240,12 +240,12 @@ namespace Cosmos.Build.Builder {
|
|||
|
||||
mContent.Inlines.Add(aLine);
|
||||
mContent.Inlines.Add(new LineBreak());
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
void Window_Loaded(object sender, RoutedEventArgs e) {
|
||||
Left = Properties.Settings.Default.Location.X;
|
||||
Top = Properties.Settings.Default.Location.Y;
|
||||
Left = Properties.Settings.Default.Location.X;
|
||||
Top = Properties.Settings.Default.Location.Y;
|
||||
string xAppPath = System.AppDomain.CurrentDomain.BaseDirectory;
|
||||
mCosmosPath = Path.GetFullPath(xAppPath + @"..\..\..\..\..\");
|
||||
if (App.InstallTask) {
|
||||
|
|
@ -261,10 +261,16 @@ namespace Cosmos.Build.Builder {
|
|||
Clipboard.SetText(mClipboard.ToString());
|
||||
}
|
||||
|
||||
private void Window_Closed(object sender, EventArgs e)
|
||||
{
|
||||
Properties.Settings.Default.Location = new System.Drawing.Point((int)Left, (int)Top);
|
||||
Properties.Settings.Default.Save();
|
||||
private void Window_Closed(object sender, EventArgs e) {
|
||||
Properties.Settings.Default.Location = new System.Drawing.Point((int)Left, (int)Top);
|
||||
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