Example #1
0
        private void login_button_Click(object sender, RoutedEventArgs e)
        {
            Magankorhaz.FeldolgozoOsztalyok.Beleptetes beleptetes = new FeldolgozoOsztalyok.Beleptetes();
            string[] adatok = beleptetes.BeleptetesEllenorzes(felhasznalonev.Text, jelszo.Password);

            if (adatok[0] == "admin")
            {
                mainWindow.Hide();
                felhasznalonev.Clear();
                jelszo.Clear();
                AdminWindow adminWindow = new AdminWindow(adatok[1]);
                adminWindow.Show();
            }
            else if (adatok[0] == "orvos")
            {
                mainWindow.Hide();
                felhasznalonev.Clear();
                jelszo.Clear();
                OrvosWindow orvosWindow = new OrvosWindow(adatok[1]);
                orvosWindow.Show();
            }
            else if (adatok[0] == "paciens")
            {
                mainWindow.Hide();
                felhasznalonev.Clear();
                jelszo.Clear();
                PaciensWindow paciensWindow = new PaciensWindow(adatok[1]);
                paciensWindow.Show();
            }
            else if (adatok[0] == "ugyintezo")
            {
                mainWindow.Hide();
                felhasznalonev.Clear();
                jelszo.Clear();
                UgyintezoWindow ugyintezoWindow = new UgyintezoWindow(adatok[1]);
                ugyintezoWindow.Show();
            }
            else if (adatok[0] == "vezetoseg")
            {
                mainWindow.Hide();
                felhasznalonev.Clear();
                jelszo.Clear();
                VezetosegWindow vezetosegWindow = new VezetosegWindow(adatok[1]);
                vezetosegWindow.Show();
            }
            else
            {
                MessageBox.Show(adatok[0]);
            }
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.adminWindow = ((Magankorhaz.AdminWindow)(target));

            #line 5 "..\..\AdminWindow.xaml"
                this.adminWindow.Closing += new System.ComponentModel.CancelEventHandler(this.adminWindow_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.menu_background = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 3:
                this.menu_header_background = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 4:
                this.header_background = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

            #line 10 "..\..\AdminWindow.xaml"
                this.kijelentkezesButton.Click += new System.Windows.RoutedEventHandler(this.kijelentkezesButton_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.felhasznalokMenuGomb = ((System.Windows.Controls.Button)(target));

            #line 12 "..\..\AdminWindow.xaml"
                this.felhasznalokMenuGomb.Click += new System.Windows.RoutedEventHandler(this.felhasznalokMenuGomb_Click);

            #line default
            #line hidden
                return;

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

            #line 13 "..\..\AdminWindow.xaml"
                this.osztalyokMenuGomb.Click += new System.Windows.RoutedEventHandler(this.osztalyokMenuGomb_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.felhasznalo = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.felhasznaloTipus = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.felhasznaloVaszon = ((System.Windows.Controls.Canvas)(target));
                return;

            case 11:
                this.felhasznaloLista = ((System.Windows.Controls.ListView)(target));

            #line 17 "..\..\AdminWindow.xaml"
                this.felhasznaloLista.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.felhasznaloLista_SelectionChanged);

            #line default
            #line hidden
                return;

            case 12:
                this.jelszoValt = ((System.Windows.Controls.Button)(target));

            #line 32 "..\..\AdminWindow.xaml"
                this.jelszoValt.Click += new System.Windows.RoutedEventHandler(this.jelszoValt_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.ChosenOne = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.adminWindow = ((Magankorhaz.AdminWindow)(target));

            #line 5 "..\..\AdminWindow.xaml"
                this.adminWindow.Closing += new System.ComponentModel.CancelEventHandler(this.adminWindow_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.menu_background = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 3:
                this.menu_header_background = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 4:
                this.header_background = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

            #line 10 "..\..\AdminWindow.xaml"
                this.kijelentkezesButton.Click += new System.Windows.RoutedEventHandler(this.kijelentkezesButton_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.felhasznalokMenuGomb = ((System.Windows.Controls.Button)(target));

            #line 12 "..\..\AdminWindow.xaml"
                this.felhasznalokMenuGomb.Click += new System.Windows.RoutedEventHandler(this.felhasznalokMenuGomb_Click);

            #line default
            #line hidden
                return;

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

            #line 13 "..\..\AdminWindow.xaml"
                this.osztalyokMenuGomb.Click += new System.Windows.RoutedEventHandler(this.osztalyokMenuGomb_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.felhasznalo = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.felhasznaloTipus = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.felhasznaloVaszon = ((System.Windows.Controls.Canvas)(target));
                return;

            case 11:
                this.felhasznaloLista = ((System.Windows.Controls.ListView)(target));

            #line 17 "..\..\AdminWindow.xaml"
                this.felhasznaloLista.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.felhasznaloLista_SelectionChanged);

            #line default
            #line hidden
                return;

            case 12:
                this.jelszoValt = ((System.Windows.Controls.Button)(target));

            #line 32 "..\..\AdminWindow.xaml"
                this.jelszoValt.Click += new System.Windows.RoutedEventHandler(this.jelszoValt_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.adatMod = ((System.Windows.Controls.Button)(target));

            #line 33 "..\..\AdminWindow.xaml"
                this.adatMod.Click += new System.Windows.RoutedEventHandler(this.adatMod_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.ujUser = ((System.Windows.Controls.Button)(target));

            #line 34 "..\..\AdminWindow.xaml"
                this.ujUser.Click += new System.Windows.RoutedEventHandler(this.ujUser_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.torlesUser = ((System.Windows.Controls.Button)(target));

            #line 35 "..\..\AdminWindow.xaml"
                this.torlesUser.Click += new System.Windows.RoutedEventHandler(this.torlesUser_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.osztalyVaszon = ((System.Windows.Controls.Canvas)(target));
                return;

            case 17:
                this.osztalyLista = ((System.Windows.Controls.ListView)(target));

            #line 38 "..\..\AdminWindow.xaml"
                this.osztalyLista.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.osztalyLista_SelectionChanged);

            #line default
            #line hidden
                return;

            case 18:
                this.ferohelyValt = ((System.Windows.Controls.Button)(target));

            #line 53 "..\..\AdminWindow.xaml"
                this.ferohelyValt.Click += new System.Windows.RoutedEventHandler(this.ferohelyValt_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.ujOsztaly = ((System.Windows.Controls.Button)(target));

            #line 54 "..\..\AdminWindow.xaml"
                this.ujOsztaly.Click += new System.Windows.RoutedEventHandler(this.ujOsztaly_Click);

            #line default
            #line hidden
                return;

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

            #line 55 "..\..\AdminWindow.xaml"
                this.torlesOsztaly.Click += new System.Windows.RoutedEventHandler(this.torlesOsztaly_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.orvosVaszon = ((System.Windows.Controls.Canvas)(target));
                return;

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

            case 23:
                this.osztalyLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 24:
                this.belepLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 25:
                this.orvosNev = ((System.Windows.Controls.TextBox)(target));
                return;

            case 26:
                this.orvosEmail = ((System.Windows.Controls.TextBox)(target));
                return;

            case 27:
                this.orvosUsernev = ((System.Windows.Controls.TextBox)(target));
                return;

            case 28:
                this.orvosPass1 = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 29:
                this.orvosPass2 = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 30:
                this.orvosSzemszam = ((System.Windows.Controls.TextBox)(target));
                return;

            case 31:
                this.orvosTAJ = ((System.Windows.Controls.TextBox)(target));
                return;

            case 32:
                this.orvosAdoszam = ((System.Windows.Controls.TextBox)(target));
                return;

            case 33:
                this.orvosCim = ((System.Windows.Controls.TextBox)(target));
                return;

            case 34:
                this.orvosTelefon = ((System.Windows.Controls.TextBox)(target));
                return;

            case 35:
                this.orvosSzuletes = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 36:
                this.orvosKepesites = ((System.Windows.Controls.TextBox)(target));
                return;

            case 37:
                this.orvosOsztaly = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 38:
                this.orvosBelepes = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 39:
                this.orvosOraber = ((System.Windows.Controls.TextBox)(target));
                return;

            case 40:
                this.orvosSzabadnap = ((System.Windows.Controls.TextBox)(target));
                return;

            case 41:
                this.szerepkorLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 42:
                this.tipusCombo = ((System.Windows.Controls.ComboBox)(target));

            #line 92 "..\..\AdminWindow.xaml"
                this.tipusCombo.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.tipusCombo_SelectionChanged);

            #line default
            #line hidden
                return;

            case 43:
                this.felveszButton = ((System.Windows.Controls.Button)(target));

            #line 97 "..\..\AdminWindow.xaml"
                this.felveszButton.Click += new System.Windows.RoutedEventHandler(this.felveszButton_Click);

            #line default
            #line hidden
                return;

            case 44:
                this.modositButton = ((System.Windows.Controls.Button)(target));

            #line 98 "..\..\AdminWindow.xaml"
                this.modositButton.Click += new System.Windows.RoutedEventHandler(this.modositButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }