diff --git a/CodeTranslator/CodeTranslator.csproj b/CodeTranslator/CodeTranslator.csproj index a28b46f..7ea80df 100644 --- a/CodeTranslator/CodeTranslator.csproj +++ b/CodeTranslator/CodeTranslator.csproj @@ -55,6 +55,8 @@ MSBuild:Compile Designer + + MSBuild:Compile diff --git a/CodeTranslator/Exceptions/OredrException.cs b/CodeTranslator/Exceptions/OredrException.cs new file mode 100644 index 0000000..b3f552f --- /dev/null +++ b/CodeTranslator/Exceptions/OredrException.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CodeTranslator.Exceptions +{ + public class OredrException : Exception + { + public OredrException() : base() { } + public OredrException(string exception, int line, params object[] args) + : base(string.Format(exception, line, args[0])) { } + public OredrException(string exceptionMessage, Exception inner) : base(exceptionMessage, inner) { } + } +} diff --git a/CodeTranslator/Exceptions/SyntaxException.cs b/CodeTranslator/Exceptions/SyntaxException.cs new file mode 100644 index 0000000..f610150 --- /dev/null +++ b/CodeTranslator/Exceptions/SyntaxException.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CodeTranslator.Exceptions +{ + public class SyntaxException : Exception + { + public SyntaxException() : base() { } + + public SyntaxException(string exception, int line, params object[] args) + : base(string.Format(exception, line, args[0])) { } + + public SyntaxException(string exceptionMessage, Exception inner) : base(exceptionMessage, inner) { } + } +} diff --git a/CodeTranslator/MainWindow.xaml b/CodeTranslator/MainWindow.xaml index 1603dc5..7161d34 100644 --- a/CodeTranslator/MainWindow.xaml +++ b/CodeTranslator/MainWindow.xaml @@ -5,7 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:CodeTranslator" mc:Ignorable="d" - Title="MainWindow" Height="764" Width="800" Visibility="Visible" WindowStyle="None" Padding="0" Margin="0"> + Title="MainWindow" Height="784" Width="1200" Visibility="Visible" WindowStyle="ToolWindow" Padding="0" Margin="0"> @@ -16,12 +16,12 @@ - - + +