/// <summary> /// Set initial form settings /// </summary> private void initialiseForm() { this.XmlLoader = new xmlLoader(this); this.Text = XmlLoader.getFormTitle(); this.BackColor = XmlLoader.getFormColor(); this.Size = XmlLoader.getFormSize(); this.MinimumSize = XmlLoader.getMinimumFormSize(); this.StartPosition = FormStartPosition.CenterScreen; setopenFileSettings(); }
/// <summary> /// Loads form data from the xml file /// </summary> private void initialiseForm() { this.XmlLoader = new xmlLoader(this); // Set form properties this.Text = XmlLoader.getFormTitle(); this.BackColor = XmlLoader.getFormColor(); this.Size = prevForm.Size; this.WindowState = prevForm.WindowState; this.Location = prevForm.Location; this.MinimumSize = XmlLoader.getMinimumFormSize(); // set specific object properties setText(); // Set colors setBoxLabelColor(); setLabelColor(); // set locations and sizes of elements updateLocations(); updateSizes(); }
/// <summary> /// Loads form data from the xml file /// </summary> private void initialiseForm() { this.XmlLoader = new xmlLoader(this); // Set form properties this.Text = XmlLoader.getFormTitle(); this.BackColor = XmlLoader.getFormColor(); this.Size = prevForm.Size; this.WindowState = prevForm.WindowState; this.Location = prevForm.Location; this.MinimumSize = XmlLoader.getMinimumFormSize(); }