예제 #1
0
        private void UpdateContract_Load(object sender, EventArgs e)
        {
            clEmt = new CEmitent(config);
            lst   = clEmt.GetData(1);

            buttonOK.Enabled     = false;
            buttonCancel.Enabled = false;

            log         = new XLog();
            log.DirName = config.logpath;
            inpath      = config.inpath;
        }
예제 #2
0
        private void init_lst()
        {
            try
            {
                lst = clEmt.GetData(1);

                checkedListBoxEmt.Items.Clear();

                foreach (STEmitent item in lst)
                {
                    checkedListBoxEmt.Items.Add(item.name, true);
                }
            }
            catch (Exception ex) { MessageBox.Show(ex.TargetSite + " " + ex.Message, "Ошибка!", MessageBoxButtons.OK, MessageBoxIcon.Error); }
        }