public TxtDivFunc1(string FilePath, int DivSize) { TxtIO TxtIO = new TxtIO(); str = TxtIO.TxtRead(FilePath); FileSize = TxtIO.FileSize(FilePath); SepSize = DivSize; }
private void Btn_Click(object sender, RoutedEventArgs e) { TxtIO TxtR = new TxtIO(); TxtDispose TxtDp = new TxtDispose(); TxtDivFunc1 Func1 = new TxtDivFunc1("TextFile.txt", 32800); TxtBox.Text = TxtR.TxtRead("TextFile.txt"); TxtBlk.Text = TxtR.FileSize("TextFile.txt").ToString(); Func1.func1(2); }