示例#1
0
        public FileshareForm(string rfidnumber, bool isadmin, LoginForm parentform)
        {
            ParentForm = parentform;
            ParentForm.Hide();
            InitializeComponent();
            isAdmin = true;
            LastRefresh = DateTime.Now;

            if (isAdmin)
            {
                User = new Admin(rfidnumber);
                grp_Admin.Visible = true;
            }
            else
            {
                User = new User(rfidnumber);
            }
            this.Show();

            FORMDB = new Database(rfidnumber);
            initializeLists();
            FillTableHeader();
            lb_TableHeader.SelectedIndex = 0;
            //setFileTypes();
            //setSearchTypes();
            //getMyUploadsData();
            //getBrowseData();
        }
示例#2
0
        public User(string rfidnumber)
        {
            RFIDnumber = rfidnumber;
            isAdmin = false;
            ServerPath = @"C:\" + RFIDnumber + @"\";

            DATA = new Database(RFIDnumber);
        }
示例#3
0
        public Admin(string rfidnumber)
            : base(rfidnumber)
        {
            RFIDnumber = rfidnumber;
            isAdmin = true;

            DATA = new Database(RFIDnumber);
        }
示例#4
0
        public FlagForm(string userRfidnumber, string filepath, string filetitle, string uploaderRfidnumber, string filetype, string filetags)
        {
            InitializeComponent();
            cb_FlagReasons.SelectedIndex = 0;
            FlagDB = new Database(userRfidnumber);

            RFIDnumber = userRfidnumber;

            Path = filepath;
            Title = filetitle;
            Uploader = uploaderRfidnumber;
            Type = filetype;
            Tags = filetags;
        }