maybe all ui and funcs has been attached

This commit is contained in:
2021-07-13 14:00:39 +08:00
parent 8c641db61c
commit e4c6da9990
8 changed files with 203 additions and 94 deletions

View File

@ -72,6 +72,12 @@ namespace BallanceTASEditor.UI {
SetMode(mMode);
}
// onnly used for delete prev one / next one shift.
public void ShiftTo(bool toNext) {
if (!IsDataPartialReady()) throw new Exception("Shift operation with wrong condition.");
FirstClick(GetPoint() + (toNext ? 1 : -1), mStartField);
}
public SelectionRange GetRange() {
if (mMode == ToolMode.Overwrite) throw new Exception("Read with wrong mode.");
if (!(mIsStartConfirmed && mIsEndConfirmed)) throw new Exception("Data is not ready to read");