Exemplo n.º 1
0
 private void InitRegForm()
 {            
     Mediator.CurrentCreditor = comboBox_creditors.Text;
     decimal creditorId = LetterManager.GetCreditorIdByTrimedAlias(comboBox_creditors.SelectedItem.ToString());
     Mediator.RegList = LetterManager.GetRegListByCreditorId(creditorId); 
     Form_regs fr = new Form_regs();
     //fr.FormBorderStyle = FormBorderStyle.FixedDialog;
     //fr.MaximizeBox = false;
     //fr.MinimizeBox = false;
     //fr.StartPosition = FormStartPosition.CenterScreen;
     fr.ShowDialog();
 }
Exemplo n.º 2
0
        void InitRegsCombo()
        {
            comboBox_regs.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
            comboBox_regs.AutoCompleteSource = AutoCompleteSource.ListItems;
            decimal creditorId = LetterManager.GetCreditorIdByTrimedAlias(comboBox_creditors.SelectedItem.ToString());
            List<Reg> regList = LetterManager.GetRegListByCreditorId(creditorId);
            Mediator.RegList = regList;

            foreach (var item in regList)
            {
                comboBox_regs.Items.Add(item.Name + ", ID - " + item.Id);
            }
        }