private void OpenViewer(ScriptEdit.UseType useType)
        {
            var item = this.lbxCmds.SelectedItem as IIndexItem <DefaultFileExtraInfo>;

            if (item != null)
            {
                ScriptEdit win = new ScriptEdit(this, item, useType);
                win.ShowDialog();
            }
        }
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            ScriptEdit win = new ScriptEdit(this, null, ScriptEdit.UseType.New);

            win.ShowDialog();
        }