コード例 #1
0
        public WinFormTemplate1()
        {
            InitializeComponent();

            lbxLogHnd = new mko.Log.WinFormListBoxLogHnd(lbxLog);
            log.registerLogHnd(lbxLogHnd);

            StatusStripLogHnd = new mko.Log.WinFormStatusStripLogHnd(statusStrip1, "toolStripStatusLabel1");
            log.registerLogHnd(StatusStripLogHnd);
        }
コード例 #2
0
        //DMS.Bilderscanner scanner;

        public PicBrowserForm()
        {
            InitializeComponent();

            //scanner = new DMS.Bilderscanner(trvPicDir);

            hndLbx = new mko.Log.WinFormListBoxLogHnd(lbxLog);
            log.registerLogHnd(hndLbx);

            hndStatusStrip = new mko.Log.WinFormStatusStripLogHnd(this.statusStrip1, "toolStripStatusLabel1");
            log.registerLogHnd(hndStatusStrip);
        }
コード例 #3
0
        public Form1()
        {
            InitializeComponent();

            Text = "[" + System.Net.Dns.GetHostName() + "]  "
                   + this.Text
                   + " ver "
                   + this.GetType().Assembly.GetName().Version.Major.ToString()
                   + "."
                   + this.GetType().Assembly.GetName().Version.Minor.ToString()
                   + "."
                   + this.GetType().Assembly.GetName().Version.Build.ToString();

            hndStatusStripLog = new mko.Log.WinFormStatusStripLogHnd(this.statusStrip1, "toolStripStatusLabel1");
            log.registerLogHnd(hndStatusStripLog);

            // Stapelverarbeitung für Dateiscanns anlegen
            //_Worker = new FCWorker(log);
            DMS.FC.BP.BatchProcessor.logServer = log;
            FCBatchProzessor = new DMS.FC.BP.BatchProcessor();
            ibp = (DMS.IBatchProcessing)FCBatchProzessor;

            log.Log(mko.Log.RC.CreateMsg(string.Format("erfolgreich gestartet um {0:s}", DateTime.Now)));
        }