コード例 #1
0
 private void GeneralKeyDown(object sender, KeyEventArgs e)
 {
     if (e.Control && e.KeyCode == Keys.L)
     {
         LatestWatched watched = new LatestWatched();
         watched.ShowDialog();
     }
 }
コード例 #2
0
 private void mnStrp_LatestEpsWatched_Click(object sender, EventArgs e)
 {
     if (StaticInfo.CurrentDatabase != null)
     {
         LatestWatched latestWatched = new LatestWatched();
         latestWatched.ShowDialog();
     }
 }
コード例 #3
0
 private void txt_Search_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Shift && e.KeyCode == Keys.Enter && File.Exists(StaticInfo.LocalSeriesPath + txt_Search.Text + ".json"))
     {
         ConfigurationManager manager = new ConfigurationManager();
         JObject   JOserie            = (JObject)Newtonsoft.Json.JsonConvert.DeserializeObject(File.ReadAllText(StaticInfo.LocalSeriesPath + txt_Search.Text + ".json"));
         CLSerie   serie     = manager.GetSeriesFromJson(JOserie);
         AddSeries addSeries = new AddSeries(serie);
         addSeries.ShowDialog();
     }
     else if (e.KeyCode == Keys.Enter)
     {
         btn_ConfirmSearch.PerformClick();
     }
     else if (e.Control && e.KeyCode == Keys.L)
     {
         LatestWatched watched = new LatestWatched();
         watched.ShowDialog();
     }
 }