Example #1
0
        public Body()
        {
            panelHandler = new PanelHandler();
            InitializeComponent();
            ActivateCards();
            BindList(currentType, DirectoryDatabaseManagement.RefreshCombobox());
            PopulateDisplay();
            addCardCopiesIn.Text = "" + 1;
            addCardSlotText.Text = "";
            addCardPageText.Text = "" + currentPage;
            addPageCB.Text       = (string)currentType.SelectedItem;

            //Setup Function Icons
            trashIcon.Visible         = false;
            changePictureIcon.Visible = false;

            //DropPanel things
            hideHeight     = panelDA.Height;
            panelDA.Height = AButton.Height + 1;

            //Console.WriteLine(this.Controls.Count);

            MonsterElement ce  = new MonsterElement();
            MonsterElement ce2 = new MonsterElement("ai6", "hi", "hi", "hi", "hi", "hi", 1);
            MonsterElement ce3 = new MonsterElement("ai67", "hi", "hi", "hi", "hi", "hi", 1);
            MonsterElement ce4 = (MonsterElement)ce3.GetCopy();

            Console.WriteLine(ce3.GetName() + " < " + ce2.GetName() + " : " + (ce3 < ce2));
            Console.WriteLine("ai6".CompareTo("hi3"));
            Console.WriteLine(" ce4 : " + ce4.GetName());
        }
Example #2
0
 private void AddTypeFolder_Click(object sender, EventArgs e)
 {
     DirectoryDatabaseManagement.AddCardType(addTypeText.Text);
     BindList(currentType, DirectoryDatabaseManagement.RefreshCombobox());
 }
Example #3
0
 private void AddPageButton_Click(object sender, EventArgs e)
 {
     DirectoryDatabaseManagement.AddPage(GetNewPage());
     UpdateMaxPageLabel();
 }