//public CamHelper CamHelper = new CamHelper();
        // public SoundHelper SoundHelper = new SoundHelper();
        public static AppGlobalContext GetInstance()
        {
            if (_formFactory == null)
            {
                lock (typeof(AppGlobalContext))
                {
                    if (_formFactory == null)
                    {
                        _formFactory = new AppGlobalContext();

                    }
                }
            }
            return (AppGlobalContext)_formFactory;
        }
示例#2
0
 public AdminForm(FormFactory currentFormFactory)
     : base(currentFormFactory)
 {
     InitForm(null);
 }
示例#3
0
 public AdminForm(FormFactory currentFormFactory, FormMessage someMessage)
     : base(currentFormFactory)
 {
     InitForm(someMessage);
 }
示例#4
0
 public MainForm(FormFactory currentFormFactory, FormMessage formMessage)
 {
     InitThisForm();
 }
示例#5
0
 public MainForm(FormFactory currentFormFactory)
     : base(currentFormFactory)
 {
     InitThisForm();
 }
示例#6
0
 public LoginForm(FormFactory currentFormFactory, FormMessage formMessage)
     : base(currentFormFactory)
 {
     InitThisForm(formMessage);
 }
示例#7
0
 public LoginForm(FormFactory currentFormFactory)
     : base(currentFormFactory)
 {
     InitThisForm(null);
 }
示例#8
0
 public BaseForm(FormFactory currentFormFactory)
 {
     CheckForIllegalCrossThreadCalls = false;
     CurrentFormFactory = currentFormFactory;
     CurrentFormFactory.RegisterForm(this);
 }
示例#9
0
 public AlertForm(FormFactory currentFormFactory, FormMessage someMessage)
     : base(currentFormFactory)
 {
     InitThisForm(someMessage);
 }
示例#10
0
 public WarningForm(FormFactory currentFormFactory)
     : base(currentFormFactory)
 {
     InitThisForm(null);
 }