public UserCortanaCommand Spawn(SpeechRecognitionResult speechRecognitionResult) { //TODO: use argument UserCortanaCommand clone = new UserCortanaCommand(Name, Tasks.ToArray()); return(clone); }
public MainPage() { this.InitializeComponent(); InitAvailableTasks(); SharedModel model = (Application.Current as App).Model; UCC = model.selected; ViewModel = new MainViewModel(this, UCC, AvailableTasks); this.DataContext = ViewModel; }
public override bool Equals(object obj) { if (obj == null || !(obj is UserCortanaCommand)) { return(false); } UserCortanaCommand ucc = obj as UserCortanaCommand; bool sameName = this.Name.Equals(ucc.Name); return(sameName); }
public UserCortanaCommand Spawn(SpeechRecognitionResult speechRecognitionResult) { //TODO: use argument UserCortanaCommand clone = new UserCortanaCommand(Name, Tasks.ToArray()); return clone; }