public static FactoryGestoreInformazioni GetFactory()
 {
     if (instance == null)
     {
         instance = new FactoryGestoreInformazioni();
     }
     return(instance);
 }
示例#2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     fac = FactoryGestoreInformazioni.GetFactory();
     type = new TypeProviders();
     ProviderVisitorInspector insp = ProviderVisitorInspector.Get() ;
     comboBox1.Items.AddRange(insp.GetListProvider().ToArray());
     comboBox2.Items.AddRange(insp.GetListVisitor().ToArray());
 }
示例#3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            fac  = FactoryGestoreInformazioni.GetFactory();
            type = new TypeProviders();
            ProviderVisitorInspector insp = ProviderVisitorInspector.Get();

            comboBox1.Items.AddRange(insp.GetListProvider().ToArray());
            comboBox2.Items.AddRange(insp.GetListVisitor().ToArray());
        }
 public static FactoryGestoreInformazioni GetFactory()
 {
     if (instance == null)
         instance = new FactoryGestoreInformazioni();
     return instance;
 }