示例#1
0
 /// <summary>
 /// Creates the car estimation.
 /// </summary>
 /// Created by SMK 
 public void CreateCarEstimation(Type t, Guid para)
 {
     var mini = new FrmMiniSearch(this);
     if (mini.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
     {
         ShowForm(typeof(FrmCarEstimation), Guid.Empty);
         // ShowForm(typeof(FrmMeterialList), null);
     }
 }
示例#2
0
 /// <summary>
 /// Edits the car estimation.
 /// </summary>
 /// <param name="id">The id.</param>
 /// Created by SMK 
 public void EditCarEstimation(Guid? id)
 {
     if (!id.HasValue)
     {
         var mini = new FrmMiniSearch(this);
         if (mini.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
         {
             ShowForm(typeof(FrmCarEstimation), id);
             ShowForm(typeof(FrmMeterialList), null);
         }
     }
     else
     {
         ShowForm(typeof(FrmCarEstimation), id);
     }
 }