private void lblExParameter_Click(object sender, EventArgs e) { var ex = new ExampleModel(); ex.ExTitle = ExampleType.Example; ex.ExType = ExampleType.Parameter; ex.ExHeader = ExampleType.Parameter + " " + ExampleType.Example; ExampleForm exf = new ExampleForm(ex); exf.Show(); }
private void lblExSingleText_Click(object sender, EventArgs e) { var ex = new ExampleModel(); ex.ExTitle = ExampleType.Example; ex.ExType = ExampleType.SingleText; ex.ExHeader = ExampleType.SingleText + " " + ExampleType.Example; ExampleForm exf = new ExampleForm(ex); exf.Show(); }
private void lblExConcat_Click(object sender, EventArgs e) { var ex = new ExampleModel(); ex.ExTitle = ExampleType.Example; ex.ExType = ExampleType.Concut; ex.ExFooter = "Example from table design"; ex.ExHeader = ExampleType.Concut + " " + ExampleType.Example; ExampleForm exf = new ExampleForm(ex); exf.Show(); }
private void lblExLinkReport_Click(object sender, EventArgs e) { var ex = new ExampleModel(); ex.ExTitle = ExampleType.Example; ex.ExType = ExampleType.LinkReport; ex.ExFooter = "Example from Link Report"; ex.ExHeader = ExampleType.LinkReport + " " + ExampleType.Example; ex.ExPropHeight = 80; ex.ExPropWidth = 600; ExampleForm exf = new ExampleForm(ex); exf.Show(); }
/// <summary> /// Create another form next to the main form when main form loads /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void TableLayoutPanel_Load(object sender, EventArgs e) { //if this is the main form of an application if (Application.OpenForms.Count != 1) { return; } //create and show another form var another = new ExampleForm { StartPosition = FormStartPosition.Manual, Location = new Point(Location.X + Width, Location.Y) }; another.Show(); }