예제 #1
0
        private void ButtonOtborListDep_Click(object sender, RoutedEventArgs e)
        {
            ClearMe();
            Papa.selectedItems = new List <string>();
            var deps = listBox1.SelectedItems;

            foreach (var item in deps)
            {
                var dep = item.ToString();
                Papa.selectedItems.Add(dep);
                textBox1.Text += dep + " ";
            }
            AccBase.ClearOtbor();
            //AccBase.AccessAddOtbor(Papa.selectedItems);
            OtborDB.MainOtbor();
            //Papa.selectedItems = new List<string>();
            textBox1.Text = Papa.infoSmall;
            textBox2.Text = Papa.infoBig;
            listBox1.SelectedItems.Clear();
        }
예제 #2
0
        public MainWindow()
        {
            InitializeComponent();

            List <string> deps = AccBase.AccGetListDeps();

            listBox1.ItemsSource = deps;

            List <string> partners = AccBase.AccSelectDistictPartners();

            listBoxPartners.ItemsSource = partners;

            List <string> someList = new List <string> {
                "site", "term", "natasha"
            };

            listBoxSome.ItemsSource = someList;

            List <string> peopleList = new List <string> {
                "priem", "otpusk", "perevod", "postall"
            };

            listBoxPeople.ItemsSource = peopleList;

            List <string> monitorList = new List <string> {
                "accback", "monitor", "rasklad"
            };

            listBoxMonitor.ItemsSource = monitorList;

            List <string> kabinetList = new List <string> {
                "knigi", "rro", "pereezd", "otmena"
            };

            listBoxKabinet.ItemsSource = kabinetList;
        }