Esempio n. 1
0
        public static VMEmployee GetInstance()
        {
            if (employeeObject == null)
            {
                employeeObject = new VMEmployee();
            }

            return(employeeObject);
        }
Esempio n. 2
0
        public MainWindow()
        {
            InitializeComponent();
            vmEmp       = VMEmployee.GetInstance();
            DataContext = vmEmp;
            editForm    = null;

            error = vmEmp.ReadData((short)VMEmployee.RequestType.SELECT_ALL);
            ChangeMessageColor(error);
        }