Beispiel #1
0
        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();
                }
            }
        }
Beispiel #2
0
        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();
            }
        }
Beispiel #3
0
        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();
            }
        }