private void Add_Click(object sender, EventArgs e)
 {
     QueryAdd addForm = new QueryAdd();
     addForm.ShowDialog(this);
     if (addForm.DialogResult == DialogResult.OK)
     {
         GetFavoriteQuery();
         MakeFavoriteQuerys();
     }
 }
 private void 編集ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     QueryDefine tmp = (QueryDefine)SelectQuerys.SelectedItem;
     QueryAdd addForm = new QueryAdd(tmp, FavoriteQueryTitles.Contains(tmp.Title));
     addForm.ShowDialog(this);
 }
 private void 編集ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     QueryAdd addForm = new QueryAdd((QueryDefine)FavoriteQuerys.SelectedItem, true);
     addForm.ShowDialog(this);
 }