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(); }
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(); }
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(); }