Esempio n. 1
0
        /* инициализация */
        public Clients(MainWindow mainWindow)
        {
            InitializeComponent();

            this.mainWindow = mainWindow;
            clientsWindow = this;

            UpdateClientsList(null);
        }
Esempio n. 2
0
        /* класс маршрут */
        //private class Route
        //{
        //    public int Id { get; set; }
        //    public string Climate { get; set; }
        //    public string Country { get; set; }
        //    public string Hotel { get; set; }
        //    public int Duration { get; set; }
        //    public float Cost { get; set; }

        //    public Route(int id, string climate, string country, string hotel, int duration, float cost)
        //    {
        //        Id = id;
        //        Climate = climate;
        //        Country = country;
        //        Hotel = hotel;
        //        Duration = duration;
        //        Cost = cost;
        //    }
        //}

        /* инициализация */
        public routeChoice(int clientId, string clientName, Clients clientsWindow)
        {
            InitializeComponent();

            this.clientsWindow = clientsWindow;
            routesWindow = this;
            this.clientId = clientId;
            this.clientName = clientName;

            personName.Content += clientName;
            updateClimateList();
            updateCountryList();
            updateHotelList();
        }
Esempio n. 3
0
 private void ClientsBtn_Click(object sender, RoutedEventArgs e)
 {
     var clients = new Clients(mainWindow);
     clients.Show();
     Hide();
 }
Esempio n. 4
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.clients = ((travelAgency.Clients)(target));
     
     #line 10 "..\..\Clients.xaml"
     this.clients.Closing += new System.ComponentModel.CancelEventHandler(this.clients_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.searchBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 3:
     this.searchBtn = ((System.Windows.Controls.Button)(target));
     
     #line 46 "..\..\Clients.xaml"
     this.searchBtn.Click += new System.Windows.RoutedEventHandler(this.searchBtn_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.clientsList = ((System.Windows.Controls.ListView)(target));
     
     #line 50 "..\..\Clients.xaml"
     this.clientsList.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.clientsList_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 5:
     this.AddClientBtn = ((System.Windows.Controls.Button)(target));
     
     #line 62 "..\..\Clients.xaml"
     this.AddClientBtn.Click += new System.Windows.RoutedEventHandler(this.AddClientBtn_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.EditClientBtn = ((System.Windows.Controls.Button)(target));
     
     #line 66 "..\..\Clients.xaml"
     this.EditClientBtn.Click += new System.Windows.RoutedEventHandler(this.EditClientBtn_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.DeleteClientBtn = ((System.Windows.Controls.Button)(target));
     
     #line 70 "..\..\Clients.xaml"
     this.DeleteClientBtn.Click += new System.Windows.RoutedEventHandler(this.DeleteClientBtn_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }