private void longUzorEditorPage_Closed(object sender, EventArgs e) { var p = (LongUzorEditorPage)sender; if (p.Action == LongUzorEditorPage.ActionStatus.Saved) { UzorProjectFileManager.ReSave(this.longUzorView.Data, path); pageForAlert.MakeUzorItemList(); } else if (p.Action == LongUzorEditorPage.ActionStatus.Canceled) { this.longUzorView.Data = UzorProjectFileManager.LoadLongUzorData(path); } this.longUzorView.Draw(); }