Exemple #1
0
        public AlarmProcess(ProcessReceiver m)
        {
            main = m;
            log  = new LogCls();

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

            stsLog = new LogMessageCallback(main.setLogMessage);
        }
Exemple #3
0
        private void btnStop_Click(object sender, EventArgs e)
        {
            logMessage("[WindLidarServer:Stop] Process stopping...");
            statusPanel.Text = "Application started. Action stopping.";
            process.abort();
            process = null;

            btnStart.Enabled = true;
            btnStop.Enabled  = false;
            statusPanel.Text = "Application started. Action Stop.";

            btnStart.BackgroundImage = Properties.Resources.btn_start_sm;
            btnStop.BackgroundImage  = Properties.Resources.btn_stop_g;
        }
Exemple #4
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            if (process == null)
            {
                logMessage("[WindLidarServer:Start] Process starting...");
                process = new ProcessReceiver(this);
                process.start();

                btnStart.Enabled = false;
                btnStop.Enabled  = true;
                statusPanel.Text = "Application started. Action Start.";

                btnStart.BackgroundImage = Properties.Resources.btn_start_g;
                btnStop.BackgroundImage  = Properties.Resources.btn_stop_sm;
            }
        }
Exemple #5
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;
        }