private void button1_Click(object sender, EventArgs e) { SQLiteSyncCOMClient sqlite = new SQLiteSyncCOMClient(connString, wsUrl); sqlite.ReinitializeDatabase(textBox1.Text); MessageBox.Show("Reinitialization done!"); }
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!"); }