Пример #1
0
        private void IBackgroundWorkerApplyBinding_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            IBoolInDoing = false;
            App.ShowCurrentStatus(int.MaxValue, string.Empty);
            IBackgroundWorkerApplyBinding.Dispose();
            IBackgroundWorkerApplyBinding = null;

            if (!IBoolApplyReturn)
            {
                if (IStrApplyReturn == "006")
                {
                    MessageBox.Show(App.GetDisplayCharater("E00" + IStrApplyReturn), App.GStrApplicationReferredTo, MessageBoxButton.OK, MessageBoxImage.Error);
                }
                else
                {
                    MessageBox.Show(App.GetDisplayCharater("E00" + IStrApplyReturn) + "\n" + App.GStrCatchException, App.GStrApplicationReferredTo, MessageBoxButton.OK, MessageBoxImage.Error);
                }
            }
            else
            {
                MamtOperationEventArgs LEventArgs = new MamtOperationEventArgs();
                LEventArgs.StrElementTag = "RIISB";
                if (IOperationEvent != null)
                {
                    IOperationEvent(this, LEventArgs);
                }
                MessageBox.Show(App.GetDisplayCharater("M01036"), App.GStrApplicationReferredTo, MessageBoxButton.OK, MessageBoxImage.Information);
            }
        }
Пример #2
0
        public void ShowConfirmInformation(List <string> AListStrDatabaseServerProfile, MamtOperationEventArgs AOperationParameters22, MamtOperationEventArgs AOperationParameters23)
        {
            string LStrVerificationCode104 = string.Empty;

            try
            {
                LStrVerificationCode104 = App.CreateVerificationCode(EncryptionAndDecryption.UMPKeyAndIVType.M104);

                GridConfirmInformation.IsEnabled = false;
                IBoolHaveError   = false;
                IParameterStep22 = AOperationParameters22;
                IParameterStep23 = AOperationParameters23;

                TextBoxServerName.Text = EncryptionAndDecryption.EncryptDecryptString(AListStrDatabaseServerProfile[0], LStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104);
                TextBoxServerPort.Text = EncryptionAndDecryption.EncryptDecryptString(AListStrDatabaseServerProfile[1], LStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104);

                App.ShowCurrentStatus(1, App.GetDisplayCharater("M02086"));
                IBackgroundWorkerObtainDatabasesLogins = new BackgroundWorker();
                IBackgroundWorkerObtainDatabasesLogins.RunWorkerCompleted += IBackgroundWorkerObtainDatabasesLogins_RunWorkerCompleted;
                IBackgroundWorkerObtainDatabasesLogins.DoWork             += IBackgroundWorkerObtainDatabasesLogins_DoWork;
                IBackgroundWorkerObtainDatabasesLogins.RunWorkerAsync(AListStrDatabaseServerProfile);
            }
            catch
            {
                App.ShowCurrentStatus(int.MaxValue, string.Empty);
                GridConfirmInformation.IsEnabled = true;
                IBoolHaveError = true;
                if (IBackgroundWorkerObtainDatabasesLogins != null)
                {
                    IBackgroundWorkerObtainDatabasesLogins.Dispose();
                    IBackgroundWorkerObtainDatabasesLogins = null;
                }
            }
        }
Пример #3
0
 private void LUCObjectDetailOperationsEvent(object sender, MamtOperationEventArgs e)
 {
     if (IOperationEvent != null)
     {
         IOperationEvent(this, e);
     }
 }
Пример #4
0
 private void LUCSingleOperationPanel_IOperationEvent(object sender, MamtOperationEventArgs e)
 {
     if (IOperationEvent != null)
     {
         IOperationEvent(this, e);
     }
 }
Пример #5
0
 private void GridSingleOperation_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     try
     {
         if (IBoolHaveMoreOperation)
         {
             Grid ClickedGrid = sender as Grid;
             //目标
             ClickedGrid.ContextMenu.PlacementTarget = ClickedGrid;
             //位置
             ClickedGrid.ContextMenu.Placement = System.Windows.Controls.Primitives.PlacementMode.MousePoint;
             //显示菜单
             ClickedGrid.ContextMenu.IsOpen = true;
         }
         else
         {
             if (IOperationEvent != null)
             {
                 MamtOperationEventArgs LEventArgs = new MamtOperationEventArgs();
                 LEventArgs.StrElementTag = this.Tag.ToString();
                 LEventArgs.ObjSource     = this.DataContext;
                 IOperationEvent(this, LEventArgs);
             }
         }
     }
     catch { }
 }
