Exemple #1
0
 private void butPracownicy_Click(object sender, RoutedEventArgs e)
 {
     if (_orgCRM is OrgProwadzacaCRM)
     {
         PracownicyWindow okno = new PracownicyWindow(_orgCRM);
         okno.ShowDialog();
     }
     else
     {
         MessageBox.Show("Tylko zapisane do pliku, lub z niego odczytane organizacje mają dostęp do listy pracowników.", "***", MessageBoxButton.OK, MessageBoxImage.Information);
     }
 }
Exemple #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.windowPracownicy = ((CRM_GUI.PracownicyWindow)(target));
                return;

            case 2:
                this.lstPracownicy = ((System.Windows.Controls.ListBox)(target));
                return;

            case 3:
                this.butDodajPrac = ((System.Windows.Controls.Button)(target));

            #line 30 "..\..\PracownicyWindow.xaml"
                this.butDodajPrac.Click += new System.Windows.RoutedEventHandler(this.butDodajPrac_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.butUsunPrac = ((System.Windows.Controls.Button)(target));

            #line 31 "..\..\PracownicyWindow.xaml"
                this.butUsunPrac.Click += new System.Windows.RoutedEventHandler(this.butUsunPrac_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.butSortPrac = ((System.Windows.Controls.Button)(target));

            #line 32 "..\..\PracownicyWindow.xaml"
                this.butSortPrac.Click += new System.Windows.RoutedEventHandler(this.butSortPrac_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.cmbSortPrac = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 7:
                this.butWyszukajPracPo = ((System.Windows.Controls.Button)(target));

            #line 38 "..\..\PracownicyWindow.xaml"
                this.butWyszukajPracPo.Click += new System.Windows.RoutedEventHandler(this.butWyszukajPracPo_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.cmbWyszukajPracPo = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 9:
                this.butEdytujDane = ((System.Windows.Controls.Button)(target));

            #line 44 "..\..\PracownicyWindow.xaml"
                this.butEdytujDane.Click += new System.Windows.RoutedEventHandler(this.butEdytujDane_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.butPokazWszystkich = ((System.Windows.Controls.Button)(target));

            #line 45 "..\..\PracownicyWindow.xaml"
                this.butPokazWszystkich.Click += new System.Windows.RoutedEventHandler(this.butPokazWszystkich_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.butUsunWszystkichPrac = ((System.Windows.Controls.Button)(target));

            #line 46 "..\..\PracownicyWindow.xaml"
                this.butUsunWszystkichPrac.Click += new System.Windows.RoutedEventHandler(this.butUsunWszystkichPrac_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.labPracownicyLista = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.InputBox = ((System.Windows.Controls.Grid)(target));
                return;

            case 14:
                this.txtStanowisko = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 15:
                this.txtPlec = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 16:
                this.txtData = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 17:
                this.txtBoxData = ((System.Windows.Controls.TextBox)(target));
                return;

            case 18:
                this.cmbWyszPoStanowisku = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 19:
                this.cmbWyszPoPlci = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 20:
                this.butWyszukaj = ((System.Windows.Controls.Button)(target));

            #line 69 "..\..\PracownicyWindow.xaml"
                this.butWyszukaj.Click += new System.Windows.RoutedEventHandler(this.butWyszukaj_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.butAnuluj = ((System.Windows.Controls.Button)(target));

            #line 70 "..\..\PracownicyWindow.xaml"
                this.butAnuluj.Click += new System.Windows.RoutedEventHandler(this.butAnuluj_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.labPracownicy = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.txtBoxLiczbaPrac = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }