예제 #1
0
        public MainWindow()
        {
            InitializeComponent();

            myICommand command = new myCommand();

            command.Execute();
        }
 public ViewModel()
 {
     employees = new Model()
     {
         empdetails = new Employee()
         {
             fname  = "John",
             lname  = "Doe",
             gender = gender.Male
         }
     };
     NextCommand = new myCommand(myNextCommandExecute, myCanNextCommandExecute);
 }
 public ViewModel()
 {
     myCommand = new myCommand(ExecutedMethod);
 }