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");
        }
Example #4
0
        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();
        }
Example #6
0
        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();
        }
Example #7
0
        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();
        }
Example #8
0
        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();
        }
Example #9
0
        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();
        }
Example #10
0
        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();
        }
Example #11
0
        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();
        }
Example #12
0
        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;
        }
Example #13
0
        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);
        }
Example #14
0
        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();
        }
Example #15
0
        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);
        }
Example #16
0
        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 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();
        }
Example #18
0
    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;
        }
    }
Example #19
0
        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;
        }
Example #20
0
        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;
        }
Example #21
0
 public AddWykladowcaVM()
 {
     ExecuteAddWykladowcaCommand = new Commanding(AddWykladowcaCommand, CanAddWykladowcaCommand);
 }
 public Task HandleAsync(Commanding.ICommand command)
 {
     When((dynamic)command);
     return Task.FromResult(new object());
 }
Example #23
0
        public ActionResult SetPassword(Commanding.SetUserPasswordCommand command)
        {
            var service = new Commanding.SimpleTwitterCommandServiceClient();
            service.SetUserPassword(command);

            return RedirectToAction("Details", new { id = command.UserID });
        }
Example #24
0
 static void SetProperty(Commanding.SetUserPropertyCommand command)
 {
     var service = new Commanding.SimpleTwitterCommandServiceClient();
     service.SetUserProperty(command);
 }
Example #25
0
 public AddPrzedmiotNameVM()
 {
     ExecuteAddPrzedmiotCommand = new Commanding(AddPrzedmiotCommand, CanAddPrzedmiotCommand);
 }
Example #26
0
 public AddSemestrNameVM()
 {
     ExecuteAddSemestrNameCommand = new Commanding(AddSemestrNameCommand, CanAddSemestrNameCommand);
 }
Example #27
0
 public LoginVM()
 {
     ExecuteRegistrationCommand = new Commanding(OpenRegistration, CanOpenRegistration);
     ExecuteLoginCommand        = new Commanding(LoginIntoApp, CanLoginIntoApp);
     ExecuteCancelCommand       = new Commanding(CancelApp, CanCancelApp);
 }
Example #28
0
 public AddCiagVM()
 {
     ExecuteAddCiagCommand = new Commanding(AddCiagCommand, CanAddCiagCommand);
     StopienStudiowNazwa   = StopienStudiow.GetStopienStudiows();
     TypStudiowNazwa       = TypStudiow.GetTypStudiows();
 }
Example #29
0
 public ApplicationVM()
 {
     ExecuteCloseCommand = new Commanding(CloseCurentWindow, CanCloseCurentWindow);
     ExecuteMinimizeCommand = new Commanding(MinimizeCurentWindow, CanMinimizeCurentWindow);
 }
Example #30
0
 public ApplicationVM()
 {
     ExecuteCloseCommand    = new Commanding(CloseCurentWindow, CanCloseCurentWindow);
     ExecuteMinimizeCommand = new Commanding(MinimizeCurentWindow, CanMinimizeCurentWindow);
 }
Example #31
0
 public AddGroupVM()
 {
     ExecuteAddGrupaCommand = new Commanding(AddGrupaCommand, CanAddGrupaCommand);
 }
Example #32
0
 public AddSemestrNameVM()
 {
     ExecuteAddSemestrNameCommand = new Commanding(AddSemestrNameCommand, CanAddSemestrNameCommand);
 }
Example #33
0
 public AddPrzedmiotNameVM()
 {
     ExecuteAddPrzedmiotCommand = new Commanding(AddPrzedmiotCommand, CanAddPrzedmiotCommand);
 }
Example #34
0
 public AddGroupVM()
 {
     ExecuteAddGrupaCommand = new Commanding(AddGrupaCommand, CanAddGrupaCommand);
 }
Example #35
0
 public LoginVM()
 {
     ExecuteRegistrationCommand = new Commanding(OpenRegistration,CanOpenRegistration);
     ExecuteLoginCommand = new Commanding(LoginIntoApp,CanLoginIntoApp);
     ExecuteCancelCommand = new Commanding(CancelApp,CanCancelApp);
 }
Example #36
0
 public AddWykladowcaVM()
 {
     ExecuteAddWykladowcaCommand = new Commanding(AddWykladowcaCommand, CanAddWykladowcaCommand);
 }
Example #37
0
 public AddTypNameVM()
 {
     ExecuteAddTypNameCommand = new Commanding(AddTypNameCommand, CanAddTypNameCommand);
 }
Example #38
0
 public AddKierunekVM()
 {
     ExecuteAddKierunekCommand = new Commanding(AddKierunekCommand, CanAddKierunekCommand);
 }
Example #39
0
 public AddCiagVM()
 {
     ExecuteAddCiagCommand = new Commanding(AddCiagCommand, CanAddCiagCommand);
     StopienStudiowNazwa = StopienStudiow.GetStopienStudiows();
     TypStudiowNazwa = TypStudiow.GetTypStudiows();
 }
Example #40
0
        protected override void Invoke(object parameter)
        {
            var command = Commanding.GetCommand(this.AssociatedObject);

            command.Execute(null);
        }
Example #41
0
 public AddKierunekVM()
 {
     ExecuteAddKierunekCommand = new Commanding(AddKierunekCommand, CanAddKierunekCommand);
 }
Example #42
0
 public AddTypNameVM()
 {
     ExecuteAddTypNameCommand = new Commanding(AddTypNameCommand, CanAddTypNameCommand);
 }