public EditPerechenItemWindow(string projectPath, int strNum, int currentSave, int nextSave) { InitializeComponent(); project = new ProjectDB(projectPath); perItem = new PerechenItem(); perItem = project.GetPerechenItem(strNum, currentSave); perItem.id = (new Global()).makeID(strNum, nextSave); designatorTextBox.Text = perItem.designator; nameTextBox.Text = perItem.name; quantityTextBox.Text = perItem.quantity; noteTextBox.Text = perItem.note; isNameUnderlinedCheckBox.IsChecked = perItem.isNameUnderlined; }