Пример #6
0
        private void InitObjectItemDetailTempleteTabItem()
        {
            MamtOperationEventArgs LEventArgs = new MamtOperationEventArgs();

            LEventArgs.StrElementTag = "0000000000";
            IUCObjectDetails.OpenServerObjectSingleInformation(this, LEventArgs);
        }
Пример #7
0
        /// <summary>
        /// 从其他对象发送过来的消息入口
        /// </summary>
        /// <param name="AEventArgs"></param>
        public void ObjectOperationsEvent(MamtOperationEventArgs AEventArgs)
        {
            try
            {
                switch (AEventArgs.StrElementTag)
                {
                case "FHDB":            //隐藏对象资源列表
                    HideServerBasicOperationObject(false, "B");
                    break;

                case "FHDO":            //隐藏操作窗口
                    HideServerBasicOperationObject(false, "O");
                    break;

                case "CLID":            //切换语言
                    ChangeApplicationElementLanguages(AEventArgs);
                    break;

                case "CSID":            //切换皮护
                    ChangeApplicationStyle(AEventArgs);
                    break;

                case "SSLC":            //在状态栏中显示当前的操作
                    ShowCurrentStatus(AEventArgs);
                    break;

                default:
                    break;
                }
            }
            catch (Exception ex) { App.ShowExceptionMessage(ex.ToString()); }
        }
Пример #8
0
        public void RefreshTreeViewItemAfterLogicPartitionSet(MamtOperationEventArgs AEventArgs)
        {
            try
            {
                if (ITreeViewItemCurrentSelected.Name != "TVI006")
                {
                    return;
                }
                DataRow   LDataRowLogicPartition   = ITreeViewItemCurrentSelected.DataContext as DataRow;
                DataTable LDataTableLoginPartition = AEventArgs.ObjSource as DataTable;

                LDataRowLogicPartition["S00"]            = "1";
                LDataRowLogicPartition["S01"]            = LDataTableLoginPartition.Rows[0]["C004"].ToString();
                LDataRowLogicPartition["S02"]            = LDataTableLoginPartition.Rows[0]["C005"].ToString();
                LDataRowLogicPartition["S03"]            = LDataTableLoginPartition.Rows[0]["C006"].ToString();
                ITreeViewItemCurrentSelected.DataContext = LDataRowLogicPartition;

                ResetTreeViewItemHeader();

                if (IOperationEvent != null)
                {
                    MamtOperationEventArgs LEventArgs = new MamtOperationEventArgs();
                    LEventArgs.StrElementTag    = "TSCH";
                    LEventArgs.ObjSource        = ITreeViewItemCurrentSelected;
                    LEventArgs.AppenObjeSource3 = "TV";
                    IOperationEvent(this, LEventArgs);
                }
            }
            catch { }
        }
