From cbad923333c69caccde6b9bb49297cb36b35a77e Mon Sep 17 00:00:00 2001 From: Serraniel Date: Mon, 26 Mar 2018 00:01:03 +0200 Subject: [PATCH] Removed unneccasry parts of code --- Discord Media Loader.Application/MainForm.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Discord Media Loader.Application/MainForm.cs b/Discord Media Loader.Application/MainForm.cs index 2142fda..59ccd1c 100644 --- a/Discord Media Loader.Application/MainForm.cs +++ b/Discord Media Loader.Application/MainForm.cs @@ -262,18 +262,6 @@ namespace DML.Application private async void toolStripDropDownButton1_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e) { - - - /* - * var uiScheduler = TaskScheduler.FromCurrentSynchronizationContext(); - Task.Factory.StartNew(delegate { DoBackgroundComputation(); }, - backgroundScheduler). - ContinueWith(delegate { UpdateUI(); }, uiScheduler). - */ - - var backgroundScheduler = TaskScheduler.Default; - var uiScheduler = TaskScheduler.FromCurrentSynchronizationContext(); - OnlineState state = (OnlineState)Convert.ToInt32(e.ClickedItem.Tag); lbStatus.Text = state.ToString();