private void onDoubleClickList() { FileTypeWindow lFileTypeWindow = new FileTypeWindow(FileTypeWindowType.MODIFY, SelectFileTypeEntity); lFileTypeWindow.Closed += FileTypeWindow_Closed; lFileTypeWindow.Show(); }
private void onModifyFileType() { FileTypeWindow lFileTypeWindow = new FileTypeWindow(FileTypeWindowType.MODIFY, SelectFileTypeEntity); lFileTypeWindow.Closed += FileTypeWindow_Closed; lFileTypeWindow.Show(); }
private void OnAddCommand() { AddFileTypeEntity = new FileTypeEntity(); AddFileTypeEntity.FileType = new ProductManager.Web.Model.filetype(); FileTypeWindow fileTypeWindow = new FileTypeWindow(AddFileTypeEntity); fileTypeWindow.Closed += fileTypeWindow_Closed; fileTypeWindow.Show(); }
private void OnModifyCommand() { if (SelectFileTypeEntity != null) { FileTypeWindow fileTypeWindow = new FileTypeWindow(SelectFileTypeEntity); fileTypeWindow.Closed += fileTypeWindowOnModify_Closed; fileTypeWindow.Show(); } }
void fileTypeWindowOnModify_Closed(object sender, EventArgs e) { FileTypeWindow fileTypeWindow = sender as FileTypeWindow; if (fileTypeWindow.DialogResult == true) { OnSaveCommand(); } }
private void onAddFileType() { addFileTypeEntity = new FileTypeEntity(); Web.Model.filetype fileType = new Web.Model.filetype(); addFileTypeEntity.FileType = fileType; addFileTypeEntity.Update(); FileTypeWindow lFileTypeWindow = new FileTypeWindow(FileTypeWindowType.ADD, addFileTypeEntity); lFileTypeWindow.Closed += AddFileType_Closed; lFileTypeWindow.Show(); }
void fileTypeWindow_Closed(object sender, EventArgs e) { FileTypeWindow fileTypeWindow = sender as FileTypeWindow; if (fileTypeWindow.DialogResult == true) { FileTypeEntityList.Add(AddFileTypeEntity); systemManageDomainContext.filetypes.Add(AddFileTypeEntity.FileType); OnSaveCommand(); } }
private void FileTypeWindow_Closed(object sender, EventArgs e) { FileTypeWindow lFileTypeWindow = sender as FileTypeWindow; if (lFileTypeWindow.DialogResult == true) { IsBusy = true; Log.ModifyLog(documentManagerContext, selectFileTypeEntity.ToString()); SubmitOperation lSubmitOperation = documentManagerContext.SubmitChanges(); lSubmitOperation.Completed += SubOperation_Completed; } }
private void AddFileType_Closed(object sender, EventArgs e) { FileTypeWindow lFileTypeWindow = sender as FileTypeWindow; if (lFileTypeWindow.DialogResult == true) { IsBusy = true; FileTypeList.Add(addFileTypeEntity); documentManagerContext.filetypes.Add(addFileTypeEntity.FileType); Log.AddLog(documentManagerContext, addFileTypeEntity.ToString()); SubmitOperation lSubmitOperation = documentManagerContext.SubmitChanges(); lSubmitOperation.Completed += SubOperation_Completed; } }