示例#1
0
        protected void OnBtnUploadUrlEventManagerClicked(object sender, EventArgs e)
        {
            FileChooserDialog fileChooser = new FileChooserDialog("Choose Files to View", this, FileChooserAction.Open, "Cancel", ResponseType.Cancel, "Open", ResponseType.Accept);

            if (fileChooser.Run() == (int)ResponseType.Accept)
            {
                //txtEntryUploadAccount.Text = fileChooser.Filename.ToString ();
                objEventManager.LstEventURLsEventInviter = GlobusFileHelper.ReadFile(fileChooser.Filename.ToString().Trim());
                Addtologger("Event Url Loaded : " + objEventManager.LstEventURLsEventInviter.Count);
            }

            fileChooser.Destroy();
        }
示例#2
0
        //socialautobot.PageManager ObjPageManager=new socialautobot.PageManager();


        protected void OnBtnUploadKeywordClicked(object sender, EventArgs e)
        {
            FileChooserDialog fileChooser = new FileChooserDialog("Choose Files to View", this, FileChooserAction.Open, "Cancel", ResponseType.Cancel, "Open", ResponseType.Accept);

            if (fileChooser.Run() == (int)ResponseType.Accept)
            {
                //txtEntryUploadAccount.Text = fileChooser.Filename.ToString ();
                PageManager.lstFanPageKeyWords = GlobusFileHelper.ReadFile(fileChooser.Filename.ToString().Trim());                    // upload correct Message
                Addtologger("Fan page KeyWords Loaded : " + PageManager.lstFanPageKeyWords.Count);
            }

            fileChooser.Destroy();
        }
示例#3
0
        protected void OnBtnUploadUrlClicked(object sender, EventArgs e)
        {
            FileChooserDialog fileChooser = new FileChooserDialog("Choose Files to View", this, FileChooserAction.Open, "Cancel", ResponseType.Cancel, "Open", ResponseType.Accept);

            if (fileChooser.Run() == (int)ResponseType.Accept)
            {
                //txtEntryUploadAccount.Text = fileChooser.Filename.ToString ();
                PageManager.lstFanPagePostURLs              = GlobusFileHelper.ReadFile(fileChooser.Filename.ToString().Trim());       // upload correct Message
                PageManager.lstFanPageUrlsFanPageLiker      = PageManager.lstFanPagePostURLs;
                ObjFan.lstFanPageUrlCollectionFanPagePoster = PageManager.lstFanPageUrlsFanPageLiker;

                ObjFan.LstDownloadPhotoURLsDownloadPhoto = PageManager.lstFanPageUrlsFanPageLiker;
                Addtologger("Fan page Urls Loaded : " + PageManager.lstFanPagePostURLs.Count);
            }

            fileChooser.Destroy();
        }
示例#4
0
 private void BrowseUnFollowList()
 {
     try
     {
         ClGlobul.lstUploadUnFollowList.Clear();
         FileChooserDialog objFileChooser = new FileChooserDialog("Choose Files To View", this, FileChooserAction.Open, "Cancel", ResponseType.Cancel, "Open", ResponseType.Accept);
         if (objFileChooser.Run() == (int)ResponseType.Accept)
         {
             txtUnFollowList_UnFollow.Text  = objFileChooser.Filename.ToString();
             ClGlobul.lstUploadUnFollowList = GlobusFileHelper.ReadFile(txtUnFollowList_UnFollow.Text.Trim());
             GlobusLogHelper.log.Info("[ " + DateTime.Now + "] => [ Total UnFollow List Uploaded :" + ClGlobul.lstUploadUnFollowList.Count + " ]");
         }
         objFileChooser.Destroy();
     }
     catch (Exception ex)
     {
         Console.Write(ex.Message);
     }
 }
