Beispiel #1
0
        public LogMain()
        {
            InitializeComponent();

            this.TopMost = true;

            m_iMaxListCnt = Eqp.m_iMaxListCnt;
            //Fre Init
            Timer = new CTimer();
            //

            //notifyIcon
            ContextMenu contextMenu1 = new ContextMenu();

            //contextMenu1.MenuItems.Add(new MenuItem("OPEN"));
            //contextMenu1.MenuItems.Add(new MenuItem("EXIT", new EventHandler((s, ex) => this.Close())));
            contextMenu1.MenuItems.Add(new MenuItem("EXIT", new EventHandler(FormExit)));
            notifyIcon1.ContextMenu = contextMenu1;
            notifyIcon1.Visible     = true;

            FrmLogOption  = new LogOption(this);
            FrmLogVersion = new LogVersion();
            FrmLogFind    = new LogFind(this);

            //m_iMaxArray = OM.LogInfo.iTagCnt;

            fs = new FileStream[m_iMaxArray];
            sw = new StreamWriter[m_iMaxArray];

            //OnMakeNewLog();

            _pIgnrList.Clear();
            lst = new MsgList[m_iMaxArray];
            for (int i = 0; i < m_iMaxArray; i++)
            {
                lst[i] = new MsgList();
                lst[i].Ary.Clear();
            }

            iDayCount = DateTime.Now.Day;

            tabControl1.TabPages.Clear();
            TabPage tp = new TabPage("DEFAULT"); tabControl1.TabPages.Add(tp); lst[0].Lsv.Parent = tp; lst[0].Lsv.Dock = DockStyle.Fill;

            ListViewDispInit(OM.LogInfo.iTagCnt);
        }
Beispiel #2
0
 private void vERSIONToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FrmLogVersion.Close();
     FrmLogVersion = new LogVersion();
     FrmLogVersion.Show();
 }