Ejemplo n.º 1
0
 public FormCompany(bool ForTransfer)
 {
     InitializeComponent();
     m_ForTransfer               = ForTransfer;
     DBConfigBS.DataSource       = DBConfigData.SelectAllCompany();
     DBConfigBS.PositionChanged += DBConfigBS_PositionChanged;
     DBConfigBS_PositionChanged(null, null);
 }
Ejemplo n.º 2
0
        public FormLogin()
        {
            InitializeComponent();
            DBConfigBS.DataSource       = DBConfigData.SelectAllCompany();
            DBConfigBS.PositionChanged += DBConfigBS_PositionChanged;
            DBConfigBS_PositionChanged(null, null);

            DBConfigYearsBS.PositionChanged += DBConfigYearsBS_PositionChanged;
            DBConfigYearsBS_PositionChanged(null, null);
        }
Ejemplo n.º 3
0
        void DBConfigBS_PositionChanged(object sender, EventArgs e)
        {
            DBConfigYearsBS.Clear();
            if (DBConfigBS.Count == 0)
            {
                return;
            }

            DBConfigYearsBS.DataSource = DBConfigData.SelectAllYear(((DBConfigEntity)DBConfigBS.Current).CompanyNameLatin);
        }