public static void DownloadAll(bool slow, bool report = true) { int cidlenght = FTPHandle.GetCIDLenght(); if (report) { Program.WriteTxt($"&4CID Download : [{lastreadline}]/[{cidlenght}]"); } FTPHandle.ftp.Disconnect(); while (cidlenght > lastreadline) { string txt = FTPHandle.GetCIDTxt(lastreadline + 1); if (txt.Contains("#to*all#") || txt.Contains("#to" + client_id + "#")) { txt = txt.Replace("#to*all#", ""); txt = txt.Replace("#to" + client_id + "#", ""); unread.Add(txt); } lastreadline++; if (report) { CLEAR.ClearOneLine(); } if (report) { Program.WriteTxt($"&4CID Download : [{lastreadline}]/[{cidlenght}]"); } } }
public static void DownloadAll(bool report = true) { int cidlenght = FTPHandle.GetCIDLenght(); List <string> list = FTPHandle.GetCIDList(); if (report) { Program.WriteTxt($"&4CID Download : [{lastreadline}]/[{cidlenght}]"); } while (cidlenght > lastreadline) { string txt = list[lastreadline]; if (txt.Contains("#to*all#") || txt.Contains("#to" + client_id + "#")) { txt = txt.Replace("#to*all#", ""); txt = txt.Replace("#to" + client_id + "#", ""); string fcid = txt[txt.Length - 7].ToString() + txt[txt.Length - 6].ToString() + txt[txt.Length - 5].ToString() + txt[txt.Length - 4].ToString() + txt[txt.Length - 3].ToString() + txt[txt.Length - 2].ToString(); fcid = fcid.Replace(client_id.ToString(), $"{client_id} &5(YOU)"); txt = txt.Remove(txt.Length - 15, 15); // #from#:[123456] unread.Add($"&e{fcid} &b: &f" + txt); } lastreadline++; if (report) { CLEAR.ClearOneLine(); } if (report) { Program.WriteTxt($"&4CID Download : [{lastreadline}]/[{cidlenght}]"); } } }
public static List <FluentFTP.FtpListItem> Run(List <string> args) { Program.WriteTxt("&e&4=&a-&4=&a-&4=&a-&4=&a-&4=&a-&4=&aFILE LIST&4=&a-&4=&a-&4=&a-&4=&a-&4=&a-&4=&a-&4="); var list = FTPHandle.GetItemsList("0RootScreenShot08/"); foreach (var item in list) { CLEAR.ClearOneLine(); } foreach (var item in list) { string tmp = ""; for (int i = 0; i < item.FullName.Split("/"[0]).Length - 2; i++) { tmp += "--"; } string txt = $"&8{tmp}&2{item.FullName.Trim('/')}"; if (item.Type == FluentFTP.FtpFileSystemObjectType.File) { txt = txt.Replace(txt.Split('/')[txt.Split('/').Length - 1], $"&a{txt.Split('/')[txt.Split('/').Length - 1]}&2"); } txt = txt.Replace("/", "&6/&2"); if (txt.Contains('.')) { txt = txt.Replace(txt.Split('.')[txt.Split('.').Length - 1], $"&e{txt.Split('.')[txt.Split('.').Length - 1]}"); } txt = txt.Replace(".", "&b.&2"); Program.WriteTxt(txt); } Program.WriteTxt("&4=&a-&4=&a-&4=&a-&4=&a-&4=&a-&4=&a-&4=&a-&4=&a-&4=&a-&4=&a-&4=&a-&4=&a-&4=&a-&4=&a-&4=&a-&4=&a-&4="); return(list); }
public static string Run(List <string> args) { Program.WriteTxt("&5Press Any Key To Exit..."); Program.WriteTxt("&5Press [ESC] to Cancel"); if (Console.ReadKey().Key != ConsoleKey.Escape) { Environment.Exit(0); } Program.WriteTxt(""); CLEAR.ClearOneLine(); return(""); }
private void Button_Clicked_erase(object sender, EventArgs e) { html_addr HA = (html_addr)BindingContext; EDI1.Text = "CLEAR"; HA.html_png_erase(); // Image Binding Clear AI_Learn_flg = false; chart_erase = false; CLEAR stk_clr = new CLEAR(); stk_clr.CLEAR_STOCK(ref stock, Kind_Constants.test_120days); //SKPaint(Chart) // canvasView.InvalidateSurface(); }
public static string Run(List <string> args) { CLEAR.ClearOneLine(); if (Program.GetArgs(args, 1, -1) == "4628") { loged = true; } if (Program.GetArgs(args, 1).ToLower() == "lo") { loged = false; } if (loged) { Program.WriteTxt($"&aLogged : {loged}"); } else { Program.WriteTxt($"&4Logged : {loged}"); } return(""); }
internal void Clear(CLEAR z) { this.CurrentForm.Clear(z); }
public static string Run(List <string> args) { CLEAR.ClearOneLine(); Program.WriteTxt(Program.GetArgs(args, 1, -1)); return(""); }