コード例 #1
0
 public static ClsSingeltonPlc CreateInstance(ClsSingeltonPlcParameter PlcParameter)
 {
     if (m_instance == null)
     {
         m_instance = new ClsSingeltonPlc(PlcParameter);
     }
     return(m_instance);
 }
コード例 #2
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();
        }