Esempio n. 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");
        }
Esempio n. 2
0
 public MainWindow()
 {
     _mainWindow = this;
     InitializeComponent();
     ArgumentLoader();
     SqliteDatabase.CheckForDatabase();
     SqliteDatabase.LoadDatabase();
     pipeServer.StartAsyncServer();
 }
Esempio n. 3
0
 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();
     }
 }
Esempio n. 4
0
 public MainWindow()
 {
     InitializeComponent();
     ArgumentLoader();
     SqliteDatabase.check_for_database();
 }
Esempio n. 5
0
 public settings_window()
 {
     InitializeComponent();
     SqliteDatabase.load_database();
 }
Esempio n. 6
0
 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);
 }