Exemplo n.º 1
0
        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!");
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
        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!");
        }