Пример #9
0
        private void BeginTryConnect2LicenseService()
        {
            List <string> LListStrArguments = new List <string>();
            string        LStrServerHost    = string.Empty;
            string        LStrServerPort    = string.Empty;
            string        LStrIsEnabled     = string.Empty;
            string        LStrMessageBody   = string.Empty;

            IIntCurrentLoop += 1;
            if (IIntCurrentLoop >= IDataTableLicenseService.Rows.Count)
            {
                int LIntCurrentReturn = -1;
                foreach (bool LBoolApplyReturn in IListBoolApplyReturn)
                {
                    LIntCurrentReturn += 1;
                    if (!LBoolApplyReturn)
                    {
                        LStrMessageBody += string.Format(App.GetDisplayCharater("M01113"), IListStrApplyReturn[LIntCurrentReturn]) + "\n";
                    }
                }
                if (!string.IsNullOrEmpty(LStrMessageBody))
                {
                    MessageBox.Show(LStrMessageBody, App.GStrApplicationReferredTo, MessageBoxButton.OK, MessageBoxImage.Error);
                    return;
                }
                else
                {
                    SaveSettings2XML();
                    MamtOperationEventArgs LEventArgs = new MamtOperationEventArgs();
                    LEventArgs.StrElementTag = "RLSST";
                    if (IOperationEvent != null)
                    {
                        IOperationEvent(this, LEventArgs);
                    }
                    CloseThisWindow();
                }
                return;
            }

            LStrIsEnabled = IDataTableLicenseService.Rows[IIntCurrentLoop]["IsEnabled"].ToString();
            if (LStrIsEnabled != "1")
            {
                IIntCurrentLoop += 1;
                BeginTryConnect2LicenseService();
            }
            else
            {
                LStrServerHost = IDataTableLicenseService.Rows[IIntCurrentLoop]["ServerHost"].ToString();
                LStrServerPort = IDataTableLicenseService.Rows[IIntCurrentLoop]["ServerPort"].ToString();
                LListStrArguments.Add(LStrServerHost);
                LListStrArguments.Add(LStrServerPort);

                App.ShowCurrentStatus(1, string.Format(App.GetDisplayCharater("M01112"), LStrServerHost));
                IBoolInDoing = true;
                IBackgroundWorkerApplyChanged = new BackgroundWorker();
                IBackgroundWorkerApplyChanged.RunWorkerCompleted += IBackgroundWorkerApplyChanged_RunWorkerCompleted;
                IBackgroundWorkerApplyChanged.DoWork             += IBackgroundWorkerApplyChanged_DoWork;
                IBackgroundWorkerApplyChanged.RunWorkerAsync(LListStrArguments);
            }
        }
Пример #10
0
        private void LTreeViewItemFolder_Expanded(object sender, RoutedEventArgs e)
        {
            try
            {
                TreeViewItem LTreeViewItemExpanded = e.Source as TreeViewItem;
                if (LTreeViewItemExpanded == null)
                {
                    return;
                }
                if (LTreeViewItemExpanded.Tag.ToString() == "1")
                {
                    return;
                }
                LTreeViewItemExpanded.Tag = "1";

                ITreeViewItemExpand = LTreeViewItemExpanded;

                if (IOperationEvent == null)
                {
                    return;
                }
                MamtOperationEventArgs LEventArgs = new MamtOperationEventArgs();
                LEventArgs.StrElementTag    = "C001";
                LEventArgs.AppenObjeSource0 = IStrCurrentFolderType;
                LEventArgs.AppenObjeSource1 = LTreeViewItemExpanded.DataContext.ToString();
                IOperationEvent(this, LEventArgs);
            }
            catch { }
        }
        public void ShowDatabaseInformation(MamtOperationEventArgs AOperationParameters)
        {
            string LStrCollationName        = string.Empty;
            string LStrCollationDescription = string.Empty;

            try
            {
                DataTable LDataTableCollations = ((DataSet)AOperationParameters.AppenObjeSource2).Tables[0];
                IListStrServerInformation = AOperationParameters.AppenObjeSource1 as List <string>;

                ComboBoxItem LComboBoxItemDefaultCollation = new ComboBoxItem();
                ComboBoxCollations.Items.Clear();
                foreach (DataRow LDataRowSingleCollations in LDataTableCollations.Rows)
                {
                    ComboBoxItem LComboBoxItemSingleCollationItem = new ComboBoxItem();
                    LComboBoxItemSingleCollationItem.Style = (Style)App.Current.Resources["ComboBoxItemFontStyle"];
                    LStrCollationName        = LDataRowSingleCollations[1].ToString();
                    LStrCollationDescription = LDataRowSingleCollations[5].ToString();
                    LComboBoxItemSingleCollationItem.Content     = LStrCollationName;
                    LComboBoxItemSingleCollationItem.DataContext = LStrCollationName;
                    LComboBoxItemSingleCollationItem.ToolTip     = LStrCollationDescription;
                    ComboBoxCollations.Items.Add(LComboBoxItemSingleCollationItem);
                    if (LStrCollationName == IListStrServerInformation[1])
                    {
                        LComboBoxItemDefaultCollation = LComboBoxItemSingleCollationItem;
                    }
                }
                ComboBoxCollations.SelectedItem = LComboBoxItemDefaultCollation;

                TextBoxDataPath.Text = IListStrServerInformation[2];
                TextBoxLogPath.Text  = IListStrServerInformation[3];
            }
            catch { }
        }
