public static void doBackUp(BackUp obj, NotifyIcon notifyIcon_Main, List <BackUp> backUpList, string saveFile, DataGridView dtgrdvDisplay) { try { obj.objInit(); obj.pathToListAdd(obj.pathTo); DirectoryCopy(obj.pathFrom, obj.pathToList[obj.pathToList.Count - 1], true); notifyIcon_Main.BalloonTipTitle = "New Backup Created"; notifyIcon_Main.BalloonTipText = obj.descr + Environment.NewLine + "From:" + obj.pathFrom + Environment.NewLine + "To:" + obj.pathTo; notifyIcon_Main.ShowBalloonTip(500); obj.historyDateList.Add(DateTime.Now); obj.historyList.Add(new BackUpHistory(DateTime.Now, true, obj.size, obj.files, obj.folders)); obj.displayInit(); SaveBackUp(backUpList, saveFile); gridRefresh(backUpList, dtgrdvDisplay); } catch { } }