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

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

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