Ejemplo n.º 1
0
        public Plan_Work(Interfese.IFront viwe)
        {
            _viwe = viwe;


            myInfo = new Model.Сontainer();
            myInfo.SetSerializer(new Model.XMLSerializer());


            myInfo.Load();

            for (int i = 0; i < myInfo.Count(); i++)
            {
                viwe.WorkList.Add(myInfo.Element(i).Path);
            }

            tempTimer       = new DispatcherTimer();
            tempTimer.Tick += new EventHandler(timer_Tick);
            TimeSpan tempSpan = new TimeSpan(100);

            tempTimer.Interval = tempSpan;



            tempTimer.Start();
        }
Ejemplo n.º 2
0
 public Edit_Item(Interfese.IEdit view)
 {
     _view            = view;
     _view.PoleInfo  += new EventHandler <EventArgs>(PrintElement);
     _view.Edit_Save += new EventHandler <EventArgs>(Edit_Save);
     myInfo           = new Model.Сontainer();
     myInfo.SetSerializer(new Model.XMLSerializer());
     myInfo.Load();
 }
Ejemplo n.º 3
0
        public Add_Item(string Path, DateTime DateThis, Model.Work MyWork, bool[] Days_of_the_week, int Number)
        {
            myInfo = new Model.Сontainer();
            myInfo.SetSerializer(new Model.XMLSerializer());
            myInfo.Load();

            path             = Path;
            dateThis         = DateThis;
            number           = myInfo.Count();
            myWork           = MyWork;
            days_of_the_week = Days_of_the_week;
        }
Ejemplo n.º 4
0
        public Add_Item(Interfese.IAdd view)
        {
            myInfo = new Model.Сontainer();
            myInfo.SetSerializer(new Model.XMLSerializer());
            myInfo.Load();

            path     = view.Path;
            dateThis = view.DateThis;

            number = myInfo.Count();

            myWork           = view.MyWork;
            days_of_the_week = view.Days_of_the_week;

            myInfo.Add(new Model.Info(path, dateThis, myWork, days_of_the_week));
            myInfo.Save();
        }