Example #1
0
 public static void SetFromProcess(int Bfb, string Introduce, Form baseFrom = null)
 {
     if (baseFrom == null)
     {
         return;
     }
     if (baseFrom.Tag is FridenlySWindow)
     {
         FridenlySWindow fsw = (FridenlySWindow)baseFrom.Tag;
         fsw.SetProcess(Bfb, Introduce);
     }
 }
Example #2
0
        public static void LockFrom(Form baseFrom = null)
        {
            if (baseFrom == null)
            {
                return;
            }
            baseFrom.Enabled = false;
            FridenlySWindow fsw = new FridenlySWindow();

            baseFrom.Tag = fsw;
            SetParent(fsw.Handle, baseFrom.Handle);
            fsw.Show();
        }
Example #3
0
 public static void UnLockFrom(Form baseFrom = null)
 {
     if (baseFrom == null)
     {
         return;
     }
     baseFrom.Enabled = true;
     baseFrom.Activate();
     if (baseFrom.Tag is FridenlySWindow)
     {
         FridenlySWindow fsw = (FridenlySWindow)baseFrom.Tag;
         fsw.Close();
         baseFrom.Tag = null;
     }
 }