private void UpdateFilebutton2_Click(object sender, EventArgs e) { FolderVO current = bindingSource1.Current as FolderVO; if (current != null) { FolderEditForm form = new FolderEditForm(current, gManager); if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { FoldersDataGridView.Refresh(); Log(OperationsManager.EDIT_GENERAL_FILES); } } }
private void RemovFilebutton3_Click(object sender, EventArgs e) { FolderVO current = bindingSource1.Current as FolderVO; if (current != null) { if (Question("هل أنت متأكد من الحذف؟ هذا سيؤدي إلى حذف الوثائق و الملفات المرتبطة") == System.Windows.Forms.DialogResult.Yes) { if (gManager.Delete(current)) { bindingSource1.Remove(current); FoldersDataGridView.Refresh(); Message("تم الحذف بنجاح"); Log(OperationsManager.EDIT_GENERAL_FILES); } else { Error(); } } } }