Пример #12
0
        private void OpenCertificateInstalling(MamtOperationEventArgs AEventArgs)
        {
            CertificateInstalling LCertificateInstalling = new CertificateInstalling();

            LCertificateInstalling.Owner            = this;
            LCertificateInstalling.IOperationEvent += IUCObjectBDOOperationEvent;
            LCertificateInstalling.ShowDialog();
            this.Activate();
        }
Пример #13
0
        private void OpenIISBindingSetting(MamtOperationEventArgs AEventArgs)
        {
            UMPSiteBindSetting LUMPSiteBindSetting = new UMPSiteBindSetting(App.GetIISBindingProtocol());

            LUMPSiteBindSetting.Owner            = this;
            LUMPSiteBindSetting.IOperationEvent += IUCObjectBDOOperationEvent;
            LUMPSiteBindSetting.ShowDialog();
            this.Activate();
        }
Пример #14
0
 private void ImageCloseServerObject_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     if (IOperationEvent != null)
     {
         MamtOperationEventArgs LEventArgs = new MamtOperationEventArgs();
         LEventArgs.StrElementTag = ((Image)sender).Tag.ToString();
         LEventArgs.ObjSource     = (Image)sender;
         IOperationEvent(this, LEventArgs);
     }
 }
Пример #15
0
        private void ButtonOperationsClicked(object sender, RoutedEventArgs e)
        {
            if (IOperationEvent != null)
            {
                MamtOperationEventArgs LEventArgs = new MamtOperationEventArgs();

                LEventArgs.StrElementTag = ((Button)sender).Tag.ToString();
                LEventArgs.ObjSource     = ITreeViewItemCurrentSelected;
                IOperationEvent(this, LEventArgs);
            }
        }
Пример #16
0
        public void OpenServerObjectSingleInformation(object AObjectSender, MamtOperationEventArgs AOperationEventArgs)
        {
            try
            {
                IOperationEventArgsAddItem = AOperationEventArgs;

                //这里需要判断要打开的对象是否已经打开,如果打开,则跳转到已经打开的页面,考虑是否可以放到MainWindows中处理该判断逻辑

                ITabControlMainPanel.AddTabItem();
            }
            catch { }
        }
Пример #17
0
        private void ChangeApplicationStyle(MamtOperationEventArgs AEventArgs)
        {
            string LStrSeasonCode = AEventArgs.ObjSource as string;

            App.GStrSeasonCode = LStrSeasonCode;
            App.LoadApplicationResources();
            ButtonApplicationMenu.ContextMenu = App.InitApplicationMenu();
            App.DrawWindowsBackGround(this);
            if (IOperationEvent != null)
            {
                IOperationEvent(this, AEventArgs);
            }
        }
Пример #18
0
        private void IBackgroundWorkerRestartService_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            IBoolInDoing = false;
            App.ShowCurrentStatus(int.MaxValue, string.Empty);

            MamtOperationEventArgs LEventArgs = new MamtOperationEventArgs();

            LEventArgs.StrElementTag = "RCDBP";
            if (IOperationEvent != null)
            {
                IOperationEvent(this, LEventArgs);
            }
            MessageBox.Show(App.GetDisplayCharater("M01072"), App.GStrApplicationReferredTo, MessageBoxButton.OK, MessageBoxImage.Information);
        }
Пример #19
0
        private void GSystemMainWindow_IOperationEvent(object sender, MamtOperationEventArgs e)
        {
            if (e.StrElementTag == "CSID")
            {
                App.DrawWindowsBackGround(this);
            }

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

            ButtonApplicationMenu.ContextMenu = App.InitApplicationMenu();
        }
Пример #20
0
 public void ShowObjectDetailsInTabItemServerObject(MamtOperationEventArgs AObjectArgs, bool ABoollanguageChanage)
 {
     try
     {
         IOperationEventArgs = AObjectArgs;
         if (AObjectArgs.StrElementTag == "TSCH")            //UCObject TreeViewItem SelectedItemChanged
         {
             ShowObjectTabItemHeaderFromBasicTreeViewItem(AObjectArgs.ObjSource);
             ShowObjectInformationInTabItemFromBasicTreeViewItem(AObjectArgs.ObjSource, ABoollanguageChanage);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "SetTabItemServerObjectDetailToolTip");
     }
 }
