Ejemplo n.º 1
0
        public ClsPDF()
        {
            this.m_ListBorders   = new List <ClsPDFBorders>();
            this.m_ListFootArea  = new List <ClsPDFArea>();
            this.m_ListHeadArea  = new List <ClsPDFArea>();
            this.m_ListPrintArea = new List <ClsPDFArea>();


            this.m_language  = ClsSingeltonLanguage.CreateInstance();
            this.m_Rectangle = new Rectangle();

            this.m_XBrush = new XSolidBrush(XBrushes.Black);

            this.m_XPen          = new XPen(Color.Black, 1);
            this.m_FileName      = "pdftest.pdf";
            this.m_FontName      = "Arial";
            this.m_Size1         = 22;
            this.m_Size2         = 18;
            this.m_Size3         = 12;
            this.m_Size4         = 10;
            this.m_FontSize1Bold = new XFont(this.m_FontName, this.m_Size1, XFontStyle.Bold);
            this.m_FontSize2Bold = new XFont(this.m_FontName, this.m_Size2, XFontStyle.Bold);
            this.m_FontSize3Bold = new XFont(this.m_FontName, this.m_Size3, XFontStyle.Bold);
            this.m_FontSize4Bold = new XFont(this.m_FontName, this.m_Size4, XFontStyle.Bold);

            this.m_PdfDokument = new PdfDocument();
        }
Ejemplo n.º 2
0
 /**
  * \brief Konstruktor
  *
  * Funktionsbeschreibung: Erzeugen der Komponenten, Instanz fuer den Formularmanger anlegen und Formular anmelden.
  */
 public FrmLanguage()
 {
     this.InitializeComponent();
     this.m_parameter       = ClsSingeltonParameter.CreateInstance();
     this.m_formularManager = ClsSingeltonFormularManager.CreateInstance(this, this.Name.ToString());
     this.m_language        = ClsSingeltonLanguage.CreateInstance(this);
 }
Ejemplo n.º 3
0
 public static ClsSingeltonLanguage CreateInstance()
 {
     if (m_instance == null)
     {
         m_instance = new ClsSingeltonLanguage();
     }
     return(m_instance);
 }
Ejemplo n.º 4
0
 public static ClsSingeltonLanguage CreateInstance(Form formular)
 {
     if (m_instance == null)
     {
         m_instance = new ClsSingeltonLanguage();
     }
     m_instance.AddAllComponents(formular.Controls);
     return(m_instance);
 }
Ejemplo n.º 5
0
        List <CompBitButton> m_buttonList;//!<Liste fuer die Buttons im Menu

        /**
         * \brief Konstruktor
         *
         * Funktionsbeschreibung: Erzeugen der Buttonliste und am Formularmanager anmelden
         */
        public FrmMenu()
        {
            this.InitializeComponent();
            this.m_parameter       = ClsSingeltonParameter.CreateInstance();
            this.m_formularManager = ClsSingeltonFormularManager.CreateInstance(this, this.Name.ToString());
            this.m_language        = ClsSingeltonLanguage.CreateInstance(this);
            this.m_buttonList      = new List <CompBitButton>();
            this.ClrButtons();
        }
Ejemplo n.º 6
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");
 }
Ejemplo n.º 7
0
        protected void CreateFormular(FormularType formularType)
        {
            this.m_formularType = formularType;

            if (formularType == FormularType.Parameter || formularType == FormularType.Info || formularType == FormularType.Service)
            {
                this.LoadParameter();
            }
            if (formularType == FormularType.Error || formularType == FormularType.Release)
            {
                this.LoadError();
            }


            this.m_varCollect = ClsSingeltonVariablesCollecter.CreateInstance();
            this.m_language   = ClsSingeltonLanguage.CreateInstance(this);
        }
