コード例 #1
0
 public static ClsSingeltonUserManagement CreateInstance()
 {
     if (m_instance == null)
     {
         m_instance = new ClsSingeltonUserManagement();
     }
     return(m_instance);
 }
コード例 #2
0
 public static ClsSingeltonUserManagement CreateInstance(Form formular)
 {
     if (m_instance == null)
     {
         m_instance = new ClsSingeltonUserManagement();
     }
     m_instance.AddAllComponents(formular.Controls);
     return(m_instance);
 }
コード例 #3
0
 public FrmPassword()
 {
     InitializeComponent();
     this.m_parameter       = ClsSingeltonParameter.CreateInstance();
     this.m_formularManager = ClsSingeltonFormularManager.CreateInstance(this, this.Name.ToString());
     this.m_language        = ClsSingeltonLanguage.CreateInstance(this);
     this.m_userManagement  = ClsSingeltonUserManagement.CreateInstance();
     this.m_users           = new List <string>();
     this.m_users.Clear();
     this.m_users.Add("Ausgeloggt");
     this.m_users.Add("Operator");
     this.m_users.Add("Einrichter");
     this.m_users.Add("Service");
 }
コード例 #4
0
        public FrmParameter()
        {
            InitializeComponent();
            this.m_KeyCount         = 0;
            this.m_plcItemList      = new Hashtable();
            this.m_userManagement   = ClsSingeltonUserManagement.CreateInstance();
            this.m_parameter        = ClsSingeltonParameter.CreateInstance();
            this.m_plc              = ClsSingeltonPlc.GetInstance();
            this.m_sqliteConnection = new SQLiteConnection();
            this.m_sqliteConnection.ConnectionString = this.m_parameter.ConnectionString;
            this.m_sqliteConnection.Open();

            this.m_sqliteCommand = new SQLiteCommand(this.m_sqliteConnection);


            this.m_dataBinding = ClsSingeltonDataBinding.CreateInstance();
        }