public override void Add() { FormLanguage f = new FormLanguage(); f.Text = GetLocalized("New Language"); f.Language = new Domain.Language(); if (f.ShowDialog(OwnerForm) == DialogResult.OK) { ClientEnvironment.LanguageService.SaveOrUpdate(f.Language); } RefreshData(); }
public override void Edit() { Domain.Language l = (Domain.Language) mainGridView.GetRow(mainGridView.FocusedRowHandle); if (l == null) { return; } FormLanguage f = new FormLanguage(); f.Text = GetLocalized("Edit Language"); f.Language = l; if (f.ShowDialog(OwnerForm) == DialogResult.OK) { ClientEnvironment.LanguageService.SaveOrUpdate(f.Language); } RefreshData(); }
public override void Edit() { Domain.Language l = (Domain.Language)mainGridView.GetRow(mainGridView.FocusedRowHandle); if (l == null) { return; } FormLanguage f = new FormLanguage(); f.Text = GetLocalized("Edit Language"); f.Language = l; if (f.ShowDialog(OwnerForm) == DialogResult.OK) { ClientEnvironment.LanguageService.SaveOrUpdate(f.Language); } RefreshData(); }