Example #1
0
        public FællesViewmodel()
        {
            Deltagere Deltager = new Deltagere();

            Prisdict2             = new Dictionary <int, double>();
            Prisdict              = new Dictionary <int, double>();
            TilføjNyArbejdsOpgave = new Relaycommand(TilføjMetode, null);
            Prislist              = new ObservableCollection <string>();
            TilføjDeltager        = new Relaycommand(TilføjDeltagerMetode, null);
            BeregnNu              = new Relaycommand(BeregnNuMetode, null);
            TilføjDeltager        = new Relaycommand(TilføjDeltagerMetode, null);
            DeleteDeltager        = new Relaycommand(DeleteDeltagerMetode, null);
            _mandagsliste         = new DeltagerList();
            _tirsdagsliste        = new DeltagerList();
            _onsdagsliste         = new DeltagerList();
            _torsdagsliste        = new DeltagerList();
            _arbejdsListe         = new ArbejdsOpgaveListe();
            Combobox              = new List <string>();
            Combobox.Add("Mandag");
            Combobox.Add("Tirsdag");
            Combobox.Add("Onsdag");
            Combobox.Add("Torsdag");
            localfolder = ApplicationData.Current.LocalFolder;
            HentdataFraDiskAsyncMandag();
            HentdataFraDiskAsyncTirsdag();
            HentdataFraDiskAsyncOnsdag();
            HentdataFraDiskAsyncTorsdag();

            HentdataFraDiskAsyncArbejdsopgaver();
        }
Example #2
0
        public EventViewModel()
        {
            DateTime       dt    = System.DateTime.Now;
            DateTimeOffset _date = new DateTimeOffset(dt.Year, dt.Month, dt.Day, 0, 0, 0, 0, new
                                                      TimeSpan());
            TimeSpan _time = new TimeSpan(dt.Hour, dt.Minute, dt.Second);

            CreateEventCommand = new Relaycommand(eventHandler.CreateEvent, null);
            DeleteEventCommand = new Relaycommand(eventHandler.RemoveEvent, EmptyCheck);
        }
Example #3
0
        public Viewmodel()
        {
            Guest_No = Guest.Guest_No;
            Name     = Guest.Name;
            Address  = Guest.Address;
            GuestHandler GuestHandlerInstance = new GuestHandler();

            AddGuestCommand    = new Relaycommand(GuestHandlerInstance.AddGuest);
            DeleteGuestCommand = new Relaycommand(GuestHandlerInstance.RemoveGuest);
            EditGuestCommand   = new Relaycommand(GuestHandlerInstance.EditGuest);
        }
 public MainWindowViewModel()
 {
     _model         = new SwarmServerFunctions();
     _logic         = new TcpServereConnect();
     _connection    = new TcpServereClientt();
     ConnectCommand = new Relaycommand(ConnectEcecute, CanEcecuteConnect);
     SendCommand    = new Relaycommand(SendEcecute, CanEcecuteSend);
     _models        = new ObservableCollection <string>();
     Visibility1    = Visibility.Hidden;
     ClosedCommand  = new Relaycommand(ClosedEcecute, CanClosed);
 }
Example #5
0
 public EventlistViewmodel()
 {
     _OpretEvent = new Relaycommand(OpretEventMetode);
 }