コード例 #1
0
        public AlarmProcess(ProcessReceiver m)
        {
            main = m;
            log  = new LogCls();

            logMsg = new LogMessageCallback(main.setLogMessage);
        }
コード例 #2
0
        public StatusProcess(ProcessReceiver m)
        {
            main = m;
            log  = new LogCls();

            stsLog = new LogMessageCallback(main.setLogMessage);
        }
コード例 #3
0
        private const int cCaption = 62;  // 2;   // Caption bar height;

        public WindLidarServer()
        {
            InitializeComponent();

            log = new LogCls();
            //this.Text = "";
            //this.ControlBox = false;

            this.FormBorderStyle = FormBorderStyle.None;
            this.DoubleBuffered  = true;
            this.SetStyle(ControlStyles.ResizeRedraw, true);

            process = null;

            btnStop.Enabled = false;

            txtIP.Text   = ParamInitInfo.Instance.m_ftpIP;                   // UWA FTP IP Address
            txtPort.Text = ParamInitInfo.Instance.m_ftpPort;                 // UWA FTP Port
            txtID.Text   = ParamInitInfo.Instance.m_ftpUser;                 // UWA FTP User
            txtPass.Text = ParamInitInfo.Instance.m_ftpPass;                 // UWA FTP User Password

            txtListenPort.Text    = ParamInitInfo.Instance.m_listenPort;     // Listen Port
            txtClientRcvPort.Text = ParamInitInfo.Instance.m_clientRcvPort;  // Client Receive Port
            txtLocalSendPort.Text = ParamInitInfo.Instance.m_localPort;      // Local Port
            txtDestPort.Text      = ParamInitInfo.Instance.m_dataclientport; // 관측데이터에 대한 수신결과 전송 Port

            txtDBName.Text     = ParamInitInfo.Instance.m_dbName;
            txtDBHost.Text     = ParamInitInfo.Instance.m_dbHost;
            txtDBPort.Text     = ParamInitInfo.Instance.m_dbPort;
            txtDBUserID.Text   = ParamInitInfo.Instance.m_dbUser;
            txtDBUserPass.Text = ParamInitInfo.Instance.m_dbPass;

            txtFtpThreadTime.Text = ParamInitInfo.Instance.m_ftpThreadTime;
            txtStsThreadTime.Text = ParamInitInfo.Instance.m_stsThreadTime;


            createStatusBar();
            stList = new List <StsInfo>();
            ftList = new List <FtsInfo>();

            // 초기 세팅값
            defaultClear();


            // test image
            //ResourceManager rm = Properties.Resources.ResourceManager;
            // Bitmap myImage = (Bitmap)rm.GetObject("off");

            panel13211.BackgroundImage       = Properties.Resources.btn_off; //.off;
            panel13211.BackgroundImageLayout = ImageLayout.Stretch;

            panel13206.BackgroundImage       = Properties.Resources.btn_off;
            panel13206.BackgroundImageLayout = ImageLayout.Stretch;

            panel13210.BackgroundImage       = Properties.Resources.btn_off;
            panel13210.BackgroundImageLayout = ImageLayout.Stretch;

            panel1.BackgroundImage       = Properties.Resources.ridar2;
            panel1.BackgroundImageLayout = ImageLayout.Stretch;

            //panelClose.BackgroundImage = Properties.Resources.close;
            //panelClose.BackgroundImageLayout = ImageLayout.Stretch;

            //panelHide.BackgroundImage = Properties.Resources.hide;
            //panelHide.BackgroundImageLayout = ImageLayout.Stretch;


            lblSmall.BackColor = System.Drawing.ColorTranslator.FromHtml("#32709f");  //Color.DodgerBlue;
            lblSmall.ForeColor = Color.White;
            lblSmall.Cursor    = Cursors.Hand;
            lblClose.BackColor = System.Drawing.ColorTranslator.FromHtml("#32709f");  //Color.DodgerBlue;
            lblClose.ForeColor = Color.White;
            lblClose.Cursor    = Cursors.Hand;

            lblTitle.BackColor = System.Drawing.ColorTranslator.FromHtml("#32709f");  //Color.DodgerBlue;
            lblTitle.ForeColor = Color.White;

            lblTitle2.BackColor = System.Drawing.ColorTranslator.FromHtml("#32709f");  //Color.DodgerBlue;
            lblTitle2.ForeColor = Color.White;

            btnStart.Cursor = Cursors.Hand;
            btnStop.Cursor  = Cursors.Hand;

            btnStart.Text                  = "";
            btnStop.Text                   = "";
            btnStart.BackgroundImage       = Properties.Resources.btn_start_sm;
            btnStart.BackgroundImageLayout = ImageLayout.Stretch;
            btnStop.BackgroundImage        = Properties.Resources.btn_stop_g;
            btnStop.BackgroundImageLayout  = ImageLayout.Stretch;
        }
コード例 #4
0
 public FtpModuleLib()
 {
     log = new LogCls();
 }