public void CopyWWdeliveryDoc() { conf Config = new conf(); try { File.Copy(pdfName, Config.outPath + "Rok_20" + year + "\\WW\\" + docName + "_DD.pdf"); StreamWriter WW; WW = File.AppendText(fileLog); WW.WriteLine(Config.outPath + "Rok_20" + year + "\\WW\\" + docName + "_DD.pdf"); WW.Close(); } catch (IOException) { FileInfo infoFirst = new FileInfo(Config.outPath + "Rok_20" + year + "\\WW\\" + docName + "_DD.pdf"); long byteFirst = infoFirst.Length; FileInfo infoSecond = new FileInfo(pdfName); long byteSecond = infoSecond.Length; if (byteFirst != byteSecond) { File.Copy(pdfName, Config.outPath + "Rok_20" + year + "\\duplikaty\\" + docName + "_DD.pdf"); StreamWriter WW2; WW2 = File.AppendText(fileLog); WW2.WriteLine("!! DUPLIKAT !! " + Config.outPath + "Rok_20" + year + "\\do_polaczenia\\" + docName + "_DD.pdf" + " !! DUPLIKAT !!"); WW2.Close(); } else { StreamWriter WW3; WW3 = File.AppendText(fileLog); WW3.WriteLine("!! Identyczny plik istnieje !! " + Config.outPath + "Rok_20" + year + "\\" + docName + "_DD.pdf" + " !! Identyczny plik istnieje !!"); WW3.Close(); } } }
public CClink_Variable() { _X = new X(MAX_X_COUNT); _Y = new Y(MAX_Y_COUNT); _SB = new SB(MAX_SB_COUNT); _SW = new SW(MAX_SW_COUNT); _RAB = new RAB(MAX_RAB_COUNT); _WW = new WW(MAX_WW_COUNT); _WR = new WR(MAX_WR_COUNT); _SPB = new SPB(MAX_SPB_COUNT); }
public Game() { gameStage = GS.Off; whoWalk = WW.Player; }