private void ButtonAddItem_Click(object sender, RoutedEventArgs e)
        {
            Global.WaitingWindowIsClose = true;
            HmEditItemWindow window = new HmEditItemWindow()
            {
                ShowInTaskbar = false,
                Owner         = this
            };

            window.ShowDialog();
            ShowAllItems(Global.hmItems);
        }
        private void ButtonEditItem_Click(object sender, RoutedEventArgs e)
        {
            if (_SelIndex < 0)
            {
                MessageBox.Show("未选择任何项目!", "操作提示");
                return;
            }

            Global.WaitingWindowIsClose = true;
            DYHMItemPara item    = Global.hmItems[_SelIndex];
            bool         canEdit = false;

            if (string.Empty.Equals(item.Password))
            {
                canEdit = true;
            }
            else
            {
                for (int i = 0; i < 1; i++)
                {
                    InputDialog dialog = new InputDialog("请输入密码");
                    dialog.ShowDialog();
                    if (dialog.GetResult())
                    {
                        if (dialog.GetInput().Equals(item.Password))
                        {
                            canEdit = true;
                            break;
                        }
                        else
                        {
                            canEdit = false;
                            MessageBox.Show("密码错误");
                        }
                        i--;
                    }
                }
            }
            if (canEdit)
            {
                HmEditItemWindow window = new HmEditItemWindow()
                {
                    _item         = Global.hmItems[_SelIndex],
                    ShowInTaskbar = false,
                    Owner         = this
                };
                window.ShowDialog();
                ShowAllItems(Global.hmItems, _SelIndex);
            }
        }