Пример #1
0
        /// <summary> 导入自动防护规则 </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn_btn_ImportProtectRull_Click(object sender, EventArgs e)
        {
            var f   = AutoProtectionForm.GetUniqueInstance();
            var res = f.ShowDialog();

            if (res == DialogResult.OK)
            {
                _autoSpCriterion = f.ActiveSpCriterion;
            }
        }
Пример #2
0
 public static AutoProtectionForm GetUniqueInstance()
 {
     _uniqueInstance = _uniqueInstance ?? new AutoProtectionForm();
     return(_uniqueInstance);
 }