public FormDefinePatient() { InitializeComponent(); Methods.SetWindowsIcon(this); UCDefinePatientMainInfo ucPatient = new UCDefinePatientMainInfo(); ucPatient.Dock = DockStyle.Fill; this.Controls.Add(ucPatient); ucPatient.SetAcceptCancelButtons(this); ucPatient.Disposed += delegate { this.Close(); }; string vbCrLf = ""; Console.WriteLine("Standard Numeric Format Specifiers"); string s = String.Format("(C) Currency: . . . . . . . . {0:C}" + vbCrLf + "(D) Decimal:. . . . . . . . . {0:D}" + vbCrLf + "(E) Scientific: . . . . . . . {1:E}" + vbCrLf + "(F) Fixed point:. . . . . . . {1:F}" + vbCrLf + "(G) General:. . . . . . . . . {0:G}" + vbCrLf + " (default):. . . . . . . . {0} (default = 'G')" + vbCrLf + "(N) Number: . . . . . . . . . {0:N0}" + vbCrLf + "(P) Percent:. . . . . . . . . {1:P}" + vbCrLf + "(R) Round-trip: . . . . . . . {1:R}" + vbCrLf + "(X) Hexadecimal:. . . . . . . {0:X}" + vbCrLf, -12223, -123.45F); Console.WriteLine(s); }
public FormDefinePatient(Patient p) { InitializeComponent(); UCDefinePatientMainInfo ucPatient = new UCDefinePatientMainInfo(p); ucPatient.Dock = DockStyle.Fill; this.Controls.Add(ucPatient); ucPatient.SetAcceptCancelButtons(this); ucPatient.Disposed += delegate { this.Close(); }; }