public static void Main() { ExampleForm wikibooksForm = new ExampleForm(); wikibooksForm.Text = "I Love Wikibooks"; // specify title of the form wikibooksForm.Width = 400; // width of the window in pixels wikibooksForm.Height = 300; // height in pixels Application.Run(wikibooksForm); // display the form }
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(); }
public IActionResult Form() { var form = new ExampleForm(); if (Request.Method == HttpMethods.POST) { return(new JsonResult(form.Submit())); } else { form.Bind(); return(new TemplateResult("zkweb.examples/form.html", new { form })); } }
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(); }
public DataManagement(ExampleForm exampleForm) { this.exampleForm = exampleForm; }
public IActionResult TestHtmlHelperSubmit(ExampleForm form) { _logger.LogCritical(form.ToString()); return(RedirectToAction(nameof(TestHtmlHelper))); }
void doWork(object sender, DoWorkEventArgs e) { ExampleForm f = e.Argument as ExampleForm; f.Hello(); }
public static void Main(string[] args) { ExampleForm exampleForm = new ExampleForm(); Application.Run(exampleForm); }
public Query(ExampleForm exampleForm) { this.exampleForm = exampleForm; }
public HomeFolder(ExampleForm exampleForm) { // TODO: Complete member initialization this.exampleForm = exampleForm; }
public ActionResult Index(ExampleForm form) { return View(); }
public ActionResult Index(ExampleForm form) { return(View()); }