public void InitializeEditMode() { Figur = null; FigurPropertyPresenter figurPropertyPresenter = new FigurPropertyPresenter(this); figurPropertyPresenter.SetToEditMode(); figurPropertyPresenter.SetFieldsEmpty(); }
public void InitializeViewMode() { FigurPropertyPresenter figurPropertyPresenter = new FigurPropertyPresenter(this); figurPropertyPresenter.SetToViewMode(); figurPropertyPresenter.SetFields(); }
private void BtnSaveClick(object sender, EventArgs e) { FigurPropertyPresenter figurPropertyPresenter = new FigurPropertyPresenter(this); if(figurPropertyPresenter.Update(Figur)) ReloadTreeView(); }
private void BtnDeleteClick(object sender, EventArgs e) { //ToDo Ask if the user really wants to delete FigurPropertyPresenter figurPropertyPresenter = new FigurPropertyPresenter(this); figurPropertyPresenter.Delete(Figur); ReloadTreeView(); }