Пример #1
0
        private void filter(object sender, RoutedEventArgs e)
        {
            InitializeComponent();
            ILBoard ILb = new ILBoard(InterfaceLayer.getBoard(), Filter.Text);

            PresantationBoard Pb = new PresantationBoard(ILb);

            panles.panels = Pb.ToPanelList();

            columns.refresh();
        }
Пример #2
0
        /*
         * public void start()
         * {
         *  File.Delete("Boards.bin");
         *  File.Delete("Tasks.bin");
         *  File.Delete("Users.bin");
         *  DataAcces_Layer.PresistanTasks.load();
         *  DataAcces_Layer.PresistanBoard.load();
         *  DataAcces_Layer.PresistenceUser.load();
         *
         *  InterfaceLayer.registration("*****@*****.**", "aaaAAA1");
         *  InterfaceLayer.login("*****@*****.**", "aaaAAA1");
         *       InterfaceLayer.createTask("asadasd", "asdasd", DateTime.Now, InterfaceLayer.getBoard());
         *     InterfaceLayer.createTask("zzzzz", "aaaaa", DateTime.Now, InterfaceLayer.getBoard());
         *
         *
         *
         * }
         */



        private void refresh()
        {
            ILBoard ILb = new ILBoard(InterfaceLayer.getBoard());

            ILb.Sort(comparer);
            PresantationBoard Pb = new PresantationBoard(ILb);

            panles.panels = Pb.ToPanelList();

            columns.refresh();

            //  Binding binding = new Binding("panels");
            //  BindingOperations.SetBinding(itemControler, ItemsControl.ItemsSourceProperty, binding);

            //   InitializeComponent();
            // binding = new Binding("error");
            //  BindingOperations.SetBinding(this.ErrorsLabel, Label.ContentProperty, binding);
        }