Пример #1
0
        public static CarList getInstance()
        {
            if (uniqueInstance == null)
                uniqueInstance = new CarList();

            return uniqueInstance;
        }
Пример #2
0
        public mainForm()
        {
            InitializeComponent();

            carList = CarList.getInstance();
            mainStatus = MainStatus.getInstance();
            mainStatus.StatusChanged += statusChanged;
            mainStatus.StatusChanged += SetWindowHeaderText;
            mainStatus.StatusChanged += ConfigContextMenu;

            _dgvMain = new MainDGV(_dgvCar);

            _seacher = new SearchInDgv(_dgvCar);

            _myStatusStrip = new MyStatusStrip(_dgvCar, statusStrip1);

            _myFilter = MyFilter.GetInstanceCars();
            _myFilter.Fill(_dgvCar, _myStatusStrip, this);
        }
Пример #3
0
 public MyMenuItemFactory(MainDGV dgvMain)
 {
     _dgvMain = dgvMain;
     _mainStatus = MainStatus.getInstance();
     _carList = CarList.getInstance();
 }