public void start(string eq_id)
 {
     bcApp = BCApplication.getInstance();
     //eqpt = bcApp.SCApplication.getEQObjCacheManager().getEquipmentByEQPTID(eq_id);
     lbl_ID_Value.Text = eq_id;
     initialDataBinding();
 }
 public ChangePwdForm(BCMainForm _mainForm)
 {
     InitializeComponent();
     mainForm       = _mainForm;
     bcApp          = BCApplication.getInstance();
     this.Width     = 650; //A0.02
     base.TitleName = "Change Password";
 }
Exemple #3
0
        /// <summary>
        /// Calls the back do initialize.
        /// </summary>
        /// <param name="status">The status.</param>
        private void callBackDoInitialize(Object status)
        {
            ProgressBarDialog progress = status as ProgressBarDialog;

            Adapter.Invoke(new SendOrPostCallback((o1) =>
            {
                progress.Begin();
                progress.SetText("Initialize...");
            }), null);
            bcApp = BCApplication.getInstance(ServerName);

            try
            {
                bcApp.addUserToolStripStatusLabel(tssl_LoginUser_Value);
                bcApp.addRefreshUIDisplayFun(delegate(object o) { UpdateUIDisplayByAuthority(); });
                bcApp.SCApplication.loadECDataToSystem();
                line = bcApp.SCApplication.getEQObjCacheManager().getLine();
                ci   = bcApp.SCApplication.getEQObjCacheManager().CommonInfo;

                Adapter.Invoke(new SendOrPostCallback((o1) =>
                {
                    registerEvent();
                    initUI();
                }), null);

                //必須等到UI Event註冊完成後,才可以開啟通訊界面
                //bcApp.startProcess();
                bcApp.SCApplication.ParkBLL.setCurrentParkType();
                bcApp.SCApplication.CycleBLL.setCurrentCycleType();
                //line.addEventHandler(this.Name
                //, BCFUtility.getPropertyName(() => line.ServiceMode)
                //, (s1, e1) => { bcApp.SCApplication.FailOverService.ListenOrShutdownServerPort(); });
            }
            catch (Exception ex)
            {
                Adapter.Invoke(new SendOrPostCallback((o1) =>
                {
                    MessageBox.Show(this, ex.ToString());
                }), null);
                logger.Error(ex, "Exception");
            }
            finally
            {
                Adapter.Invoke(new SendOrPostCallback((o1) =>
                {
                    if (progress != null)
                    {
                        progress.End();
                    }
                }), null);
            }
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="LoginPopupForm"/> class.
 /// </summary>
 /// <param name="function_code">The function_code.</param>
 /// <param name="withDifferentAccount">The with different account.</param>
 public LoginPopupForm(string function_code, Boolean withDifferentAccount)
 {
     InitializeComponent();
     this.function_code = function_code;
     bcApp = BCApplication.getInstance();
     if (withDifferentAccount)
     {
         this.Text = BCApplication.getMessageString("Login_With_Other_Account");
     }
     else
     {
         this.Text = BCApplication.getMessageString("Login");
     }
 }
Exemple #5
0
 //public uctlVehicle(Equipment eqpt, uctl_Map _uctl_Map)
 public uctlVehicle(AVEHICLE eqpt, uctl_Map _uctl_Map)
 {
     InitializeComponent();
     bcApp           = BCApplication.getInstance();
     this.eqpt       = eqpt;
     this.Uctl_Map   = _uctl_Map;
     m_iVhPt         = -1;
     m_iNum          = 0;
     this.p_Status   = E_MAP_VHSTS.enDisconnect;
     this.p_Presence = false;
     //registerEvent();
     _SetInitialRailToolTip();
     _SetRailToolTip();
 }