private void Button_Click_2(object sender, RoutedEventArgs e) { BoardMng window = new BoardMng(InterfaceLayer.getBoard() + ""); window.Show(); App.Current.MainWindow = window; this.Close(); }
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(); }
private void delCol(object sender, RoutedEventArgs e) { int id = int.Parse(columns.Columns3.CurrentItem.ToString()); try { InterfaceLayer.DelColumn(InterfaceLayer.getBoard(), id); errors.error = ""; refresh(); } catch (AlmogException exi) { errors.error = (String)exi.Value; } }
/* * 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); }