public ActionResult Add(Commanding.PostNewTweetCommand command) { var service = new Commanding.SimpleTwitterCommandServiceClient(); service.Execute(command); return RedirectToAction("Index"); }
public ActionResult Delete(Commanding.DeleteTweetCommand command) { var service = new Commanding.SimpleTwitterCommandServiceClient(); service.Delete(command); return RedirectToAction("Index"); }
public ActionResult Add(Commanding.CreateUserCommand command) { var service = new Commanding.SimpleTwitterCommandServiceClient(); service.CreateUser(command); return RedirectToAction("Index"); }
public HomeTab() { InitializeComponent(); SetResourceReference(StyleProperty, typeof(Infragistics.Windows.Ribbon.RibbonTabItem)); var dayCommands = Commanding.GetCommands(_day); XamOutlookCalendarViewCommandSource daySource = new XamOutlookCalendarViewCommandSource() { CommandType = XamOutlookCalendarViewCommand.SwitchToDayView, EventName = "Click", TargetName = "ocv" }; dayCommands.Add(daySource); var workWeekCommands = Commanding.GetCommands(_workWeek); XamOutlookCalendarViewCommandSource workweekSource = new XamOutlookCalendarViewCommandSource() { CommandType = XamOutlookCalendarViewCommand.SwitchToWorkWeekView, EventName = "Click", TargetName = "ocv" }; workWeekCommands.Add(workweekSource); var weekCommands = Commanding.GetCommands(_week); XamOutlookCalendarViewCommandSource weekSource = new XamOutlookCalendarViewCommandSource() { CommandType = XamOutlookCalendarViewCommand.SwitchToFullWeekView, EventName = "Click", TargetName = "ocv" }; weekCommands.Add(weekSource); var monthCommands = Commanding.GetCommands(_month); XamOutlookCalendarViewCommandSource monthSource = new XamOutlookCalendarViewCommandSource() { CommandType = XamOutlookCalendarViewCommand.SwitchToMonthView, EventName = "Click", TargetName = "ocv" }; monthCommands.Add(monthSource); var scheduleCommands = Commanding.GetCommands(_schedule); XamOutlookCalendarViewCommandSource scheduleSource = new XamOutlookCalendarViewCommandSource() { CommandType = XamOutlookCalendarViewCommand.SwitchToScheduleView, EventName = "Click", TargetName = "ocv" }; scheduleCommands.Add(scheduleSource); }
public RegistrationSemesterVM(Guid idGrupa) { _groupId = idGrupa; ExecuteAddSemesterCommand = new Commanding(RegisterSemester, CanRegisterSemester); ExecuteAddSemesterNameCommand = new Commanding(AddSemesterName, CanAddSemesterName); ExecuteAddPrzedmiotName = new Commanding(AddPrzedmiot, CanAddPrzedmiotName); SemesterName = Semestr.GetSemestersNames(); PrzedmiotName = Przedmiot.GetPrzedmiots(); }
public AddNewPrzedmiotVM() { ExecuteAddPrzedmiotCommand = new Commanding(AddPrzedmiotCommand, CanAddPrzedmiotCommand); ExecuteAddPrzedmiotNameCommand = new Commanding(AddPrzedmiotNameCommand, CanAddPrzedmiotNameCommand); ExecuteAddTypCommand = new Commanding(AddTypNameCommand, CanAddTypNameCommand); ExecuteAddWykladowca = new Commanding(AddWykladowcaCommand, CanAddWykladowcaCommand); TypName = Typ_Zajec.GetZajecias(); PrzedmiotName = Przedmiot.GetPrzedmiotsNames(); WykladowcaName = Wykladowca.GetWykladowcas(); }
public RegistrationVM() { edycja = false; ExecuteRegisterCommand = new Commanding(CreateUser, CanCreateUser); KrajName = Kraj.GetKrajs(); WojewodztwoName = Wojewodztwo.GetWojewodztwos(); PowiatName = Powiat.GetPowiats(); GminaName = Gmina.GetGminas(); UlicaName = Ulica.GetUlicas(); MiastoName = Nazwa_Miasto.GetMiastos(); }
public RegistrationGroupVM(Guid studentId) { _studentId = studentId; ExecuteAddKierunekCommand = new Commanding(AddKierunekCiagGroupCommand, CanAddKierunekCiagGroupCommand); ExecuteAddKierunek = new Commanding(AddKierunekCommand, CanAddKierunekCommand); ExecuteAddCiag = new Commanding(AddCiagCommand, CanAddCiagCommand); ExecuteAddGroup = new Commanding(AddGroupCommand, CanAddGroupCommand); SemesterName = Semestr.GetSemestersNames(); KierunekName = Kierunek.GetKieruneks(); CiagName = Ciag.GetCiags(); GroupName = Grupa.GetGrupas(); }
protected override void OnAttached() { base.OnAttached(); var button = this.AssociatedObject; var command = this._Command = Commanding.GetCommand(button); var parameter = this._Parameter = Commanding.GetParameter(button); this.ArrangeIsEnabled(); command.CanExecuteChanged += this.Command_CanExecuteChanged; button.Click += this.Button_Click; }
public IndexVM(LoginVM loginVm) { _loginVm = loginVm; ExecuteOpenKierunekCommand = new Commanding(AddKierunekCommand, CanAddKierunekCommand); ExecuteOpenSemestrCommand = new Commanding(AddSemesterCommand, CanAddSemesterCommand); ExecuteOpenPrzedmiotCommand = new Commanding(AddPrzedmiotCommand, CanAddPrzedmiotCommand); ExecuteEditStudentCommand = new Commanding(EditProfile, CanEditProfile); ExecuteEditPhotoCommand = new Commanding(EditPhotoCommand, CanEditPhotoCommand); NumeryIndeksow = Student.CurentUserIndexList(_loginVm.CurrentUserId); Logins = Login.GetLogins(_loginVm.CurrentUserId); PhotoSource = Zdjecie.GetZdjecieSource(_loginVm.CurrentUserId); }
public RegistrationLyricsVM(Guid idGrupa, Guid idSemestr) { _idGrupa = idGrupa; _idSemestr = idSemestr; ExecuteAddPrzedmiotCommand = new Commanding(AddPrzedmiotCommand, CanAddPrzedmiotCommand); ExecuteAddPrzedmiotContinueCommand = new Commanding(AddPrzedmiotAndContinueCommand, CanAddPrzedmiotAndContinueCommand); ExecuteAddPrzedmiotNameCommand = new Commanding(AddPrzedmiotNameCommand, CanAddPrzedmiotNameCommand); ExecuteAddTypCommand = new Commanding(AddTypNameCommand, CanAddTypNameCommand); ExecuteAddWykladowcaCommand = new Commanding(AddWykladowcaCommand, CanAddWykladowcaCommand); TypName = Typ_Zajec.GetZajecias(); PrzedmiotName = Przedmiot.GetPrzedmiotsNames(); WykladowcaName = Wykladowca.GetWykladowcas(); }
public void LoadScene(int index) { if (sceneIndex != index) { ClearVoxels(); ClearDisplayEntirely(); while (ships.Count > 0) RemoveShip(); if (sceneIndex >= 0) scenes[sceneIndex].SetActive(false); scenes[index].SetActive(true); worlds = new World[5]; worlds[0] = new World(scenes[index], 16, Vector3.zero, maxLevel, 0, false, Graph.GraphType.CENTER); worlds[1] = new World(worlds[0].space, Graph.GraphType.CORNER); worlds[2] = new World(scenes[index], 16, Vector3.zero, maxLevel, 0, true, Graph.GraphType.CENTER); worlds[3] = new World(worlds[2].space, Graph.GraphType.CORNER); worlds[4] = new World(worlds[2].space, Graph.GraphType.CROSSED); float ext = Mathf.Max(defaultShipSize - 16f / (1 << 8) * Mathf.Sqrt(3) / 2, 0); shipWorld = new World(scenes[index], 16, Vector3.zero, 8, ext, true, Graph.GraphType.CORNER); command = new Commanding(shipWorld); sceneIndex = index; } }
public RegistrationVM(Login studentData) { edycja = true; ExecuteRegisterCommand = new Commanding(CreateUser, CanCreateUser); _studentData = studentData; KrajName = Kraj.GetKrajs(); WojewodztwoName = Wojewodztwo.GetWojewodztwos(); PowiatName = Powiat.GetPowiats(); GminaName = Gmina.GetGminas(); UlicaName = Ulica.GetUlicas(); MiastoName = Nazwa_Miasto.GetMiastos(); StudentData student = new StudentData(); student.loadData(studentData); FirstName = student.Student_Imie; LastName = student.Student_Nazwisko; Telephone = student.Student_Telefon; E_Mail = student.Studetn_E_Mail; Login = student.User_Login; Password = student.Haslo; PasswordRepeat = student.Haslo; NumerDomu = student.Numer_Domu; NumerMieszkania = student.Numer_Mieszkania.ToString(); SelectedUlica = student.Nazwa_Ulica; SelectedMiasto = student.Nazwa_Miasto; Kod1 = student.kod1; Kod2 = student.kod2; SelectedWojewodztwo = student.Nazwa_Wojewodztwo; SelectedPowiat = student.Nazwa_Powiat; SelectedGmina = student.Nazwa_Gmina; SelectedKraj = student.Nazwa_Kraj; Poczta = student.Poczta; _student = student; }
public AddWykladowcaVM() { ExecuteAddWykladowcaCommand = new Commanding(AddWykladowcaCommand, CanAddWykladowcaCommand); }
public Task HandleAsync(Commanding.ICommand command) { When((dynamic)command); return Task.FromResult(new object()); }
public ActionResult SetPassword(Commanding.SetUserPasswordCommand command) { var service = new Commanding.SimpleTwitterCommandServiceClient(); service.SetUserPassword(command); return RedirectToAction("Details", new { id = command.UserID }); }
static void SetProperty(Commanding.SetUserPropertyCommand command) { var service = new Commanding.SimpleTwitterCommandServiceClient(); service.SetUserProperty(command); }
public AddPrzedmiotNameVM() { ExecuteAddPrzedmiotCommand = new Commanding(AddPrzedmiotCommand, CanAddPrzedmiotCommand); }
public AddSemestrNameVM() { ExecuteAddSemestrNameCommand = new Commanding(AddSemestrNameCommand, CanAddSemestrNameCommand); }
public LoginVM() { ExecuteRegistrationCommand = new Commanding(OpenRegistration, CanOpenRegistration); ExecuteLoginCommand = new Commanding(LoginIntoApp, CanLoginIntoApp); ExecuteCancelCommand = new Commanding(CancelApp, CanCancelApp); }
public AddCiagVM() { ExecuteAddCiagCommand = new Commanding(AddCiagCommand, CanAddCiagCommand); StopienStudiowNazwa = StopienStudiow.GetStopienStudiows(); TypStudiowNazwa = TypStudiow.GetTypStudiows(); }
public ApplicationVM() { ExecuteCloseCommand = new Commanding(CloseCurentWindow, CanCloseCurentWindow); ExecuteMinimizeCommand = new Commanding(MinimizeCurentWindow, CanMinimizeCurentWindow); }
public AddGroupVM() { ExecuteAddGrupaCommand = new Commanding(AddGrupaCommand, CanAddGrupaCommand); }
public LoginVM() { ExecuteRegistrationCommand = new Commanding(OpenRegistration,CanOpenRegistration); ExecuteLoginCommand = new Commanding(LoginIntoApp,CanLoginIntoApp); ExecuteCancelCommand = new Commanding(CancelApp,CanCancelApp); }
public AddTypNameVM() { ExecuteAddTypNameCommand = new Commanding(AddTypNameCommand, CanAddTypNameCommand); }
public AddKierunekVM() { ExecuteAddKierunekCommand = new Commanding(AddKierunekCommand, CanAddKierunekCommand); }
protected override void Invoke(object parameter) { var command = Commanding.GetCommand(this.AssociatedObject); command.Execute(null); }