Esempio n. 1
0
        public void AddPublisher()
        {
            Text = "Lägg till nytt förlag...";

            var addPublisher = new UserControlAddOrEditPublishers {
                Dock = DockStyle.Fill
            };

            Size = addPublisher.Size;
            Controls.Add(addPublisher);
        }
Esempio n. 2
0
        public void EditPublisher(Förlag publisher)
        {
            Text = "Ändra förlag...";

            var editPublisher = new UserControlAddOrEditPublishers {
                Dock = DockStyle.Fill
            };

            Size = editPublisher.Size;
            Controls.Add(editPublisher);
            editPublisher.LoadPublisher(publisher);
        }