コード例 #1
0
ファイル: FrmWorkStation.cs プロジェクト: qbollen/PMSIface
 public static FrmWorkStation getFrmWorkstation()
 {
     if (_instance == null)
     {
         _instance = new FrmWorkStation();
     }
     return _instance;
 }
コード例 #2
0
ファイル: FrmWorkStation.cs プロジェクト: qbollen/PMSIface
 private void FrmWorkStation_FormClosed(object sender, FormClosedEventArgs e)
 {
     _instance = null;
 }
コード例 #3
0
ファイル: FrmMain.cs プロジェクト: qbollen/PMSIface
        private void FrmMain_Load(object sender, EventArgs e)
        {
            this.transLeftA.Left = this.transAreaA.Width - this.transLeftA.Width;
            this.transLeftA.Visible = true;
            this.transRightA.Left = 0;
            this.transRightA.Visible = false;

            this.transLeftB.Left = this.transAreaB.Width - this.transLeftB.Width;
            this.transLeftB.Visible = true;
            this.transRightB.Left = 0;
            this.transRightB.Visible = false;

            this.toolStripStatusLabelUser.Text = "Operator: " + global::PMSInterface.Program._username;
            frmWorkstation = FrmWorkStation.getFrmWorkstation();
            frmWorkstation.Visible = false;

            frmCommLog = FrmCommunicationLog.getCommunicationLog();
            frmCommLog.MdiParent = this;
            frmCommLog.Left = 10;
            frmCommLog.Top = this.Height - frmCommLog.Height - 130;
            frmCommLog.Visible = true;

            UpdateEvent += new UpdateHandler(frmWorkstation.add);
            LogEvent += new LogHandler(frmCommLog.safeAdd);

            Safe safe = new Safe();
            Registe = safe.GetDateTimeFromDecrypt(true);

            StartListen();

            string specName;
            InstructMap = MyXml.GetInstructMap(out specName);
            if (InstructMap == null)
                return;
        }