public winSwitchAuto(DataBaseAdapter adapter, Машины car, Клиенты client) { InitializeComponent(); this.adapter = adapter; this.mCarReferance = car; this.mClientReferance = client; cmbClient.ItemsSource = adapter.getNamesClient(); }
public void init(DataBaseAdapter adapter) { this.adapter = adapter; car = new Машины(); client = new Клиенты(); winSwitchAuto win = new winSwitchAuto(adapter, car, client); win.ShowDialog(); initCarInfo(); }
public winКлиенты(DataBaseAdapter adapter, Клиенты client) { InitializeComponent(); this.adapter = adapter; txtAdres.Text = client.Адрес.Trim(); txtName.Text = client.ФИО_клиента.Trim(); cmbTown.Text = client.Город.Trim(); txtPhone.Text = client.Телефон.Trim(); id = client.id_клиента; btn_ok.Click += update_Click; }
private void btn_ok_Click(object sender, RoutedEventArgs e) { try { mCarReferance = adapter.getCarByName(cmbCars.Text, cmbClient.Text); mClientReferance = adapter.getClientByName(cmbClient.Text); this.Close(); } catch (Exception ex) { MessageBox.Show("Неверный ввод", "Внимание", MessageBoxButton.OK, MessageBoxImage.Warning); } }
public winАвтомобиль(DataBaseAdapter adapter, Машины car, Клиенты client) { InitializeComponent(); this.adapter = adapter; this.car = car; this.client = client; cmbClient.ItemsSource = adapter.getNamesClient(); btn_ok.Click += update_Click; txtName.Text = car.Наименование.Trim(); txtRun.Text = car.Пробег.Trim(); cmbClient.Text = client.ФИО_клиента.Trim(); cmbStatusTO1.Text = car.ТО1.Trim(); cmbStatusTO2.Text = car.ТО2.Trim(); cmbStatusTO3.Text = car.ТО3.Trim(); }
/// <summary> /// Create a new Клиенты object. /// </summary> /// <param name="id_клиента">Initial value of the id_клиента property.</param> /// <param name="фИО_клиента">Initial value of the ФИО_клиента property.</param> /// <param name="телефон">Initial value of the Телефон property.</param> /// <param name="адрес">Initial value of the Адрес property.</param> /// <param name="город">Initial value of the Город property.</param> public static Клиенты CreateКлиенты(global::System.Int32 id_клиента, global::System.String фИО_клиента, global::System.String телефон, global::System.String адрес, global::System.String город) { Клиенты клиенты = new Клиенты(); клиенты.id_клиента = id_клиента; клиенты.ФИО_клиента = фИО_клиента; клиенты.Телефон = телефон; клиенты.Адрес = адрес; клиенты.Город = город; return клиенты; }
/// <summary> /// Deprecated Method for adding a new object to the Клиенты EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToКлиенты(Клиенты клиенты) { base.AddObject("Клиенты", клиенты); }