Beispiel #1
0
        private void btnIzmeni_Click(object sender, RoutedEventArgs e)
        {
            if (cbPrikaz.SelectedItem.ToString() == "Namestaj")
            {
                if (dataGrid.SelectedIndex > -1)
                {
                    Namestaj nam    = (Namestaj)dataGrid.SelectedItem;
                    Izmena   izmena = new Izmena(nam);
                    izmena.Owner = this; //svaka potvrdjena izmena liste u formi za izmenu namestaja bice
                                         //prikazana u ovoj formi
                    izmena.ShowDialog();
                }
            }

            if (cbPrikaz.SelectedItem.ToString() == "Tipovi namestaja")
            {
                if (dataGrid.SelectedIndex > -1)
                {
                    TipNamestaja       tip    = (TipNamestaja)dataGrid.SelectedItem;
                    IzmenaTipNamestaja izmena = new IzmenaTipNamestaja(tip);
                    izmena.Owner = this;
                    izmena.ShowDialog();
                }
            }
        }
Beispiel #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.FrmIzmenaNamestaja = ((Salon.GUI.Izmena)(target));
                return;

            case 2:
                this.content = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:

            #line 16 "..\..\..\GUI\IzmenaNamestaja.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 4:

            #line 17 "..\..\..\GUI\IzmenaNamestaja.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.cbIdtip = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 6:
                this.tbKolicina = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.tbNaziv = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.tbSifra = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.tbCena = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }