private void buttonChangePassword_Click(object sender, RoutedEventArgs e)
        {
            if (comboBoxPermission.SelectedIndex == 0)
            {
                if (Manager.ConfigManager.Instance.Config.MaintenancePassword !=
                    passwordBox1.Password)
                {
                    MessageBox.Show("패스워드가 올바르지 않습니다.");
                    return;
                }
            }
            else if (comboBoxPermission.SelectedIndex == 1)
            {
                if (Manager.ConfigManager.Instance.Config.AdministratorPassword !=
                    passwordBox1.Password)
                {
                    MessageBox.Show("패스워드가 올바르지 않습니다.");
                    return;
                }
            }

            WindowPasswordModify passwordDlg = new WindowPasswordModify();
            if ((bool)passwordDlg.ShowDialog() == false)
            {
                MessageBox.Show("패스워드 변경을 취소하였습니다.");
                return;
            }

            if (comboBoxPermission.SelectedIndex == 0)
            {
                Manager.ConfigManager.Instance.Config.MaintenancePassword = passwordDlg.Password;
            }
            else if (comboBoxPermission.SelectedIndex == 1)
            {
                Manager.ConfigManager.Instance.Config.AdministratorPassword = passwordDlg.Password;
            }

            passwordBox1.Password = passwordDlg.Password;
        }
        private void buttonChangePassword_Click(object sender, RoutedEventArgs e)
        {
            if (comboBoxPermission.SelectedIndex == 0)
            {
                if (Manager.ConfigManager.Instance.Config.MaintenancePassword !=
                    passwordBox1.Password)
                {
                    MessageBox.Show(Manager.StringResourceManager.Instance.Resource.GUI.MainResource.UserSelectWindow.InvalidPassword);
                    return;
                }
            }
            else if (comboBoxPermission.SelectedIndex == 1)
            {
                if (Manager.ConfigManager.Instance.Config.AdministratorPassword !=
                    passwordBox1.Password)
                {
                    MessageBox.Show(Manager.StringResourceManager.Instance.Resource.GUI.MainResource.UserSelectWindow.InvalidPassword);
                    return;
                }
            }

            WindowPasswordModify passwordDlg = new WindowPasswordModify();
            if ((bool)passwordDlg.ShowDialog() == false)
            {
                MessageBox.Show(Manager.StringResourceManager.Instance.Resource.GUI.MainResource.UserSelectWindow.CancelledChangePassword);
                return;
            }

            if (comboBoxPermission.SelectedIndex == 0)
            {
                Manager.ConfigManager.Instance.Config.MaintenancePassword = passwordDlg.Password;
            }
            else if (comboBoxPermission.SelectedIndex == 1)
            {
                Manager.ConfigManager.Instance.Config.AdministratorPassword = passwordDlg.Password;
            }

            passwordBox1.Password = passwordDlg.Password;
        }
        private void buttonChangePassword_Click(object sender, RoutedEventArgs e)
        {
            Equipment.MainEquipment mainEquip = Equipment.EquipmentManager.Instance.MainEquip;

            if (comboBoxPermission.SelectedIndex == 1)
            {
                if (mainEquip.CurrentUser != Equipment.StandardEquipment.UserPermission.MASTER )
                {
                    var msg = Utility.UtilityClass.GetStringResource(this, "CHANGE USER LEVEL MASTER ", "CHANGE USER LEVEL MASTER");
                    MessageBox.Show(msg);
                    return;
                }
            }
            //if (comboBoxPermission.SelectedIndex == 0)
            //{
            //    if (Manager.ConfigManager.Instance.Config.MaintenancePassword !=
            //        passwordBox1.Password)
            //    {
            //        var msg = Utility.UtilityClass.GetStringResource(this, "InvalidPassword", "Invalid password");
            //        MessageBox.Show(msg);
            //        return;
            //    }
            //}
            //else if (comboBoxPermission.SelectedIndex == 1)
            //{
            //    if (Manager.ConfigManager.Instance.Config.AdministratorPassword !=
            //        passwordBox1.Password)
            //    {
            //        var msg = Utility.UtilityClass.GetStringResource(this, "InvalidPassword", "Invalid password");
            //        MessageBox.Show(msg);
            //        return;
            //    }
            //}
            //else if (comboBoxPermission.SelectedIndex == 2)
            //{
            //    if (Manager.ConfigManager.Instance.Config.RCSPassword !=
            //        passwordBox1.Password)
            //    {
            //        var msg = Utility.UtilityClass.GetStringResource(this, "InvalidPassword", "Invalid password");
            //        MessageBox.Show(msg);
            //        return;
            //    }
            //}

            WindowPasswordModify passwordDlg = new WindowPasswordModify();
            if ((bool)passwordDlg.ShowDialog() == false)
            {
                var msg = Utility.UtilityClass.GetStringResource(this, "CancelledChangePassword", "Cancelled changed password");
                MessageBox.Show(msg);
                return;
            }

            if (comboBoxPermission.SelectedIndex == 0)
            {
                Manager.ConfigManager.Instance.Config.MaintenancePassword = passwordDlg.Password;
            }
            else if (comboBoxPermission.SelectedIndex == 1)
            {
                Manager.ConfigManager.Instance.Config.AdministratorPassword = passwordDlg.Password;
            }
            else if (comboBoxPermission.SelectedIndex == 2)
            {
                Manager.ConfigManager.Instance.Config.RCSPassword = passwordDlg.Password;
            }

            passwordBox1.Password = passwordDlg.Password;
        }