private void Form1_Load(object sender, EventArgs e) { var clipboardobserver = new ClipboardObserver(); clipboardobserver.ClipboardTextChanged += clipboardobserver_ClipboardTextChanged; using(var dbcontext = new CameeContext()) { var projectcodes = dbcontext.Projecten.Select(pd => pd.ProjectCode); cmbProjectcodes.Items.AddRange(projectcodes.ToArray()); } Hide(); }
private void frmHoofd_Loaded(object sender, RoutedEventArgs e) { var clipboardobserver = new ClipboardObserver(); clipboardobserver.ClipboardTextChanged += clipboardobserver_ClipboardTextChanged; }