示例#5
0
        protected void OnBtnLoadUrlsMessageClicked(object sender, EventArgs e)
        {
            try
            {
                FileChooserDialog fileChooser = new FileChooserDialog("Choose Files to View", this, FileChooserAction.Open, "Cancel", ResponseType.Cancel, "Open", ResponseType.Accept);

                if (fileChooser.Run() == (int)ResponseType.Accept)
                {
                    //txtEntryUploadAccount.Text = fileChooser.Filename.ToString ();
                    objFriendManager.lstWallPostURLsWallPoster = GlobusFileHelper.ReadFile(fileChooser.Filename.ToString().Trim());                        // upload correct Message
                    Addtologger("Urls Loaded : " + objFriendManager.lstWallPostURLsWallPoster.Count);
                }

                fileChooser.Destroy();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
示例#6
0
        protected void OnBtnUploadDetailsEventCreatorClicked(object sender, EventArgs e)
        {
            try
            {
                FileChooserDialog fileChooser = new FileChooserDialog("Choose Files to View", this, FileChooserAction.Open, "Cancel", ResponseType.Cancel, "Open", ResponseType.Accept);

                if (fileChooser.Run() == (int)ResponseType.Accept)
                {
                    //txtEntryUploadAccount.Text = fileChooser.Filename.ToString ();
                    objEventManager.LstEventDetailsEventCreator = GlobusFileHelper.ReadFile(fileChooser.Filename.ToString().Trim());

                    Addtologger("Event creator Details Loaded : " + objEventManager.LstEventDetailsEventCreator.Count);
                }

                fileChooser.Destroy();
            }
            catch (Exception Ex)
            {
                Console.WriteLine(Ex.StackTrace);
            }
        }
示例#7
0
        protected void OnBtnLoadFanpageUrlsClicked(object sender, EventArgs e)
        {
            FBUtils.CheckUploadProfileUrls = true;
            try
            {
                FileChooserDialog fileChooser = new FileChooserDialog("Choose Files to View", this, FileChooserAction.Open, "Cancel", ResponseType.Cancel, "Open", ResponseType.Accept);

                if (fileChooser.Run() == (int)ResponseType.Accept)
                {
                    //txtEntryUploadAccount.Text = fileChooser.Filename.ToString ();
                    FBUtils.LoadFanpageUrls = GlobusFileHelper.ReadFile(fileChooser.Filename.ToString().Trim());                        // upload correct Message

                    Addtologger("Profile Urls Loaded : " + FBUtils.LoadFanpageUrls.Count);
                }

                fileChooser.Destroy();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
示例#8
0
        protected void OnBtnFanPageLoadUrlsMassegeClicked(object sender, EventArgs e)
        {
            try
            {
                FileChooserDialog fileChooser = new FileChooserDialog("Choose Files to View", this, FileChooserAction.Open, "Cancel", ResponseType.Cancel, "Open", ResponseType.Accept);

                if (fileChooser.Run() == (int)ResponseType.Accept)
                {
                    //txtEntryUploadAccount.Text = fileChooser.Filename.ToString ();
                    //GroupManager.LstOfGroupKeywords = GlobusFileHelper.ReadFile (fileChooser.Filename.ToString ().Trim ()); // upload correct Message
                    ObjFan.lstFanPageUrlCollectionFanPagePostUrl = GlobusFileHelper.ReadFile(fileChooser.Filename.ToString().Trim());


                    Addtologger("Urls Loaded : " + ObjFan.lstFanPageUrlCollectionFanPagePostUrl.Count);
                }

                fileChooser.Destroy();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.StackTrace);
            }
        }
示例#9
0
        //PageManager ObjFan=new PageManager();
        protected void OnBtnUploadMessageFanPageClicked(object sender, EventArgs e)
        {
            try
            {
                FileChooserDialog fileChooser = new FileChooserDialog("Choose Files to View", this, FileChooserAction.Open, "Cancel", ResponseType.Cancel, "Open", ResponseType.Accept);

                if (fileChooser.Run() == (int)ResponseType.Accept)
                {
                    //txtEntryUploadAccount.Text = fileChooser.Filename.ToString ();
                    //GroupManager.LstOfGroupKeywords = GlobusFileHelper.ReadFile (fileChooser.Filename.ToString ().Trim ()); // upload correct Message
                    ObjFan.lstFanPageUrlCollectionFanPagePostUrl         = GlobusFileHelper.ReadFile(fileChooser.Filename.ToString().Trim());
                    PageManager.lstFanPageCollectionFanPagePosterMessage = ObjFan.lstFanPageUrlCollectionFanPagePostUrl;

                    Addtologger("Message Loaded : " + PageManager.lstFanPageCollectionFanPagePosterMessage.Count);
                }
                chkFanPageManagerSendPicWithMessage.Active = true;
                fileChooser.Destroy();
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error : " + ex.StackTrace);
            }


            /*try
             * {
             *      Application.Init();
             *
             *      myWin = new Window("DBC Settings");
             *      myWin.Resize(400,200);
             *      myWin.SetPosition (WindowPosition.CenterAlways);
             *      myWin.Resizable = false;
             *      Fixed myfixed = new Fixed();
             *      myfixed.WidthRequest = 400;
             *      myfixed.HeightRequest = 200;
             *      //Create a label and put some text in it.
             *      Label lblUserName = new Label();
             *      lblUserName.Text = "DBC UserName: "******"DBC Password: "******"save");
             *      btnSave.SetSizeRequest (100, 30);
             *
             *      Button btnClear = new Button ("Clear");
             *      btnClear.SetSizeRequest (100, 30);
             *
             *      FontDescription font = new Pango.FontDescription();
             *      font.Size = 64;
             *
             *      font.Family = "Courier";
             *      font.Weight=Weight.Bold;
             *      lblPassword.ModifyFont(font);
             *      rbk_downloadFanPagePictures.ModifyFont(font);
             *
             *      myfixed.Put (txtDBCUserName,170,35);
             *      myfixed.Put (lblUserName,20,35);
             *      myfixed.Put (lblPassword,24,80);
             *      myfixed.Put (txtDBCPassword,170,80);
             *      myfixed.Put (btnSave,100,120);
             *      myfixed.Put (btnClear,210,120);
             *      myWin.Add(myfixed);
             *      myWin.DeleteEvent += delegate { Application.Quit(); };
             *      //btnSave.Clicked+=onClickSave;
             *      //btnClear.Clicked+=onClickClear;
             *      //LoadDBC();
             *
             *      myWin.ShowAll();
             *      Application.Run();
             *
             * }
             * catch{
             * }*/
        }