Exemple #1
0
        //public ICommand OpenTaskFormCommand;

        #endregion //Commands Definition

        #region Загрузка формы

        void cntrl1_Load(object sender, EventArgs e)
        {
            cntrl1.ParentForm.Text = "Путевой лист";
            PgDatabase.Load_Waybill_Item(ref waybill_rec);
            elementHost1.Child = new Waybill_V()
            {
                DataContext = this
            };
            OnPropertyChanged("waybill_rec");
            Load_collections_without_dependent();
        }
Exemple #2
0
 private void Load_collections_without_dependent()
 {
     _wb_Orgs.Clear();
     _wb_Orgs = PgDatabase.Load_Organisations();
     OnPropertyChanged("Wb_orgs");
     _wb_Fuel_marks.Clear();
     _wb_Fuel_marks = PgDatabase.Load_Fuel_marks();
     OnPropertyChanged("Wb_Fuel_marks");
     _wb_Work_types.Clear();
     _wb_Work_types = PgDatabase.Load_Work_types();
     OnPropertyChanged("Wb_Work_types");
     _wb_Cargo_types.Clear();
     _wb_Cargo_types = PgDatabase.Load_Cargo_types();
     OnPropertyChanged("Wb_Cargo_types");
     _wb_Work_modes.Clear();
     _wb_Work_modes = PgDatabase.Load_Work_modes();
     OnPropertyChanged("Wb_Work_modes");
     _wb_Special_notes.Clear();
     _wb_Special_notes = PgDatabase.Load_Special_notes();
     OnPropertyChanged("Wb_Special_notes");
     _wb_Road_types.Clear();
     _wb_Road_types = PgDatabase.Load_Road_types();
     OnPropertyChanged("Wb_Road_types");
 }