private void btnUpload_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (ownerUserlvl.Equals("STUDENT")) { if (barEditItemArea.EditValue == null) { XtraMessageBox.Show("Please select an area","No area selected",MessageBoxButtons.OK,MessageBoxIcon.Information); } else { if (openFileDialogMain.ShowDialog().Equals(DialogResult.OK)) { List<string> fileDir = new List<string>(openFileDialogMain.FileNames); string area = barEditItemArea.EditValue.ToString(); frmUpload upload = new frmUpload(ownerUID, ownerUserlvl, area, editorUID, editorUserlvl, string.Empty, string.Empty, string.Empty, fileDir, "USERFILE"); upload.Show(); } } } else { if (openFileDialogMain.ShowDialog().Equals(DialogResult.OK)) { List<string> fileDir = new List<string>(openFileDialogMain.FileNames); frmUpload upload = new frmUpload(ownerUID, ownerUserlvl, ownerArea, editorUID, editorUserlvl, string.Empty, string.Empty, string.Empty, fileDir, "USERFILE"); upload.Show(); } } }
private void btnUploadCW_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (openFileDialogCW.ShowDialog().Equals(DialogResult.OK)) { List<string> fileDir = new List<string>(openFileDialogCW.FileNames); frmUpload upload = new frmUpload(string.Empty,string.Empty,string.Empty,string.Empty,string.Empty,string.Empty,string.Empty,string.Empty,fileDir,"CW"); upload.Show(); } }
private void btnUpload_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (openFileDialogMain.ShowDialog().Equals(DialogResult.OK)) { List<string> fileDir = new List<string>(openFileDialogMain.FileNames); frmUpload upload = new frmUpload(ownerUID, ownerUserlvl, ownerArea, editorUID, editorUserlvl, string.Empty, string.Empty, string.Empty, fileDir, "FILE"); upload.Show(); } }