Пример #1
0
        protected void btnImport_Click(object sender, EventArgs e)
        {
            uSync u = new uSync();

            u.ReadAllFromDisk();

            pnUpdate.Visible = true;
            lbStatus.Text    = string.Format("Imported everything from {0}", uSyncSettings.Folder);
            InitSettings();
        }
Пример #2
0
        protected void btnExport_Click(object sender, EventArgs e)
        {
            uSync u = new uSync();

            u.SaveAllToDisk();

            pnUpdate.Visible = true;
            lbStatus.Text    = string.Format("Everything written out to {0}", uSyncSettings.Folder);
            InitSettings();
        }
Пример #3
0
        private void InitSettings()
        {
            chkAttatch.Checked = uSyncSettings.Attach;
            chkRead.Checked    = uSyncSettings.Read;
            chkWrite.Checked   = uSyncSettings.Write;
            chkWatch.Checked   = uSyncSettings.WatchFolder;

            uSync u = new uSync();

            uSyncVersionNumber.Text = "version: " + u.GetVersion();
        }