Exemplo n.º 1
0
 private void CreatePoint_Click(object sender, RoutedEventArgs e)
 {
     DatabaseHandler.CreatePoint(NewPointName.Text, (int)NewPointTypeCombo.SelectedValue);
     UpdatePoints();
     NewPointName.Text = "";
 }
Exemplo n.º 2
0
 public void UpdatePoints()
 {
     DatabaseHandler.GetPointsList(true);
     //points.Add(DatabaseHandler.GetNewPoint());
     PointsList.Items.Refresh();
 }
Exemplo n.º 3
0
 private void ConnectPointWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     //throw new NotImplementedException();
     PointsCountLabel.Content = $"Связано с {DatabaseHandler.GetPointDocumentCount(id)} точками";
     e.Cancel = false;
 }
Exemplo n.º 4
0
 void PopulateHistoryTable()
 {
     history = DatabaseHandler.GetDocumentHistory(id);
     DocumentHistory.ItemsSource = history;
 }
Exemplo n.º 5
0
 private void DocumentsPage_Closing(object sender, CancelEventArgs e)
 {
     DatabaseHandler.ChangePointDocConnection(id, changesToConnections);
     e.Cancel = false;
 }