Пример #1
0
        public OrderCliente(ClienteItem newItem, string title)
        {
            InitializeComponent();


            dataGrid2.ShowGroupPanel = false;
            llenargrid();

            if (newItem == null)
            {
                rate.Value = 0.00;

                newItem = new ClienteItem();
            }

            //item.Text = newItem.Codigo;

            //item_Copy.Text = newItem.Descripcion;

            //rate.Value = 00.00;
            //m_invoiceItem = newItem;
            //Cantidad.Value = newItem.Cantidad;

            m_invoiceItemC = newItem;


            this.DataContext = m_invoiceItemC;
        }
Пример #2
0
        void myDialog_UpdateRequestedc(object sender, EventArgs e)
        {
            ClienteItem itemc = (e as FieldsUpdateEventArgss).UpdatedFields;

            AddItemc(itemc, false);


            m_fieldsCliente.Close();
        }
Пример #3
0
 public void AddItemc(ClienteItem item, bool addToGridAlone)
 {
     txtradial.Text = item.Numero_De_Cliente.ToString();
     txtrfc.Text    = item.RFC.ToString();
 }