示例#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 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!");
        }
示例#3
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();
        }
示例#4
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();
        }
示例#5
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!");
        }
示例#6
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!");
        }