Esempio n. 1
0
 protected override void InitLayout()
 {
     base.InitLayout();
     if (!this.DesignMode && this.FillAtStartup)
     {
         this.Fill();
         if (this.AddEmptyValue)
         {
             DataView view = ComboHelper.GetComboValues(this.DataSet, "RADNIK", "IDRADNIK", "SPOJENOPREZIME", true, "<" + Deklarit.Resources.Resources.Empty + ">");
             this.DataSource    = null;
             this.DisplayMember = "Name";
             this.ValueMember   = "Id";
             this.DataSource    = view;
         }
     }
 }
Esempio n. 2
0
 protected override void InitLayout()
 {
     base.InitLayout();
     if (!this.DesignMode && this.FillAtStartup)
     {
         this.Fill();
         if (this.AddEmptyValue)
         {
             DataView view = ComboHelper.GetComboValues(this.DataSet, "PLVRSTEIZNOSA", "IDPLVRSTEIZNOSA", "NAZIVPLVRSTEIZNOSA", true, "<" + Deklarit.Resources.Resources.Empty + ">");
             this.DataSource    = null;
             view.Sort          = "Name";
             this.DisplayMember = "Name";
             this.ValueMember   = "Id";
             this.DataSource    = view;
         }
     }
 }