Beispiel #1
0
        public Form1()
        {
            this.Text = "DroppedBoxx";

            Settings.Instance = new Settings();

            //bust a theme
            Settings.Instance.ReloadTheme();

            Instance = this;
            InitializeComponent();

            Host.Bounds = Host.ClientBounds;
            Host.BackColor = Color.Empty;

            DropBox = new DropBox();

            //Login should always be open coz scrolling fails with nothing behind the panel... :S
            OpenLogin();

            if (Settings.Instance.RememberMe)
            {
                DropBox.UserLogin = new DroppedBoxx.Code.Responses.UserLogin { Token = Settings.Instance.UserToken, Secret = Settings.Instance.UserSecret };
                //auto Login
                OpenFoldersPanel();
            }
        }
Beispiel #2
0
        public void Sync()
        {
            IsSyncing = true;

            SyncStatus = SyncStatus.Checking;

            //FilesUp = new List<SyncFile>();
            //FilesDown = new List<SyncFile>();
            //FilesNew = new List<MetaData>();
            //FilesSkipped = new List<SyncFile>();
            //FilesSkippedD = new List<MetaData>();

            DropBox = new DropBox();
            DropBox.UserLogin = Form1.Instance.DropBox.UserLogin;

            var syncThread = new SyncThread();
            syncThreadThread = new Thread(syncThread.Go);
            syncThreadThread.Start();
        }