Esempio n. 1
0
 public Delays(ServicesReferences.Service1Client serv, int FlightID, string usr, string pass)
 {
     Service = serv;
     InitializeComponent();
     flightID = FlightID;
     Delays_Grid.ItemsSource      = Service.GetGridDelay_Cause(FlightID).Tables[0].DefaultView;
     Delays_TypeCombo.ItemsSource = Service.GetComboDelay_Type().Tables[0].DefaultView;
     username = usr;
     password = pass;
 }
Esempio n. 2
0
        public MainWindow(bool[] a, ServicesReferences.Service1Client s, string user, string passwd)
        {
            this.Access = a;
            Service     = s;
            username    = user;
            password    = passwd;
            InitializeComponent();
            tabControl1.DataContext = this;
            workPlaceAirport        = Service.GetUserAirport(user, password);

            InitComponents();
        }
        private void login_Click(object sender, RoutedEventArgs e)
        {
            //messsageText.Content="لطفا کمی صبر نمایید";
            Mouse.OverrideCursor = Cursors.Wait;
            ServicesReferences.Service1Client service = new ServicesReferences.Service1Client();


            bool[] result = service.Login(username.Text, password.Password);
            if (result != null)
            {
                MainWindow m = new MainWindow(result, service, username.Text, password.Password);
                m.Show();
                Mouse.OverrideCursor = null;
                this.Close();
                return;
            }
            //messsageText.Content = "";
            Mouse.OverrideCursor = null;
            ErrorBox error = new ErrorBox("نام کاربری یا رمز عبور اشتباه است!");

            error.ShowDialog();
        }
Esempio n. 4
0
 public DialogBoxCity(ServicesReferences.Service1Client s, int k)
 {
     InitializeComponent();
     Country.ItemsSource   = s.GetComboCountry().Tables[0].DefaultView;
     Country.SelectedValue = k;
 }