private void btnChangeNational_Click(object sender, RoutedEventArgs e) { numberOfClickedButton = "7"; dts = new dataToSend(numberOfClickedButton, "nacionalnost"); var aW = new editAll(dts); aW.Show(); }
private void bntChangeDirector_Click(object sender, RoutedEventArgs e) { numberOfClickedButton = "8"; dts = new dataToSend(numberOfClickedButton, "redatelj"); var aW = new editAll(dts); aW.Show(); }
private void btnChangeDistributor_Click(object sender, RoutedEventArgs e) { numberOfClickedButton = "6"; dts = new dataToSend(numberOfClickedButton, "distributer"); var aW = new editAll(dts); aW.Show(); }
private void btnChangeMovie_Click(object sender, RoutedEventArgs e) { numberOfClickedButton = "5"; dts = new dataToSend(numberOfClickedButton, "film"); var aW = new editAll(dts); aW.Show(); }
private void btnChangeAddress_Click(object sender, RoutedEventArgs e) { numberOfClickedButton = "4"; dts = new dataToSend(numberOfClickedButton, "adresa"); var aW = new editAll(dts); aW.Show(); }
private void btnChangeUser_Click(object sender, RoutedEventArgs e) { numberOfClickedButton = "3"; dts = new dataToSend(numberOfClickedButton, "korisnik"); var aW = new editAll(dts); aW.Show(); }
private void btnChangeActor_Click(object sender, RoutedEventArgs e) { numberOfClickedButton = "1"; dts = new dataToSend(numberOfClickedButton, "glumac"); var aW = new editAll(dts); aW.Show(); //this.Dispose(); }
public editAll(dataToSend dts) { InitializeComponent(); tableName = dts.getTableName; db = new baza(); tableFieldNames = new List <string>(); tableFieldValues = new List <string>(); listTextBox = new List <TextBox>(); listLabel = new List <Label>(); MessageBox.Show(dts.getNumber); if (dts.getNumber == "1") { actor = new List <glumac>(); actor = db.SelectActor(); createInterface(actor); } else if (dts.getNumber == "2") { model = new List <model>(); model = db.SelectModel(); createInterface(model); } else if (dts.getNumber == "3") { user = new List <korisnik>(); user = db.Select(); createInterface(user); } else if (dts.getNumber == "4") { address = new List <adresa>(); address = db.SelectAddress(); createInterface(address); } else if (dts.getNumber == "5") { movie = new List <film>(); movie = db.SelectMovie(); createInterface(movie); } else if (dts.getNumber == "6") { distributor = new List <distributer>(); distributor = db.SelectDistributor(); createInterface(distributor); } else if (dts.getNumber == "7") { nationality = new List <nacionalnost>(); nationality = db.SelectNationality(); createInterface(nationality); } else if (dts.getNumber == "8") { director = new List <redatelj>(); director = db.SelectDirector(); createInterface(director); } //txtBoxField1.Margin = new Thickness(10, 10, 10, 10); //stackPanelMain.Children.Add(txtBoxField1); //stackPanelMain.Children.Add(textBoxField2); }
private void AddressForm_ButtonClicked(object sender, dataToSend e) { numberID = e.getNumber; MessageBox.Show(numberID); }