Ejemplo n.º 1
0
        private void GSystemMainWindow_IOperationEvent(object sender, UMP.Tools.PublicClasses.OperationEventArgs e)
        {
            if (e.StrElementTag == "CSID")
            {
                App.DrawWindowsBackGround(this);
            }

            if (e.StrElementTag == "CLID")
            {
                DisplayElementCharacters(true);
            }

            ButtonApplicationMenu.ContextMenu = App.InitApplicationMenu();
        }
Ejemplo n.º 2
0
        private void IBackgroundWorkerF_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            string LStrMessageBody = string.Empty;

            try
            {
                App.ShowCurrentStatus(int.MaxValue, string.Empty);
                IBoolInConnecting = false;
                if (!I00003OperationReturn.BoolReturn)
                {
                    string[] LStrOperationReturn = I00003OperationReturn.StringReturn.Split(App.GStrSpliterChar.ToCharArray());
                    LStrMessageBody = App.GetDisplayCharater(LStrOperationReturn[0]);
                    if (LStrOperationReturn[0] == "WCF003E999" || LStrOperationReturn[0] == "UMP001E006")
                    {
                        LStrMessageBody += "\n" + LStrOperationReturn[1];
                        MessageBox.Show(LStrMessageBody, App.GStrApplicationReferredTo, MessageBoxButton.OK, MessageBoxImage.Error);
                        return;
                    }
                }

                UMP.Tools.PublicClasses.OperationEventArgs LOperationEventArgs = new UMP.Tools.PublicClasses.OperationEventArgs();
                LOperationEventArgs.StrElementTag    = "SLTS";
                LOperationEventArgs.ObjSource        = new List <string>(IListConnectInfo.ToArray());
                LOperationEventArgs.AppenObjeSource1 = I00003OperationReturn.DataSetReturn;
                LOperationEventArgs.AppenObjeSource2 = I00003OperationReturn.ListDataSetReturn;
                IOperationEvent(this, LOperationEventArgs);
                this.Close();
            }
            catch (Exception ex)
            {
                App.ShowExceptionMessage(App.GetDisplayCharater("E001008") + "\n" + ex.Message);
                IBoolInConnecting = false;
            }
            finally
            {
                if (IBackgroundWorkerD != null)
                {
                    IBackgroundWorkerD.Dispose(); IBackgroundWorkerD = null;
                }
            }
        }