Пример #21
0
 private void LMenuItemSingleOperation_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         MenuItem LMenuItemOperationClicked = sender as MenuItem;
         if (IOperationEvent != null)
         {
             MamtOperationEventArgs LEventArgs = new MamtOperationEventArgs();
             LEventArgs.StrElementTag    = LMenuItemOperationClicked.Tag.ToString();
             LEventArgs.ObjSource        = LMenuItemOperationClicked.DataContext;
             LEventArgs.AppenObjeSource3 = "OP";
             IOperationEvent(this, LEventArgs);
         }
     }
     catch { }
 }
Пример #22
0
        private void ChangeApplicationElementLanguages(MamtOperationEventArgs AEventArgs)
        {
            string LStrLanguageID = AEventArgs.ObjSource as string;

            App.GStrLoginUserCurrentLanguageID        = LStrLanguageID;
            App.GClassSessionInfo.LangTypeInfo.LangID = int.Parse(LStrLanguageID);
            App.GClassSessionInfo.LangTypeID          = int.Parse(LStrLanguageID);
            App.InitStartedAppliactionData();
            ButtonApplicationMenu.ContextMenu = App.InitApplicationMenu();
            if (IOperationEvent != null)
            {
                IOperationEvent(this, AEventArgs);
            }
            IUCServerObjects.DisplayElementCharacters(true);
            IUCObjectDetails.DisplayElementCharacters(true);
            IUCObjectOperations.DisplayElementCharacters(true);
        }
Пример #23
0
        //private void IBackgroundWorkerDisconnectAllServer_DoWork(object sender, DoWorkEventArgs e)
        //{
        //    try
        //    {
        //        BasicHttpBinding LBasicHttpBinding = null;
        //        EndpointAddress LEndpointAddress = null;
        //        Service01Return LService01Return = null;
        //        UMPWcfService01Client LService01Client = null;

        //        List<string> LListStrTargetAttribute = new List<string>();
        //        List<string> LListStrTargetValue = new List<string>();

        //        try
        //        {
        //            List<string> LListStrConnectInfo = IListListStrConnectedArgs[IIntDisconnectIndex];
        //            LListStrTargetAttribute.Add(LListStrConnectInfo[2]); LListStrTargetValue.Add("");
        //            LListStrTargetAttribute.Add("LoginStatus"); LListStrTargetValue.Add("0");
        //            if (LListStrConnectInfo[5] == "0")
        //            {
        //                LBasicHttpBinding = App.CreateBasicHttpBinding(int.Parse(LListStrConnectInfo[7]));
        //            }
        //            LEndpointAddress = App.CreateEndpointAddress(LListStrConnectInfo[6], LListStrConnectInfo[0], LListStrConnectInfo[1], "UMPWcfService01");
        //            LService01Return = new Service01Return();
        //            LService01Client = new UMPWcfService01Client(LBasicHttpBinding, LEndpointAddress);
        //            LService01Return = LService01Client.ConnectedOperations("W", "Logins", LListStrTargetAttribute, LListStrTargetValue);
        //            LService01Client.Close();
        //        }
        //        catch { }
        //        finally
        //        {
        //            if (LService01Client != null)
        //            {
        //                if (LService01Client.State == CommunicationState.Opened) { LService01Client.Close(); }
        //            }
        //        }
        //    }
        //    catch { }
        //}

        //private void IBackgroundWorkerDisconnectAllServer_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        //{
        //    try
        //    {
        //        IUCStatusBar01.StatusBarShowLeftStop(int.MaxValue, App.GetDisplayCharacterFromLanguagePackage("ApplicationShared", "E019995"));
        //    }
        //    catch { }
        //    finally
        //    {
        //        IBackgroundWorkerDisconnectAllServer.Dispose();
        //        IBackgroundWorkerDisconnectAllServer = null;
        //        IIntDisconnectIndex += 1;
        //        DisconnectToAllServers();
        //    }
        //}
        #endregion

        #region 在状态栏中显示当前正在处理的操作提示
        private void ShowCurrentStatus(MamtOperationEventArgs AEventArgs)
        {
            int    LIntStatusType     = 0;
            string LStrStatusDesc     = string.Empty;
            string LStrShowWaitWindow = string.Empty;

            try
            {
                LIntStatusType     = int.Parse(AEventArgs.ObjSource as string);
                LStrStatusDesc     = AEventArgs.AppenObjeSource1 as string;
                LStrShowWaitWindow = AEventArgs.AppenObjeSource2 as string;

                if (LIntStatusType == int.MaxValue)
                {
                    IUCStatusBar.StatusBarShowStop(LIntStatusType);
                    if (IWaitForApplicationDoing != null)
                    {
                        BorderApplicationWorkArea.IsEnabled   = true;
                        IWaitForApplicationDoing.IBoolIsDoing = false;
                        IWaitForApplicationDoing.StatusBarShowStop(LIntStatusType);
                        IWaitForApplicationDoing.CloseThisWindow();
                    }
                }
                else
                {
                    IUCStatusBar.StatusBarShowLeftStart(LIntStatusType, LStrStatusDesc);
                    if (LStrShowWaitWindow == "1")
                    {
                        if (IWaitForApplicationDoing != null)
                        {
                            IWaitForApplicationDoing = null;
                        }
                        BorderApplicationWorkArea.IsEnabled   = false;
                        IWaitForApplicationDoing              = new WaitForApplicationDoing();
                        IWaitForApplicationDoing.Owner        = this;
                        IWaitForApplicationDoing.IBoolIsDoing = true;
                        IWaitForApplicationDoing.StatusBarShowLeftStart(LIntStatusType, LStrStatusDesc);
                        IWaitForApplicationDoing.Show();
                    }
                }
            }
            catch (Exception ex)
            {
                App.ShowExceptionMessage(ex.ToString());
            }
        }
        private void ButtonDataLogPathClicked(object sender, RoutedEventArgs e)
        {
            try
            {
                Button LButtonClicked = sender as Button;

                if (IOperationEvent == null)
                {
                    return;
                }
                MamtOperationEventArgs LEventArgs = new MamtOperationEventArgs();
                LEventArgs.StrElementTag    = "C001";
                LEventArgs.AppenObjeSource0 = LButtonClicked.Tag.ToString();
                LEventArgs.AppenObjeSource1 = string.Empty;
                IOperationEvent(this, LEventArgs);
            }
            catch { }
        }
