private void _createSmartFilterToolStripButton_Click(object sender, EventArgs e)
        {
            using (var dialog = new QueryHolderEditForm()) {
                var app    = MemopadApplication.Instance;
                var filter = MemoFactory.CreateTransientSmartFilter();
                filter.Query       = MemoFactory.CreateTransientQuery();
                filter.Name        = "新しいスマートフィルタ";
                dialog.QueryHolder = filter;
                if (dialog.ShowDialog(app.MainForm) == DialogResult.OK)
                {
                    app.Container.Persist(dialog.QueryHolder.Query);
                    app.Container.Persist(dialog.QueryHolder);

                    UpdateSmartFilterListBox();
                    UpdateToolStrip();
                }
            }
        }
        private void EditSelectedSmartFilter()
        {
            var filter = SelectedSmartFilter;

            if (filter == null)
            {
                return;
            }

            using (var dialog = new QueryHolderEditForm()) {
                var app = MemopadApplication.Instance;
                dialog.QueryHolder = filter;
                if (dialog.ShowDialog(app.MainForm) == DialogResult.OK)
                {
                    UpdateSmartFilterListBox();
                    UpdateToolStrip();
                }
            }
        }