maybe all ui and funcs has been attached
This commit is contained in:
@ -46,6 +46,7 @@ namespace BallanceTASEditor {
|
||||
mViewer = new TASViewer(mFile, uiTASSlider, uiTASData, uiStatusbar_Selected);
|
||||
RefreshUI(true);
|
||||
ChangeToolMode(ToolMode.Cursor);
|
||||
mViewer.ChangeOverwrittenMode(uiMenu_Display_OverwrittenPaste.IsChecked);
|
||||
}
|
||||
|
||||
private void funcMenu_File_Save(object sender, RoutedEventArgs e) {
|
||||
@ -73,6 +74,20 @@ namespace BallanceTASEditor {
|
||||
}
|
||||
}
|
||||
|
||||
private void funcMenu_Display_OverwrittenPaste(object sender, RoutedEventArgs e) {
|
||||
//uiMenu_Display_OverwrittenPaste.IsChecked = !uiMenu_Display_OverwrittenPaste.IsChecked;
|
||||
if (mViewer != null)
|
||||
mViewer.ChangeOverwrittenMode(uiMenu_Display_OverwrittenPaste.IsChecked);
|
||||
}
|
||||
|
||||
private void funcMenu_Display_Redo(object sender, RoutedEventArgs e) {
|
||||
mViewer.ProcessOperation(OperationEnum.Redo);
|
||||
}
|
||||
|
||||
private void funcMenu_Display_Undo(object sender, RoutedEventArgs e) {
|
||||
mViewer.ProcessOperation(OperationEnum.Undo);
|
||||
}
|
||||
|
||||
// =========================== btn
|
||||
private void funcBtn_Cursor(object sender, RoutedEventArgs e) {
|
||||
ChangeToolMode(ToolMode.Cursor);
|
||||
@ -173,6 +188,9 @@ namespace BallanceTASEditor {
|
||||
uiMenu_File_Close.IsEnabled = true;
|
||||
|
||||
uiMenu_Display_ItemCount.IsEnabled = true;
|
||||
uiMenu_Display_OverwrittenPaste.IsEnabled = true;
|
||||
uiMenu_Display_Undo.IsEnabled = true;
|
||||
uiMenu_Display_Redo.IsEnabled = true;
|
||||
|
||||
uiStatusbar.Visibility = Visibility.Visible;
|
||||
} else {
|
||||
@ -185,6 +203,9 @@ namespace BallanceTASEditor {
|
||||
uiMenu_File_Close.IsEnabled = false;
|
||||
|
||||
uiMenu_Display_ItemCount.IsEnabled = false;
|
||||
uiMenu_Display_OverwrittenPaste.IsEnabled = false;
|
||||
uiMenu_Display_Undo.IsEnabled = false;
|
||||
uiMenu_Display_Redo.IsEnabled = false;
|
||||
|
||||
uiStatusbar.Visibility = Visibility.Collapsed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user