// Save a BO file
 public static void SaveBO(BuildOrder bo)
 {
     using (StreamWriter file = new StreamWriter(string.Concat(DirectoryPath(), bo.ToPath())))
     {
         file.Write(bo.ToFormat());
     }
 }
Exemple #2
0
        private void CopyClipboardClic(object sender, RoutedEventArgs e)
        {
            BuildOrder selectedBo = GetSelectedBO();

            if (selectedBo == null)
            {
                // TODO Write a error message on a label
                return;
            }

            Clipboard.SetText(selectedBo.ToFormat());
            // TODO confirmation message in a label
        }