예제 #1
0
 public void Start(MainWindow mainwnd)
 {
     this.mainwnd = mainwnd;
     if (!File.Exists(ftbpath))
     {
         WebClient wc = new WebClient();
         wc.DownloadFileAsync(new Uri(ftburl), ftbpath);
         wc.DownloadFileCompleted += wc_DownloadFileCompleted;
     }
     TabPage t = mainwnd.GetTab("tabBackups");
     Control[] cbx = t.Controls.Find("cbxMCStart",true);
     if (cbx.Length > 0)
     {
         ComboBox cbxMCStart = cbx[0] as ComboBox;
         this.cbxMCStart = cbxMCStart;
         cbxMCStart.Items.Add("Start FTB");
         cbxMCStart.SelectedIndexChanged += cbxMCStart_SelectedIndexChanged;
     }
 }
예제 #2
0
 internal static void StartPlugins(MainWindow wnd)
 {
     plugins.ForEach(p => p.Start(wnd));
 }