Пример #25
0
        private void OpenLicenseServiceSetting(MamtOperationEventArgs AEventArgs)
        {
            try
            {
                TreeViewItem LTreeViewItemCurrent     = AEventArgs.ObjSource as TreeViewItem;
                DataTable    LDataTableLicenseService = LTreeViewItemCurrent.DataContext as DataTable;

                LicenseServiceSetting LLicenseServiceSetting = new LicenseServiceSetting(LDataTableLicenseService);
                LLicenseServiceSetting.Owner            = this;
                LLicenseServiceSetting.IOperationEvent += IUCObjectBDOOperationEvent;
                LLicenseServiceSetting.ShowDialog();
                this.Activate();
            }
            catch (Exception ex)
            {
                App.ShowExceptionMessage("OpenLicenseServiceSetting()\n" + ex.Message);
            }
        }
Пример #26
0
        private void ShowConnectedServerInformation(MamtOperationEventArgs AEventArgs)
        {
            int LIntAllDataSetCount = 0;

            try
            {
                List <string> LListStrConnectedServer = AEventArgs.ObjSource as List <string>;
                DataSet       LDataSetServerConnected = AEventArgs.AppenObjeSource1 as DataSet;
                IListListStrConnectedArgs.Add(LListStrConnectedServer);
                IListDataSetConnectedServer.Add(LDataSetServerConnected);
                LIntAllDataSetCount = IListDataSetConnectedServer.Count;
                IUCServerObjects.AddApplicationServer2TreeView(LListStrConnectedServer, IListDataSetConnectedServer[LIntAllDataSetCount - 1]);
                ModifyAuthRootValue();
            }
            catch (Exception ex)
            {
                App.ShowExceptionMessage(ex.Message);
            }
        }
