public EditSpecItemWindow(string projectPath, int strNum, int currentSave, int nextSave) { InitializeComponent(); project = new ProjectDB(projectPath); specItem = new SpecificationItem(); specItem = project.GetSpecItem(strNum, currentSave); specItem.id = (new Global()).makeID(strNum, nextSave); formatTextBox.Text = specItem.format; zonaTextBox.Text = specItem.zona; positionTextBox.Text = specItem.position; oboznachenieTextBox.Text = specItem.oboznachenie; nameTextBox.Text = specItem.name; quantityTextBox.Text = specItem.quantity; noteTextBox.Text = specItem.note; }