//Paste to from the Clipboard private void Button_PasteFromClipboard(object sender, RoutedEventArgs e) { //Get the File Path string FilePath = Directory.GetCurrentDirectory() + "/StorageTextToolbox/Infos/" + MyIDText + ".txt"; //Get Item from the ComboBox string MyEncoding = ReturnEncoding(); if (MyEncoding != null) { Encoding encoding = Encoding.Default; //Get Encoding encoding = DesignUtils.GetEncodingIDText(MyIDText); //Paste Argument from the Clipboard string OutputText = DesignUtils.PasteArgumentFromClipboard(); //Update Control UpdateControl(MyArgument.Replace(" ", ""), OutputText); //Update Text File Row Argument DesignUtils.CallUpdateTextFileRowArgument(FilePath, MyArgument, OutputText, encoding); } }
//Paste to from the Clipboard private void Button_PasteFromClipboard(object sender, RoutedEventArgs e) { Encoding encoding = Encoding.Default; //Return IDText Parent string MyIDTextParent = DesignUtils.ReturnCurrentFileIDText(); //Get Encoding encoding = DesignUtils.GetEncodingIDText(MyIDTextParent); //Get the File Path string FilePath = Directory.GetCurrentDirectory() + "/StorageTextToolbox/Infos/" + MyIDText + ".txt"; //Paste Argument from the Clipboard string OutputText = DesignUtils.PasteArgumentFromClipboard(); //Update Control UpdateControl("SearchWord", OutputText); //Update Text File Row Argument DesignUtils.CallUpdateTextFileRowArgument(FilePath, MyArgument, OutputText, encoding); }