mirror of
https://github.com/chev2/botw-toolset.git
synced 2025-12-18 05:53:18 +00:00
Remove Menu_FileOpen for Yaz0 tab
This commit is contained in:
parent
25d6193aed
commit
d5ebd13f18
1 changed files with 0 additions and 38 deletions
|
|
@ -125,43 +125,5 @@ namespace BOTWToolset.Control
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*private void Menu_FileOpen(object sender, RoutedEventArgs e)
|
|
||||||
{
|
|
||||||
BOTWConsole.Log("Clicked File -> Open button");
|
|
||||||
|
|
||||||
var openFileDialog = new OpenFileDialog
|
|
||||||
{
|
|
||||||
InitialDirectory = @"C:\",
|
|
||||||
RestoreDirectory = true,
|
|
||||||
Title = "Select Yaz0 file",
|
|
||||||
DefaultExt = "yaz0",
|
|
||||||
Filter = "All Files (*.*)|*.*",
|
|
||||||
CheckFileExists = true
|
|
||||||
};
|
|
||||||
|
|
||||||
if ((bool)openFileDialog.ShowDialog())
|
|
||||||
{
|
|
||||||
// This is to ensure that opening a file when one is already open resets everything in the tab
|
|
||||||
SetDisabled();
|
|
||||||
|
|
||||||
BOTWConsole.Log("Opening file");
|
|
||||||
|
|
||||||
Yaz0 y = Yaz0.ReadFile(openFileDialog.FileName);
|
|
||||||
|
|
||||||
// Set the current file location to the chosen file's location
|
|
||||||
fileLocation = openFileDialog.FileName;
|
|
||||||
|
|
||||||
currentYaz0 = y;
|
|
||||||
|
|
||||||
// Set UI sidebar to have header info, enable controls
|
|
||||||
SetEnabled(y);
|
|
||||||
|
|
||||||
// Allow the file to be saved
|
|
||||||
MenuFileClose.IsEnabled = true;
|
|
||||||
MenuFileSave.IsEnabled = true;
|
|
||||||
MenuFileSaveAs.IsEnabled = true;
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue