Beispiel #1
0
        private void Add_Click(object sender, RoutedEventArgs e)
        {
            Add_window add_manager = new Add_window();

            add_manager.Show();
            SqliteDatabase.add_entry("xxx", "zzz", "444", "awwa", "24242", "utorrent");
        }
 public MainWindow()
 {
     _mainWindow = this;
     InitializeComponent();
     ArgumentLoader();
     SqliteDatabase.CheckForDatabase();
     SqliteDatabase.LoadDatabase();
     pipeServer.StartAsyncServer();
 }
 private void removeClick(object sender, RoutedEventArgs e)
 {
     if (dataGrid.SelectedIndex != -1)
     {
         managerData dataRow       = (managerData)dataGrid.SelectedItem;
         string      selectedAlias = dataRow.alias;
         SqliteDatabase.RemoveEntry(selectedAlias);
         client.RemoveUser(selectedAlias);
         dataGrid.Items.RemoveAt(dataGrid.SelectedIndex);
         MainWindow.ColumnRemover(selectedAlias);
         RefreshClients();
     }
 }
Beispiel #4
0
 public MainWindow()
 {
     InitializeComponent();
     ArgumentLoader();
     SqliteDatabase.check_for_database();
 }
Beispiel #5
0
 public settings_window()
 {
     InitializeComponent();
     SqliteDatabase.load_database();
 }
 private void button_Click(object sender, RoutedEventArgs e)
 {
     SqliteDatabase.add_entry(label_textBox.Text, hostname_textBox.Text, port_textBox.Text, username_textBox.Text, passwordBox.Password, Type.Text, path_textBox.Text, alias_textBox.Text);
 }