Ejemplo n.º 8
0
 /**
  * \brief Konstruktor
  *
  * Funktionsbeschreibung: Komponenten erzeugen und an den Formularmanager anmelden
  */
 public FrmKeyBoard()
 {
     InitializeComponent();
     this.BtnBS.Click      += new System.EventHandler(this.BtnBS_Click);
     this.BtnNumber0.Click += new System.EventHandler(this.KeyBoard_Click);
     this.BtnNumber1.Click += new System.EventHandler(this.KeyBoard_Click);
     this.BtnNumber2.Click += new System.EventHandler(this.KeyBoard_Click);
     this.BtnNumber3.Click += new System.EventHandler(this.KeyBoard_Click);
     this.BtnNumber4.Click += new System.EventHandler(this.KeyBoard_Click);
     this.BtnNumber5.Click += new System.EventHandler(this.KeyBoard_Click);
     this.BtnNumber6.Click += new System.EventHandler(this.KeyBoard_Click);
     this.BtnNumber7.Click += new System.EventHandler(this.KeyBoard_Click);
     this.BtnNumber8.Click += new System.EventHandler(this.KeyBoard_Click);
     this.BtnNumber9.Click += new System.EventHandler(this.KeyBoard_Click);
     this.m_parameter       = ClsSingeltonParameter.CreateInstance();
     this.m_formularManager = ClsSingeltonFormularManager.CreateInstance(this, this.Name.ToString());
     this.m_language        = ClsSingeltonLanguage.CreateInstance(this);
 }
Ejemplo n.º 9
0
        private ClsSingeltonPlc(ClsSingeltonPlcParameter PlcParameter)
        {
            this.m_errorCounter = 0;
            this.m_WriteValues  = new Queue <ClsSingeltonPlcWriteDatas>();
            this.m_parameter    = ClsSingeltonParameter.CreateInstance();
            this.m_language     = ClsSingeltonLanguage.CreateInstance();

            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_DatenBytes = new byte[0];

            this.m_FlagGoOn = false;

            this.m_DatabasesInfo   = new Hashtable();
            this.m_DatabasesNr     = new List <int>();
            this.m_SymbolInfo      = new Hashtable();
            this.m_DatabasesValues = new Hashtable();

            this.m_InfoThread = new Hashtable();


            this.m_Daten              = new List <ClsSingeltonPlcDatas>();
            this.m_Value              = new List <string>();
            this.m_TimerRead          = new System.Windows.Forms.Timer();
            this.m_TimerRead.Enabled  = false;
            this.m_TimerRead.Interval = 100;
            this.m_TimerRead.Tick    += TimerRead_Tick;

            this.m_TimerPlc          = new System.Windows.Forms.Timer();
            this.m_TimerPlc.Enabled  = true;
            this.m_TimerPlc.Interval = 1000;
            this.m_TimerPlc.Tick    += TimerPlc_Tick;

            this.m_IP   = PlcParameter.IP;
            this.m_Rack = Convert.ToInt32(PlcParameter.Rack);
            this.m_Slot = Convert.ToInt32(PlcParameter.Slot);

            this.m_ProgressBar = PlcParameter.ProgBar;

            this.m_LblStatus = PlcParameter.LblStatus;
            this.m_BtnStart  = PlcParameter.BtnStart;
            this.m_BtnStopp  = PlcParameter.BtnStopp;
            this.m_LblPlc    = PlcParameter.LblPlc;

            this.m_BackgroundWorkerPlcRead = new BackgroundWorker();
            this.m_BackgroundWorkerPlcRead.WorkerReportsProgress      = true;
            this.m_BackgroundWorkerPlcRead.WorkerSupportsCancellation = true;
            this.m_BackgroundWorkerPlcRead.DoWork             += BackgroundWorkerPlcRead_DoWork;
            this.m_BackgroundWorkerPlcRead.ProgressChanged    += BackgroundWorkerPlcRead_ProgressChanged;
            this.m_BackgroundWorkerPlcRead.RunWorkerCompleted += BackgroundWorkerPlcRead_RunWorkerCompleted;

            m_VarCollect  = ClsSingeltonVariablesCollecter.CreateInstance();
            m_DataBinding = ClsSingeltonDataBinding.CreateInstance();

            this.ButtonVisibleOnOff(this.m_BtnStart, true);
            this.ButtonVisibleOnOff(this.m_BtnStopp, false);
            this.SetInfo(this.m_LblStatus, "Wait..");
            this.m_PlcState = 0;

            this.LoadPlcitems();
        }