public WindowPlaceRename(WorkBookBD xml) { InitializeComponent(); initHotKeys(); this.xml = xml; oldNameBox.ItemsSource = xml.getPlaceList(); oldNameBox.SelectedIndex = 0; }
private void init(WorkBookBD xml) { initHotKeys(); this.Title = Properties.Resources.ProgrammName + " - Copy"; this.xml = xml; ArrayList typeList = xml.getTypeList(); if (typeList == null) { MessageBox.Show("No Type in base", Properties.Resources.ProgrammName + " - Error"); this.Close(); } typeBox.ItemsSource = typeList; typeBox.SelectedIndex = 0; ArrayList placeList = xml.getPlaceList(); placeBox.ItemsSource = placeList; placeBox.SelectedIndex = 0; int num = (xml.getFreeNumbers(1))[0]; numberTB.Text = num.ToString(); }