public void TestMethod5() { SourceWebDAL dal = new SourceWebDAL(); SourceWeb web = dal.GetEntity(1); Console.WriteLine(web.Web); }
bool Check_Internet() { if (SourceWeb.IsConnectedToInternet() == false) { MessageBox.Show("Cheack your connect with Internet !!!"); return(false); } return(true); }
public void TestMethod4() { SourceWebDAL dal = new SourceWebDAL(); SourceWeb web = new SourceWeb { Id = 1, CreateDate = DateTime.Now, CreateBy = 1, Web = "test222", URL = "www.testtest.com", IsDelete = true }; int result = dal.Update(web); Console.WriteLine(result); }
public void TestMethod2() { SourceWebDAL dal = new SourceWebDAL(); SourceWeb web = new SourceWeb { CreateDate = DateTime.Now, CreateBy = 1, Web = "test", URL = "www.test.com", IsDelete = false }; int result = dal.Insert(web); Console.WriteLine(result); }
void Search_Playlist_Online(string searchkey) { if (SourceWeb.IsConnectedToInternet() == false) { MessageBox.Show("Check your connect with Internet !!!"); return; } List_Collection.List_Playlist_Online = Reader_HTML.SearchPlaylists(searchkey); Read_XML.Create_XML_Playlist_Online(); UC_Connection_Online.Init_Control(); }
void Search_Video_Online(string searchkey) { if (SourceWeb.IsConnectedToInternet() == false) { MessageBox.Show("Check your connect with Internet !!!"); return; } List_Collection.List_Video_Online = Youtube.LoadVideosKey(searchkey); Read_XML.Create_XML_Video_Online(); UC_Connection_Online.Init_Control(); }
protected override void InternalProcessRecord() { bool copyWorkflows = !NoWorkflows.IsPresent; bool copyColumns = !NoColumns.IsPresent; bool copyDocConversions = !NoDocConversions.IsPresent; bool copyDocInfoPanel = !NoDocInfoPanel.IsPresent; bool copyPolicies = !NoPolicies.IsPresent; bool copyDocTemplate = !NoDocTemplate.IsPresent; SPWeb sourceWeb = null; SPContentType sourceCT = null; if (SourceWeb != null) { sourceWeb = SourceWeb.Read(); } try { sourceCT = SourceContentType.Read(sourceWeb); } finally { if (sourceWeb != null) { sourceWeb.Dispose(); } } using (SPWeb targetWeb = TargetWeb.Read()) { Logger.Write("Start Time: {0}", DateTime.Now.ToString()); Common.ContentTypes.CopyContentTypes ctCopier = new Common.ContentTypes.CopyContentTypes( copyWorkflows, copyColumns, copyDocConversions, copyDocInfoPanel, copyPolicies, copyDocTemplate); ctCopier.Copy(sourceCT, targetWeb); } Logger.Write("Finish Time: {0}", DateTime.Now.ToString()); }