Exemplo n.º 1
0
        public GroupBox CreateButtonsGroup(string bookType)
        {
            Grid g = FormCreator.CreateGrid(new Thickness(0, 0, 0, 0));

            Button btnTemp = FormCreator.CreateButton("BtnAdd", "Add", new Thickness(10, 0, 0, 0), BtnAdd_Click);

            btnTemp.IsEnabled = LoaderManager.resultList.Contains(bookType);
            g.Children.Add(btnTemp);

            g.Children.Add(FormCreator.CreateButton("BtnRemove", "Remove", new Thickness(75, 0, 0, 0), BtnRemove_Click));

            btnTemp           = FormCreator.CreateButton("BtnSubmit", "Submit", new Thickness(140, 0, 0, 0), BtnSubmit_Click);
            btnTemp.IsEnabled = LoaderManager.resultList.Contains(bookType);
            g.Children.Add(btnTemp);
            g.Children.Add(FormCreator.CreateButton("BtnSerialize", "Serialize", new Thickness(205, 0, 0, 0), BtnSerialize_Click));
            g.Children.Add(FormCreator.CreateButton("BtnDeserialize", "Deserialize", new Thickness(270, 0, 0, 0), BtnDeserialize_Click));

            GroupBox gb = FormCreator.CreateGroupBox("ButtonGroup", "", new Thickness(520, 0, 0, 0), 352, 362);

            gb.Content = g;

            return(gb);
        }