コード例 #1
0
        public SettingsForm()
        {
            InitializeComponent();
            settings = new Settings();
            mounted  = false;

            sizeFunc = delegate(string username)
            {
                DokanDAV.DAVSize size = new DokanDAV.DAVSize();

                try
                {
                    using (AVService.DAVClient client = new AVService.DAVClient())
                    {
                        size.total = (ulong)client.getTotalSpace(username);
                        size.used  = (ulong)client.getUsedSpace(username);
                    }
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex);
                }

                return(size);
            };
        }
コード例 #2
0
ファイル: SettingsForm.cs プロジェクト: jvd001/DokanDAV
        public SettingsForm()
        {
            InitializeComponent();
            settings = new Settings();
            mounted = false;

            sizeFunc = delegate(string username)
            {
                DokanDAV.DAVSize size = new DokanDAV.DAVSize();

                try
                {

                    using (AVService.DAVClient client = new AVService.DAVClient())
                    {
                        size.total = (ulong)client.getTotalSpace(username);
                        size.used = (ulong)client.getUsedSpace(username);
                    }
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex);
                }

                return size;
            };
        }