Пример #27
0
        private void OpenChangeOrResetAdminPassword(MamtOperationEventArgs AEventArgs)
        {
            try
            {
                TreeViewItem LTreeViewItemCurrent      = AEventArgs.ObjSource as TreeViewItem;
                TreeViewItem LTreeViewItemDatabase     = (LTreeViewItemCurrent.Parent as TreeViewItem).Parent as TreeViewItem;
                DataRow      LDataRowRentInfo          = LTreeViewItemCurrent.DataContext as DataRow;
                DataTable    LDataTableDatabaseProfile = LTreeViewItemDatabase.DataContext as DataTable;

                ChangeOrResetAdminPassword LChangeOrResetAdminPassword = new ChangeOrResetAdminPassword(LDataTableDatabaseProfile, LDataRowRentInfo);
                LChangeOrResetAdminPassword.Owner            = this;
                LChangeOrResetAdminPassword.IOperationEvent += IUCObjectBDOOperationEvent;
                LChangeOrResetAdminPassword.ShowDialog();
                this.Activate();
            }
            catch (Exception ex)
            {
                App.ShowExceptionMessage("OpenChangeOrResetAdminPassword()\n" + ex.Message);
            }
        }
Пример #28
0
        private void OpenResetRentAdminStatus(MamtOperationEventArgs AEventArgs)
        {
            try
            {
                TreeViewItem LTreeViewItemCurrent      = AEventArgs.ObjSource as TreeViewItem;
                TreeViewItem LTreeViewItemDatabase     = (LTreeViewItemCurrent.Parent as TreeViewItem).Parent as TreeViewItem;
                DataRow      LDataRowRentInfo          = LTreeViewItemCurrent.DataContext as DataRow;
                DataTable    LDataTableDatabaseProfile = LTreeViewItemDatabase.DataContext as DataTable;

                ResetAdministartorStatus LResetAdministartorStatus = new ResetAdministartorStatus(LDataTableDatabaseProfile, LDataRowRentInfo);
                LResetAdministartorStatus.Owner            = this;
                LResetAdministartorStatus.IOperationEvent += IUCObjectBDOOperationEvent;
                LResetAdministartorStatus.ShowDialog();
                this.Activate();
            }
            catch (Exception ex)
            {
                App.ShowExceptionMessage("OpenResetRentAdminStatus()\n" + ex.Message);
            }
        }
Пример #29
0
        private void ShowObjectDetailsOperations(MamtOperationEventArgs AEventArgs)
        {
            string LStrObjectID     = string.Empty;
            string LStrObjectSource = string.Empty;

            try
            {
                TreeViewItem LTreeViewItemSelected = AEventArgs.ObjSource as TreeViewItem;
                if (LTreeViewItemSelected == null)
                {
                    return;
                }
                LStrObjectSource = AEventArgs.AppenObjeSource3 as string;

                LStrObjectID = GetObjectID000(AEventArgs.ObjSource);
                IUCObjectOperations.AddObjectOperations(true, LStrObjectID, AEventArgs.ObjSource, false);
                IUCObjectDetails.ShowObjectDetailsInTabItemServerObject(AEventArgs, false);
            }
            catch (Exception ex) { App.ShowExceptionMessage(ex.Message); }
        }
Пример #30
0
        private void OpenLogicPartitionSetting(MamtOperationEventArgs AEventArgs)
        {
            try
            {
                TreeViewItem LTreeViewItemCurrent      = AEventArgs.ObjSource as TreeViewItem;
                TreeViewItem LTreeViewItemDatabase     = ((LTreeViewItemCurrent.Parent as TreeViewItem).Parent as TreeViewItem).Parent as TreeViewItem;
                DataRow      LDataRowLogicPartition    = LTreeViewItemCurrent.DataContext as DataRow;
                DataTable    LDataTableDatabaseProfile = LTreeViewItemDatabase.DataContext as DataTable;
                string       LStrRentToken             = LTreeViewItemCurrent.Tag as string;

                LogicPartitionSetting.LogicPartitionSetting LLogicPartitionSetting = new LogicPartitionSetting.LogicPartitionSetting(LDataRowLogicPartition, LStrRentToken, LDataTableDatabaseProfile);
                LLogicPartitionSetting.Owner            = this;
                LLogicPartitionSetting.IOperationEvent += IUCObjectBDOOperationEvent;
                LLogicPartitionSetting.ShowDialog();
                this.Activate();
            }
            catch (Exception ex)
            {
                App.ShowExceptionMessage("OpenLogicPartitionSetting()\n" + ex.Message);
            }
        }