private void ParseArguments(string[] args) { if (dictonary.ContainsKey(args[0])) command = dictonary[args[0]]; else throw new InvalidArgument(args[0]); }
public MainViewModel() { WelcomeActivateCommand = new Command(WelcomeActivate, null/*canExecuteFunction*/); RiderActivateCommand = new Command(RiderActivate, null/*canExecuteFunction*/); DonorActivateCommand = new Command(DonorActivate, null/*canExecuteFunction*/); DonationActivateCommand = new Command(DonationActivate, null/*canExecuteFunction*/); AboutActivateCommand = new Command(AboutActivate, null/*canExecuteFunction*/); WelcomeActivate(null); }