Exemplo n.º 1
0
        private void izbor_Click(object sender, RoutedEventArgs e)
        {
            Window w = new Dialogs.TypeTable(type);

            w.Owner = this;
            w.ShowDialog();

            SelectedType = TypeTable.SelectedType;

            if (SelectedType != null)
            {
                foreach (Model.Lokal lokali in Prikaz.SelectedItems)
                {
                    lokali.type = SelectedType;
                }

                for (int i = 0; i < Prikaz.SelectedItems.Count; i++)
                {
                    referenca_lokali.Remove((Model.Lokal)(Prikaz.SelectedItems[i]));
                }
            }
            if (referenca_lokali.Count == 0)
            {
                MainWindow.tip.Remove(type);
                Close();
            }
        }
Exemplo n.º 2
0
        private void SelectTypeTable_Click(object sender, RoutedEventArgs e)
        {
            Window w = new Dialogs.TypeTable();

            w.Owner = this;
            w.ShowDialog();

            if (TypeTable.SelectedType != null)
            {
                tipLokala.SelectedItem = TypeTable.SelectedType;
            }
        }
Exemplo n.º 3
0
        private void izborZaSve_Click(object sender, RoutedEventArgs e)
        {
            Window w = new Dialogs.TypeTable(type);

            w.Owner = this;
            w.ShowDialog();

            SelectedType = TypeTable.SelectedType;

            if (SelectedType != null)
            {
                foreach (Model.Lokal lokali in referenca_lokali)
                {
                    lokali.type = SelectedType;
                }

                MainWindow.tip.Remove(type);
                Close();
            }
        }