예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            SQLiteSyncCOMClient sqlite = new SQLiteSyncCOMClient(connString, wsUrl);

            sqlite.ReinitializeDatabase(textBox1.Text);
            MessageBox.Show("Reinitialization done!");
        }
예제 #2
0
        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();
        }
예제 #3
0
        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!");
        }