示例#1
0
        private void btnAd_Click(object sender, EventArgs e)
        {
            ExLogisticModel newBrandModel = new ExLogisticModel();

            using (AddUpdateExFrm newBrand = new AddUpdateExFrm(MaintainType.New, newBrandModel))
            {
                var dialogResult = newBrand.ShowDialog();
                if (dialogResult == DialogResult.OK)
                {
                    InitControls();
                }
            }
        }
示例#2
0
 private void btnUp_Click(object sender, EventArgs e)
 {
     if (this.dataGridView1.SelectedRows.Count > 0)
     {
         var brand = this.dataGridView1.SelectedRows[0].Tag as ExLogisticModel;
         using (AddUpdateExFrm modify = new AddUpdateExFrm(MaintainType.Update, brand))
         {
             var dialogResult = modify.ShowDialog();
             if (dialogResult == DialogResult.OK)
             {
                 InitControls();
             }
         }
     }
 }