예제 #1
0
        public UserCortanaCommand Spawn(SpeechRecognitionResult speechRecognitionResult)
        {
            //TODO: use argument
            UserCortanaCommand clone = new UserCortanaCommand(Name, Tasks.ToArray());

            return(clone);
        }
예제 #2
0
 public MainPage()
 {
     this.InitializeComponent();
     InitAvailableTasks();
     SharedModel model = (Application.Current as App).Model;
     UCC = model.selected;
     ViewModel = new MainViewModel(this, UCC, AvailableTasks);
     this.DataContext = ViewModel;
 }
예제 #3
0
        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;
 }