コード例 #1
0
        public RelocationForm(List <RelocateList> relocateList)
        {
            InitializeComponent();

            TreeviewUtil.LoadPersonalFolder(tvFolder, GlobalService.User);

            _relocateList = relocateList;
        }
コード例 #2
0
ファイル: CopyForm.cs プロジェクト: kdascatoyeung/KDASMyCloud
        public CopyForm(List <CopyFileList> list)
        {
            InitializeComponent();

            TreeviewUtil.LoadPersonalFolder(tvFolder, GlobalService.User);

            this.AddData(list);
        }
コード例 #3
0
        public DocumentForm(List <UploadFileList> uploadList, string defaultPath)
        {
            InitializeComponent();

            TreeviewUtil.LoadPersonalFolder(tvFolder, GlobalService.User);

            string division = GlobalService.Division;

            /*if (defaultPath.StartsWith(@"\Documents\" + division) || defaultPath.StartsWith(@"\Documents\Common") || defaultPath.StartsWith(@"\Documents\23600"))
             *  _defaultPath = defaultPath.Substring(10);
             * else*/
            _defaultPath = defaultPath;

            this.AddData(uploadList, _defaultPath);

            //Debug.WriteLine(_defaultPath);

            cbAutoDelete.SelectedIndex = 0;

            dgvDocSetup.AutoSizeRowsMode          = DataGridViewAutoSizeRowsMode.AllCells;
            dgvDocSetup.DefaultCellStyle.WrapMode = DataGridViewTriState.True;
        }