Exemple #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);
            };
        }
Exemple #2
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;
            };
        }