private void button1_Click(object sender, EventArgs e) { SQLiteSyncCOMClient sqlite = new SQLiteSyncCOMClient(connString, wsUrl); sqlite.ReinitializeDatabase(textBox1.Text); MessageBox.Show("Reinitialization done!"); }
private void button2_Click(object sender, EventArgs e) { SQLiteSyncCOMClient sqlite = new SQLiteSyncCOMClient(connString, wsUrl); sqlite.SendAndRecieveChanges(textBox1.Text); LoadData(); MessageBox.Show("Send and recieve changes done!"); }
private async void btnSendAndRecieve_Click(object sender, RoutedEventArgs e) { var dbPath = System.IO.Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "sqlitesynccom.sqlite"); SQLiteSyncCOMClient sqliteSyncComClient = new SQLiteSyncCOMClient(dbPath, txtServerUrl.Text); await sqliteSyncComClient.SendAndRecieveChanges(txtSubscriberId.Text); var dialog = new MessageDialog("Synchronization complete!"); await dialog.ShowAsync(); }
private async void button_Click(object sender, RoutedEventArgs e) { var dbPath = System.IO.Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "sqlitesynccom.sqlite"); SQLiteSyncCOMClient sqliteSyncComClient = new SQLiteSyncCOMClient(dbPath, txtServerUrl.Text); await sqliteSyncComClient.ReinitializeDatabase(txtSubscriberId.Text); var dialog = new MessageDialog("Reinitialization done!"); await dialog.ShowAsync(); }
private void button1_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; SQLiteSyncCOMClient sqlite = new SQLiteSyncCOMClient(connString, wsUrl); sqlite.ReinitializeDatabase(textBox1.Text); LoadData(); this.Cursor = Cursors.Default; MessageBox.Show("Reinitialization done!"); }
private void button2_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; wsUrl = txtServerUrl.Text; SQLiteSyncCOMClient sqlite = new SQLiteSyncCOMClient(connString, wsUrl); sqlite.SendAndRecieveChanges(textBox1.Text); LoadData(); this.Cursor = Cursors.Default; MessageBox.Show("Send and recieve changes done!"); }