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