public static DialogResult ShowSetting(ElectronicScalesControl control)
 {
     using (var dlg = new ElectronicScalesConfigDialog(control))
     {
         return dlg.ShowDialog();
     }
 }
        private ElectronicScalesConfigDialog(ElectronicScalesControl control)
            : this()
        {
            if (control == null)
                throw new ArgumentNullException("control", "构造函数中的参数control不能为空.");

            this._ElectronicScalesControl = control;
        }