diff --git a/CI/azure-pipelines.yml b/CI/azure-pipelines.yml index 31750aada..fe5a71917 100644 --- a/CI/azure-pipelines.yml +++ b/CI/azure-pipelines.yml @@ -15,12 +15,10 @@ pr: jobs: - job: xFunc pool: - vmImage: 'windows-latest' + vmImage: 'ubuntu-latest' variables: - uiSolution: 'xFunc/xFunc.UI.sln' solution: 'xFunc.sln' - buildPlatform: 'Any CPU' buildConfiguration: 'Release' steps: @@ -61,18 +59,6 @@ jobs: displayName: 'Publish to Codecov' env: CODECOV_TOKEN: $(CODECOV_TOKEN) - - - task: DotNetCoreCLI@2 - displayName: 'dotnet restore' - inputs: - command: restore - projects: '$(uiSolution)' - - - task: DotNetCoreCLI@2 - displayName: 'dotnet build' - inputs: - projects: '$(uiSolution)' - arguments: '-c $(buildConfiguration)' - task: DotNetCoreCLI@2 displayName: 'dotnet pack' @@ -96,14 +82,4 @@ jobs: - task: PublishPipelineArtifact@1 inputs: path: nupkgs - artifact: NuGet Packages - - - task: PublishPipelineArtifact@1 - inputs: - path: xFunc/bin/Release/netcoreapp3.1 - artifact: xFunc.UI (.NET Core 3.1) - - - task: PublishPipelineArtifact@1 - inputs: - path: xFunc/bin/Release/net6.0-windows - artifact: xFunc.UI (.NET 6) \ No newline at end of file + artifact: NuGet Packages \ No newline at end of file diff --git a/LICENSE_Ms-PL.txt b/LICENSE_Ms-PL.txt deleted file mode 100644 index 839d18d38..000000000 --- a/LICENSE_Ms-PL.txt +++ /dev/null @@ -1,31 +0,0 @@ -Microsoft Public License (Ms-PL) - -This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software. - -1. Definitions - -The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law. - -A "contribution" is the original software, or any additions or changes to the software. - -A "contributor" is any person that distributes its contribution under this license. - -"Licensed patents" are a contributor's patent claims that read directly on its contribution. - -2. Grant of Rights - -(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. - -(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. - -3. Conditions and Limitations - -(A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. - -(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. - -(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. - -(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. - -(E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. \ No newline at end of file diff --git a/README.md b/README.md index a13a1105a..59ebf7a6f 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ xFunc is a simple and easy to use application that allows you to build mathemati xFunc is a small-sized and portable application that you can use to create complex mathematical expressions which will be automatically computed. It can be used by teachers and students alike. +Note: The WPF application (xFunc UI) was migrated to a separate repository [xFunc.UI](https://github.com/sys27/xFunc.UI). + ## Features: * Calculating expressions ([supported functions and operations](https://github.com/sys27/xFunc/wiki/Supported-functions-and-operations)); diff --git a/xFunc.Tests/Expressions/Hyperbolic/HyperbolicArtangentTest.cs b/xFunc.Tests/Expressions/Hyperbolic/HyperbolicArtangentTest.cs index 2e31366f9..a0556b714 100644 --- a/xFunc.Tests/Expressions/Hyperbolic/HyperbolicArtangentTest.cs +++ b/xFunc.Tests/Expressions/Hyperbolic/HyperbolicArtangentTest.cs @@ -10,9 +10,9 @@ public class HyperbolicArtangentTest : BaseExpressionTests [Fact] public void ExecuteNumberTest() { - var exp = new Artanh(new Number(0.5)); + var exp = new Artanh(new Number(0.6)); var result = exp.Execute(); - var expected = AngleValue.Radian(0.5493061443340549); + var expected = AngleValue.Radian(0.6931471805599453); Assert.Equal(expected, result); } diff --git a/xFunc/App.xaml b/xFunc/App.xaml deleted file mode 100644 index 711e72141..000000000 --- a/xFunc/App.xaml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - diff --git a/xFunc/App.xaml.cs b/xFunc/App.xaml.cs deleted file mode 100644 index 48eeddc4a..000000000 --- a/xFunc/App.xaml.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using System; -using System.Globalization; -using System.Windows; -using xFunc.Properties; -using xFunc.Views; - -namespace xFunc -{ - - public partial class App : Application - { - - public App() - { - AppDomain.CurrentDomain.UnhandledException += (obj, args) => - { - if (Settings.Default.SaveDump) - MiniDump.CreateMiniDump(); - }; - } - - protected override void OnStartup(StartupEventArgs e) - { - var lang = Settings.Default.Lang; - if (lang != "Auto") - { - var cultureInfo = CultureInfo.GetCultureInfo(lang); - this.Dispatcher.Thread.CurrentCulture = cultureInfo; - this.Dispatcher.Thread.CurrentUICulture = cultureInfo; - } - - MainView mainView = new MainView(); - mainView.Show(); - } - - } - -} \ No newline at end of file diff --git a/xFunc/Images/Add.png b/xFunc/Images/Add.png deleted file mode 100644 index c04475885..000000000 Binary files a/xFunc/Images/Add.png and /dev/null differ diff --git a/xFunc/Images/Clear.png b/xFunc/Images/Clear.png deleted file mode 100644 index cf039f40b..000000000 Binary files a/xFunc/Images/Clear.png and /dev/null differ diff --git a/xFunc/Images/ClearLarge.png b/xFunc/Images/ClearLarge.png deleted file mode 100644 index 1d16ce6ff..000000000 Binary files a/xFunc/Images/ClearLarge.png and /dev/null differ diff --git a/xFunc/Images/Converter.png b/xFunc/Images/Converter.png deleted file mode 100644 index 2eb9e4223..000000000 Binary files a/xFunc/Images/Converter.png and /dev/null differ diff --git a/xFunc/Images/ConverterLarge.png b/xFunc/Images/ConverterLarge.png deleted file mode 100644 index 537f7d558..000000000 Binary files a/xFunc/Images/ConverterLarge.png and /dev/null differ diff --git a/xFunc/Images/Copy.png b/xFunc/Images/Copy.png deleted file mode 100644 index f34860433..000000000 Binary files a/xFunc/Images/Copy.png and /dev/null differ diff --git a/xFunc/Images/CopyLarge.png b/xFunc/Images/CopyLarge.png deleted file mode 100644 index 4f4ca1f70..000000000 Binary files a/xFunc/Images/CopyLarge.png and /dev/null differ diff --git a/xFunc/Images/Copy_16.png b/xFunc/Images/Copy_16.png deleted file mode 100644 index f20df387f..000000000 Binary files a/xFunc/Images/Copy_16.png and /dev/null differ diff --git a/xFunc/Images/Cut.png b/xFunc/Images/Cut.png deleted file mode 100644 index 2701f6896..000000000 Binary files a/xFunc/Images/Cut.png and /dev/null differ diff --git a/xFunc/Images/CutLarge.png b/xFunc/Images/CutLarge.png deleted file mode 100644 index 89ce23045..000000000 Binary files a/xFunc/Images/CutLarge.png and /dev/null differ diff --git a/xFunc/Images/Delete.png b/xFunc/Images/Delete.png deleted file mode 100644 index 8c7ca75c5..000000000 Binary files a/xFunc/Images/Delete.png and /dev/null differ diff --git a/xFunc/Images/DeleteLarge.png b/xFunc/Images/DeleteLarge.png deleted file mode 100644 index 9f63a08c2..000000000 Binary files a/xFunc/Images/DeleteLarge.png and /dev/null differ diff --git a/xFunc/Images/Edit.png b/xFunc/Images/Edit.png deleted file mode 100644 index 5fbf9ca1f..000000000 Binary files a/xFunc/Images/Edit.png and /dev/null differ diff --git a/xFunc/Images/Function.png b/xFunc/Images/Function.png deleted file mode 100644 index 0f432ed05..000000000 Binary files a/xFunc/Images/Function.png and /dev/null differ diff --git a/xFunc/Images/FunctionLarge.png b/xFunc/Images/FunctionLarge.png deleted file mode 100644 index eec19452d..000000000 Binary files a/xFunc/Images/FunctionLarge.png and /dev/null differ diff --git a/xFunc/Images/Help.png b/xFunc/Images/Help.png deleted file mode 100644 index 49394a30d..000000000 Binary files a/xFunc/Images/Help.png and /dev/null differ diff --git a/xFunc/Images/Paste.png b/xFunc/Images/Paste.png deleted file mode 100644 index 91bf4afd6..000000000 Binary files a/xFunc/Images/Paste.png and /dev/null differ diff --git a/xFunc/Images/PasteLarge.png b/xFunc/Images/PasteLarge.png deleted file mode 100644 index d5c13a9b6..000000000 Binary files a/xFunc/Images/PasteLarge.png and /dev/null differ diff --git a/xFunc/Images/Redo.png b/xFunc/Images/Redo.png deleted file mode 100644 index 8618cdb1e..000000000 Binary files a/xFunc/Images/Redo.png and /dev/null differ diff --git a/xFunc/Images/RedoLarge.png b/xFunc/Images/RedoLarge.png deleted file mode 100644 index 059b2bfd0..000000000 Binary files a/xFunc/Images/RedoLarge.png and /dev/null differ diff --git a/xFunc/Images/Refresh.png b/xFunc/Images/Refresh.png deleted file mode 100644 index bf60ffd7f..000000000 Binary files a/xFunc/Images/Refresh.png and /dev/null differ diff --git a/xFunc/Images/Remove.png b/xFunc/Images/Remove.png deleted file mode 100644 index 736b1f309..000000000 Binary files a/xFunc/Images/Remove.png and /dev/null differ diff --git a/xFunc/Images/Tools.png b/xFunc/Images/Tools.png deleted file mode 100644 index 5818c38bc..000000000 Binary files a/xFunc/Images/Tools.png and /dev/null differ diff --git a/xFunc/Images/Undo.png b/xFunc/Images/Undo.png deleted file mode 100644 index 2e9da2dce..000000000 Binary files a/xFunc/Images/Undo.png and /dev/null differ diff --git a/xFunc/Images/UndoLarge.png b/xFunc/Images/UndoLarge.png deleted file mode 100644 index efedb95f7..000000000 Binary files a/xFunc/Images/UndoLarge.png and /dev/null differ diff --git a/xFunc/Images/Variable.png b/xFunc/Images/Variable.png deleted file mode 100644 index 9199b4ba8..000000000 Binary files a/xFunc/Images/Variable.png and /dev/null differ diff --git a/xFunc/Images/VariableLarge.png b/xFunc/Images/VariableLarge.png deleted file mode 100644 index 88b0efa83..000000000 Binary files a/xFunc/Images/VariableLarge.png and /dev/null differ diff --git a/xFunc/Images/Vars.png b/xFunc/Images/Vars.png deleted file mode 100644 index 3e4527235..000000000 Binary files a/xFunc/Images/Vars.png and /dev/null differ diff --git a/xFunc/Images/VarsLarge.png b/xFunc/Images/VarsLarge.png deleted file mode 100644 index c09921234..000000000 Binary files a/xFunc/Images/VarsLarge.png and /dev/null differ diff --git a/xFunc/Images/xFunc.ico b/xFunc/Images/xFunc.ico deleted file mode 100644 index bd016d091..000000000 Binary files a/xFunc/Images/xFunc.ico and /dev/null differ diff --git a/xFunc/MiniDump.cs b/xFunc/MiniDump.cs deleted file mode 100644 index 791c8cc92..000000000 --- a/xFunc/MiniDump.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using System; -using System.Diagnostics; -using System.IO; -using System.Runtime.InteropServices; - -namespace xFunc -{ - - internal enum MINIDUMP_TYPE - { - MiniDumpNormal = 0x00000000, - MiniDumpWithDataSegs = 0x00000001, - MiniDumpWithFullMemory = 0x00000002, - MiniDumpWithHandleData = 0x00000004, - MiniDumpFilterMemory = 0x00000008, - MiniDumpScanMemory = 0x00000010, - MiniDumpWithUnloadedModules = 0x00000020, - MiniDumpWithIndirectlyReferencedMemory = 0x00000040, - MiniDumpFilterModulePaths = 0x00000080, - MiniDumpWithProcessThreadData = 0x00000100, - MiniDumpWithPrivateReadWriteMemory = 0x00000200, - MiniDumpWithoutOptionalData = 0x00000400, - MiniDumpWithFullMemoryInfo = 0x00000800, - MiniDumpWithThreadInfo = 0x00001000, - MiniDumpWithCodeSegs = 0x00002000 - } - - internal static class MiniDump - { - - private const string DumpFile = "xFunc.exe.mdmp"; - - [DllImport("dbghelp.dll")] - static extern bool MiniDumpWriteDump(IntPtr hProcess, Int32 ProcessId, IntPtr hFile, MINIDUMP_TYPE DumpType, IntPtr ExceptionParam, IntPtr UserStreamParam, IntPtr CallbackParam); - - public static void CreateMiniDump() - { - using var stream = new FileStream(DumpFile, FileMode.Create, FileAccess.Write, FileShare.None); - var thisProcess = Process.GetCurrentProcess(); - MiniDumpWriteDump(thisProcess.Handle, thisProcess.Id, stream.SafeFileHandle.DangerousGetHandle(), MINIDUMP_TYPE.MiniDumpWithFullMemory, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero); - } - - } - -} \ No newline at end of file diff --git a/xFunc/Operations.xaml b/xFunc/Operations.xaml deleted file mode 100644 index 6459a1685..000000000 --- a/xFunc/Operations.xaml +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/xFunc/Presenters/GraphsPresenter.cs b/xFunc/Presenters/GraphsPresenter.cs deleted file mode 100644 index 3a5db486d..000000000 --- a/xFunc/Presenters/GraphsPresenter.cs +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using System.Collections.Generic; -using xFunc.Maths; -using xFunc.Properties; -using xFunc.ViewModels; -using xFunc.Views; - -namespace xFunc.Presenters -{ - - public class GraphsPresenter - { - - private readonly IGraphsView view; - - private readonly Processor processor; - private readonly int countOfGraphs; - private readonly List listOfGraphs; - - public GraphsPresenter(IGraphsView view, Processor processor) - { - this.view = view; - - this.processor = processor; - countOfGraphs = Settings.Default.MaxCountOfExpressions >= 20 ? 20 : Settings.Default.MaxCountOfExpressions; - listOfGraphs = new List(countOfGraphs); - } - - public void Add(string strExp) - { - var exp = processor.Parse(strExp); - - listOfGraphs.Add(new GraphItemViewModel(exp, true, null, Settings.Default.DefaultChartColor)); - - while (listOfGraphs.Count > countOfGraphs) - listOfGraphs.RemoveAt(0); - - view.Graphs = listOfGraphs.AsReadOnly(); - } - - public void Remove(GraphItemViewModel exp) - { - listOfGraphs.Remove(exp); - - view.Graphs = listOfGraphs.AsReadOnly(); - } - - public void Remove(int index) - { - listOfGraphs.RemoveAt(index); - - view.Graphs = listOfGraphs.AsReadOnly(); - } - - public void Clear() - { - listOfGraphs.Clear(); - - view.Graphs = listOfGraphs.AsReadOnly(); - } - - public int CountOfGraphs => listOfGraphs.Count; - - } - -} \ No newline at end of file diff --git a/xFunc/Presenters/MathPresenter.cs b/xFunc/Presenters/MathPresenter.cs deleted file mode 100644 index 33727f691..000000000 --- a/xFunc/Presenters/MathPresenter.cs +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using System; -using System.ComponentModel; -using System.Globalization; -using System.Linq; -using xFunc.Maths; -using xFunc.Maths.Results; -using xFunc.Properties; -using xFunc.ViewModels; -using xFunc.Views; - -namespace xFunc.Presenters -{ - - public class MathPresenter : INotifyPropertyChanged - { - - private readonly IMathView view; - - private readonly Processor processor; - private OutputFormats outputFormat; - - public event PropertyChangedEventHandler PropertyChanged; - - public MathPresenter(IMathView view, Processor processor) - { - this.view = view; - - this.processor = processor; - Workspace = new MathWorkspace(Settings.Default.MaxCountOfExpressions); - } - - protected void OnPropertyChanged(string name) - { - PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name)); - } - - private void UpdateList() - { - var vm = Workspace.Select((t, i) => new MathWorkspaceItemViewModel(i + 1, t)); - - view.MathExpressions = vm; - } - - public void Add(string strExp) - { - if (string.IsNullOrWhiteSpace(strExp)) - throw new ArgumentNullException(nameof(strExp)); - - var exps = strExp.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries) - .Select(str => str.Trim()); - - foreach (var s in exps) - { - var result = processor.Solve(s); - if (result is NumberResult num) - { - if (outputFormat == OutputFormats.Normal) - { - Workspace.Add(new MathWorkspaceItem(s, result, num.Result.ToString("F", CultureInfo.InvariantCulture))); - continue; - } - if (outputFormat == OutputFormats.Exponential) - { - Workspace.Add(new MathWorkspaceItem(s, result, num.Result.ToString("E", CultureInfo.InvariantCulture))); - continue; - } - } - - Workspace.Add(new MathWorkspaceItem(s, result, result.ToString())); - } - - UpdateList(); - } - - public void Clear() - { - Workspace.Clear(); - - UpdateList(); - } - - public void Remove(MathWorkspaceItemViewModel item) - { - if (item == null) - throw new ArgumentNullException(nameof(item)); - - Workspace.Remove(item.Item); - - UpdateList(); - } - - public MathWorkspace Workspace { get; } - - public OutputFormats OutputFormat - { - get - { - return outputFormat; - } - set - { - outputFormat = value; - OnPropertyChanged(nameof(OutputFormat)); - } - } - - } - -} \ No newline at end of file diff --git a/xFunc/Presenters/MathWorkspace.cs b/xFunc/Presenters/MathWorkspace.cs deleted file mode 100644 index 496940cdf..000000000 --- a/xFunc/Presenters/MathWorkspace.cs +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using System.Collections; -using System.Collections.Generic; - -namespace xFunc.Presenters -{ - - public class MathWorkspace : IList - { - private readonly List expressions; - - public MathWorkspace() - : this(20) - { - } - - public MathWorkspace(int maxCountOfExps) - { - this.MaxCountOfExpressions = maxCountOfExps; - expressions = new List(maxCountOfExps >= 20 ? 20 : maxCountOfExps); - } - - public MathWorkspaceItem this[int index] - { - get => expressions[index]; - set => expressions[index] = value; - } - - IEnumerator IEnumerable.GetEnumerator() - { - return expressions.GetEnumerator(); - } - - public IEnumerator GetEnumerator() - { - return expressions.GetEnumerator(); - } - - public void Add(MathWorkspaceItem item) - { - if (expressions.Count >= MaxCountOfExpressions) - expressions.RemoveAt(0); - - expressions.Add(item); - } - - public void AddRange(IEnumerable items) - { - while (expressions.Count >= MaxCountOfExpressions) - expressions.RemoveAt(0); - - expressions.AddRange(items); - } - - public int IndexOf(MathWorkspaceItem item) - { - return expressions.IndexOf(item); - } - - public void Insert(int index, MathWorkspaceItem item) - { - if (expressions.Count >= MaxCountOfExpressions) - expressions.RemoveAt(0); - - expressions.Insert(index, item); - } - - public void Clear() - { - expressions.Clear(); - } - - public bool Remove(MathWorkspaceItem item) - { - return expressions.Remove(item); - } - - public void RemoveAt(int index) - { - expressions.RemoveAt(index); - } - - public bool Contains(MathWorkspaceItem item) - { - return expressions.Contains(item); - } - - public void CopyTo(MathWorkspaceItem[] items, int index) - { - expressions.CopyTo(items, index); - } - - public int Count => expressions.Count; - - public bool IsReadOnly => false; - - public int MaxCountOfExpressions { get; set; } - - } - -} \ No newline at end of file diff --git a/xFunc/Presenters/MathWorkspaceItem.cs b/xFunc/Presenters/MathWorkspaceItem.cs deleted file mode 100644 index 073f9fb55..000000000 --- a/xFunc/Presenters/MathWorkspaceItem.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using xFunc.Maths.Results; - -namespace xFunc.Presenters -{ - - public class MathWorkspaceItem - { - public MathWorkspaceItem(string strExp, IResult result, string answer) - { - this.StringExpression = strExp; - this.Result = result; - this.Answer = answer; - } - - public string StringExpression { get; } - - public IResult Result { get; } - - public string Answer { get; internal set; } - - } - -} \ No newline at end of file diff --git a/xFunc/Presenters/OutputFormats.cs b/xFunc/Presenters/OutputFormats.cs deleted file mode 100644 index f51c696de..000000000 --- a/xFunc/Presenters/OutputFormats.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -namespace xFunc.Presenters -{ - - public enum OutputFormats - { - - Auto, - Normal, - Exponential - - } - -} \ No newline at end of file diff --git a/xFunc/Presenters/TruthTablePresenter.cs b/xFunc/Presenters/TruthTablePresenter.cs deleted file mode 100644 index 221b754ee..000000000 --- a/xFunc/Presenters/TruthTablePresenter.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using xFunc.Maths; -using xFunc.Maths.Expressions; -using xFunc.Maths.Expressions.Collections; -using xFunc.ViewModels; - -namespace xFunc.Presenters -{ - public class TruthTablePresenter - { - private readonly Parser parser; - - private List table; - - public TruthTablePresenter() - { - parser = new Parser(); - } - - private void SetBits(int bits) - { - var i = 0; - foreach (var param in Parameters) - { - Parameters[param.Key] = ((bits >> i) & 1) == 1; - - i++; - } - } - - public void Generate(string strExp) - { - Expression = parser.Parse(strExp); - Expressions = Helpers.ConvertExpressionToCollection(Expression); - Parameters = Helpers.GetParameters(Expression); - table = new List(); - - var parametersCount = Parameters.Count(); - var expressionCount = Expressions.Count(); - var allBitsSet = (int)Math.Pow(2, parametersCount) - 1; - - for (int i = allBitsSet; i >= 0; i--) - { - SetBits(i); - - var result = (bool)Expression.Execute(Parameters); - - var row = new TruthTableRowViewModel(parametersCount, expressionCount) - { - Index = allBitsSet - i + 1 - }; - - for (int j = 0; j < parametersCount; j++) - row.VarsValues[j] = (bool)Parameters[Parameters.ElementAt(j).Key].Value; - - for (int j = 0; j < expressionCount - 1; j++) - row.Values[j] = (bool)Expressions.ElementAt(j).Execute(Parameters); - - if (expressionCount != 0) - row.Result = result; - - table.Add(row); - } - } - - public IExpression Expression { get; private set; } - - public IEnumerable Expressions { get; private set; } - - public ParameterCollection Parameters { get; private set; } - - public IEnumerable Table => table; - } -} \ No newline at end of file diff --git a/xFunc/Properties/AssemblyInfo.cs b/xFunc/Properties/AssemblyInfo.cs deleted file mode 100644 index f6f112295..000000000 --- a/xFunc/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,6 +0,0 @@ -using System.Runtime.InteropServices; -using System.Windows; - -[assembly: ComVisible(false)] - -[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)] \ No newline at end of file diff --git a/xFunc/Properties/Settings.Designer.cs b/xFunc/Properties/Settings.Designer.cs deleted file mode 100644 index acf7a6c87..000000000 --- a/xFunc/Properties/Settings.Designer.cs +++ /dev/null @@ -1,469 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace xFunc.Properties { - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.7.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { - - private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default { - get { - return defaultInstance; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("0")] - public double WindowTop { - get { - return ((double)(this["WindowTop"])); - } - set { - this["WindowTop"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("0")] - public double WindowLeft { - get { - return ((double)(this["WindowLeft"])); - } - set { - this["WindowLeft"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("1024")] - public double WindowWidth { - get { - return ((double)(this["WindowWidth"])); - } - set { - this["WindowWidth"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("576")] - public double WindowHeight { - get { - return ((double)(this["WindowHeight"])); - } - set { - this["WindowHeight"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("Normal")] - public global::System.Windows.WindowState WindowState { - get { - return ((global::System.Windows.WindowState)(this["WindowState"])); - } - set { - this["WindowState"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("True")] - public bool NumbersExpanded { - get { - return ((bool)(this["NumbersExpanded"])); - } - set { - this["NumbersExpanded"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("True")] - public bool StandartMathExpanded { - get { - return ((bool)(this["StandartMathExpanded"])); - } - set { - this["StandartMathExpanded"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool TrigonometricExpanded { - get { - return ((bool)(this["TrigonometricExpanded"])); - } - set { - this["TrigonometricExpanded"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool HyperbolicExpanded { - get { - return ((bool)(this["HyperbolicExpanded"])); - } - set { - this["HyperbolicExpanded"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool BitwiseExpanded { - get { - return ((bool)(this["BitwiseExpanded"])); - } - set { - this["BitwiseExpanded"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool ConstantsMathExpanded { - get { - return ((bool)(this["ConstantsMathExpanded"])); - } - set { - this["ConstantsMathExpanded"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool AdditionalMathExpanded { - get { - return ((bool)(this["AdditionalMathExpanded"])); - } - set { - this["AdditionalMathExpanded"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("0")] - public int SelectedTabIndex { - get { - return ((int)(this["SelectedTabIndex"])); - } - set { - this["SelectedTabIndex"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("20")] - public int MaxCountOfExpressions { - get { - return ((int)(this["MaxCountOfExpressions"])); - } - set { - this["MaxCountOfExpressions"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("Auto")] - public string Lang { - get { - return ((string)(this["Lang"])); - } - set { - this["Lang"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("-1")] - public double VarWindowTop { - get { - return ((double)(this["VarWindowTop"])); - } - set { - this["VarWindowTop"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("-1")] - public double VarWindowLeft { - get { - return ((double)(this["VarWindowLeft"])); - } - set { - this["VarWindowLeft"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("-1")] - public double FuncWindowTop { - get { - return ((double)(this["FuncWindowTop"])); - } - set { - this["FuncWindowTop"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("-1")] - public double FuncWindowLeft { - get { - return ((double)(this["FuncWindowLeft"])); - } - set { - this["FuncWindowLeft"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("220")] - public double VarWindowWidth { - get { - return ((double)(this["VarWindowWidth"])); - } - set { - this["VarWindowWidth"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("280")] - public double VarWindowHeight { - get { - return ((double)(this["VarWindowHeight"])); - } - set { - this["VarWindowHeight"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("220")] - public double FuncWindowWidth { - get { - return ((double)(this["FuncWindowWidth"])); - } - set { - this["FuncWindowWidth"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("280")] - public double FuncWindowHeight { - get { - return ((double)(this["FuncWindowHeight"])); - } - set { - this["FuncWindowHeight"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("True")] - public bool RememberSizeAndPosition { - get { - return ((bool)(this["RememberSizeAndPosition"])); - } - set { - this["RememberSizeAndPosition"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("True")] - public bool RememberRightToolBar { - get { - return ((bool)(this["RememberRightToolBar"])); - } - set { - this["RememberRightToolBar"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("True")] - public bool RememberBaseAndAngle { - get { - return ((bool)(this["RememberBaseAndAngle"])); - } - set { - this["RememberBaseAndAngle"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool MatrixExpanded { - get { - return ((bool)(this["MatrixExpanded"])); - } - set { - this["MatrixExpanded"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool ProgExpanded { - get { - return ((bool)(this["ProgExpanded"])); - } - set { - this["ProgExpanded"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Collections.Specialized.StringCollection UserFunctions { - get { - return ((global::System.Collections.Specialized.StringCollection)(this["UserFunctions"])); - } - set { - this["UserFunctions"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool SaveUserFunction { - get { - return ((bool)(this["SaveUserFunction"])); - } - set { - this["SaveUserFunction"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("-1")] - public double ConverterLeft { - get { - return ((double)(this["ConverterLeft"])); - } - set { - this["ConverterLeft"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("-1")] - public double ConverterTop { - get { - return ((double)(this["ConverterTop"])); - } - set { - this["ConverterTop"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("Auto")] - public global::xFunc.Presenters.OutputFormats OutputFormat { - get { - return ((global::xFunc.Presenters.OutputFormats)(this["OutputFormat"])); - } - set { - this["OutputFormat"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool SaveDump { - get { - return ((bool)(this["SaveDump"])); - } - set { - this["SaveDump"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("#FFFF0000")] - public global::System.Windows.Media.Color DefaultChartColor { - get { - return ((global::System.Windows.Media.Color)(this["DefaultChartColor"])); - } - set { - this["DefaultChartColor"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool ComplexNumberExpanded { - get { - return ((bool)(this["ComplexNumberExpanded"])); - } - set { - this["ComplexNumberExpanded"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool StatisticalExpanded { - get { - return ((bool)(this["StatisticalExpanded"])); - } - set { - this["StatisticalExpanded"] = value; - } - } - } -} diff --git a/xFunc/Properties/Settings.settings b/xFunc/Properties/Settings.settings deleted file mode 100644 index ecf270290..000000000 --- a/xFunc/Properties/Settings.settings +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - 0 - - - 0 - - - 1024 - - - 576 - - - Normal - - - True - - - True - - - False - - - False - - - False - - - False - - - False - - - 0 - - - 20 - - - Auto - - - -1 - - - -1 - - - -1 - - - -1 - - - 220 - - - 280 - - - 220 - - - 280 - - - True - - - True - - - True - - - False - - - False - - - - - - False - - - -1 - - - -1 - - - Auto - - - False - - - #FFFF0000 - - - False - - - False - - - \ No newline at end of file diff --git a/xFunc/Resources/Resource.Designer.cs b/xFunc/Resources/Resource.Designer.cs deleted file mode 100644 index ad01b5746..000000000 --- a/xFunc/Resources/Resource.Designer.cs +++ /dev/null @@ -1,1971 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace xFunc.Resources { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - public class Resource { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resource() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("xFunc.Resources.Resource", typeof(Resource).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to About. - /// - public static string AboutButtonHeader { - get { - return ResourceManager.GetString("AboutButtonHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Show the about window. - /// - public static string AboutButtonToolTip { - get { - return ResourceManager.GetString("AboutButtonToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to About (F1). - /// - public static string AboutToolTipTitle { - get { - return ResourceManager.GetString("AboutToolTipTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to About. - /// - public static string AboutWindowTitle { - get { - return ResourceManager.GetString("AboutWindowTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Absolute value of "x". Example: abs(-1). - /// - public static string AbsToolTip { - get { - return ResourceManager.GetString("AbsToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The "+=" operator. Example: x += 2.. - /// - public static string AddAssignToolTip { - get { - return ResourceManager.GetString("AddAssignToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cancel. - /// - public static string AddFuncCancel { - get { - return ResourceManager.GetString("AddFuncCancel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The function name is incorrect.. - /// - public static string AddFuncError { - get { - return ResourceManager.GetString("AddFuncError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to _Function:. - /// - public static string AddFuncFunc { - get { - return ResourceManager.GetString("AddFuncFunc", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to _Name:. - /// - public static string AddFuncName { - get { - return ResourceManager.GetString("AddFuncName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to OK. - /// - public static string AddFuncOk { - get { - return ResourceManager.GetString("AddFuncOk", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Add a new function. - /// - public static string AddFuncTitle { - get { - return ResourceManager.GetString("AddFuncTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Additional. - /// - public static string AdditionalMathExpanderHeader { - get { - return ResourceManager.GetString("AdditionalMathExpanderHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cancel. - /// - public static string AddVarCancel { - get { - return ResourceManager.GetString("AddVarCancel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to _Name:. - /// - public static string AddVarName { - get { - return ResourceManager.GetString("AddVarName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to OK. - /// - public static string AddVarOK { - get { - return ResourceManager.GetString("AddVarOK", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to _Read-Only. - /// - public static string AddVarReadOnly { - get { - return ResourceManager.GetString("AddVarReadOnly", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Add a new variable. - /// - public static string AddVarTitle { - get { - return ResourceManager.GetString("AddVarTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to _Value:. - /// - public static string AddVarValue { - get { - return ResourceManager.GetString("AddVarValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Bitwise AND operation. Example: x and y, x & y. - /// - public static string AndToolTip { - get { - return ResourceManager.GetString("AndToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Answer:. - /// - public static string AnswerTextBox { - get { - return ResourceManager.GetString("AnswerTextBox", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Inverse cosecant of a number. Example: arccsc(90) or arccosec(90). - /// - public static string ArccosecantToolTip { - get { - return ResourceManager.GetString("ArccosecantToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Inverse cosine of a number. Example: arccos(90). - /// - public static string ArccosineToolTip { - get { - return ResourceManager.GetString("ArccosineToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Inverse cotangent of a number. Example: arccot(90) or arcctg(90). - /// - public static string ArccotangentToolTip { - get { - return ResourceManager.GetString("ArccotangentToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Inverse hyperbolic cosine of "x". Example: arcosh(90) or arch(90). - /// - public static string ArcoshToolTip { - get { - return ResourceManager.GetString("ArcoshToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Inverse hyperbolic cotangent of "x". Example: arcoth(90) or arcth(90). - /// - public static string ArcothToolTip { - get { - return ResourceManager.GetString("ArcothToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Inverse hyperbolic cosecant of "x". Example: arcsch(90). - /// - public static string ArcschToolTip { - get { - return ResourceManager.GetString("ArcschToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Inverse secant of a number. Example: arcsec(90). - /// - public static string ArcsecantToolTip { - get { - return ResourceManager.GetString("ArcsecantToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Inverse sine of a number. Example: arcsin(1). - /// - public static string ArcsineToolTip { - get { - return ResourceManager.GetString("ArcsineToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Inverse tangent of a number. Example: arctan(90) or arctg(90). - /// - public static string ArctangentToolTip { - get { - return ResourceManager.GetString("ArctangentToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Inverse hyperbolic secant of "x". Example: arsech(90). - /// - public static string ArsechToolTip { - get { - return ResourceManager.GetString("ArsechToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Inverse hyperbolic sine of "x". Example: arsinh(90) or arsh(90). - /// - public static string ArsinhToolTip { - get { - return ResourceManager.GetString("ArsinhToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Inverse hyperbolic tangent of "x". Example: artanh(90) or arth(90). - /// - public static string ArtanhToolTip { - get { - return ResourceManager.GetString("ArtanhToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The expression '{1}' was assigned to the function '{0}'.. - /// - public static string AssignFunction { - get { - return ResourceManager.GetString("AssignFunction", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The value '{1}' was assigned to the variable '{0}'.. - /// - public static string AssignVariable { - get { - return ResourceManager.GetString("AssignVariable", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Dmytro Kyshchenko. - /// - public static string Author { - get { - return ResourceManager.GetString("Author", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Author:. - /// - public static string AuthorTextBox { - get { - return ResourceManager.GetString("AuthorTextBox", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Auto. - /// - public static string AutoFormatButtonHeader { - get { - return ResourceManager.GetString("AutoFormatButtonHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The Avg function. Example: avg(1, 2, 3).. - /// - public static string AvgToolTip { - get { - return ResourceManager.GetString("AvgToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Bitwise & Logical. - /// - public static string BitwiseExpanderHeader { - get { - return ResourceManager.GetString("BitwiseExpanderHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Returns the smallest integer greater than or equal to the specified number. Example: ceil(5.5555).. - /// - public static string CeilToolTip { - get { - return ResourceManager.GetString("CeilToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Clear. - /// - public static string ClearButtonHeader { - get { - return ResourceManager.GetString("ClearButtonHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Delete all expressions.. - /// - public static string ClearScreenTipText { - get { - return ResourceManager.GetString("ClearScreenTipText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Clear (Shift+Del). - /// - public static string ClearScreenTipTitle { - get { - return ResourceManager.GetString("ClearScreenTipTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Clipboard. - /// - public static string ClipboardGroupHeader { - get { - return ResourceManager.GetString("ClipboardGroupHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to cm. - /// - public static string cm { - get { - return ResourceManager.GetString("cm", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Complex numbers. - /// - public static string ComplexNumberExpanderHeader { - get { - return ResourceManager.GetString("ComplexNumberExpanderHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The conditional-AND operator. Example: x == 0 && y != 0.. - /// - public static string ConditionalAndToolTip { - get { - return ResourceManager.GetString("ConditionalAndToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The conditional-OR operator. Example: x == 0 || y != 0.. - /// - public static string ConditionalOrToolTip { - get { - return ResourceManager.GetString("ConditionalOrToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The Conjugate function. Example: conjugate(3+2i).. - /// - public static string ConjugateToolTip { - get { - return ResourceManager.GetString("ConjugateToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Constants. - /// - public static string ConstantsExpanderHeader { - get { - return ResourceManager.GetString("ConstantsExpanderHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unit Converter. - /// - public static string ConverterButtonHeader { - get { - return ResourceManager.GetString("ConverterButtonHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Calculate. - /// - public static string ConverterCalculateText { - get { - return ResourceManager.GetString("ConverterCalculateText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Converts data from one unit to another.. - /// - public static string ConverterScreenTipText { - get { - return ResourceManager.GetString("ConverterScreenTipText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unit Converter (Ctrl+Alt+C). - /// - public static string ConverterScreenTipTitle { - get { - return ResourceManager.GetString("ConverterScreenTipTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unit Converter. - /// - public static string ConverterTitle { - get { - return ResourceManager.GetString("ConverterTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to _Converter Type:. - /// - public static string ConverterTypeText { - get { - return ResourceManager.GetString("ConverterTypeText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Copy "Answer". - /// - public static string CopyAnswerMenuItem { - get { - return ResourceManager.GetString("CopyAnswerMenuItem", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Copy. - /// - public static string CopyButtonHeader { - get { - return ResourceManager.GetString("CopyButtonHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Copy "Expression". - /// - public static string CopyExpressionMenuItem { - get { - return ResourceManager.GetString("CopyExpressionMenuItem", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Copy the selected text. - /// - public static string CopyScreenTipText { - get { - return ResourceManager.GetString("CopyScreenTipText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Copy (Ctrl+C). - /// - public static string CopyScreenTipTitle { - get { - return ResourceManager.GetString("CopyScreenTipTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cosecant of a number. Example: csc(90) or cosec(90). - /// - public static string CosecantToolTip { - get { - return ResourceManager.GetString("CosecantToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Hyperbolic cosine of "x". Example: cosh(90) or ch(90). - /// - public static string CoshToolTip { - get { - return ResourceManager.GetString("CoshToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cosine of a number. Example: cos(90). - /// - public static string CosineToolTip { - get { - return ResourceManager.GetString("CosineToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cotangent of a number. Example: cot(90) or ctg(90). - /// - public static string CotangentToolTip { - get { - return ResourceManager.GetString("CotangentToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Hyperbolic cotangent of "x". Example: coth(90) or cth(90). - /// - public static string CothToolTip { - get { - return ResourceManager.GetString("CothToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The Count function. Example: count(1, 2, 3).. - /// - public static string CountToolTip { - get { - return ResourceManager.GetString("CountToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Hyperbolic cosecant of "x". Example: csch(90). - /// - public static string CschToolTip { - get { - return ResourceManager.GetString("CschToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cut. - /// - public static string CutButtonHeader { - get { - return ResourceManager.GetString("CutButtonHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cut the selected text. - /// - public static string CutScreenTipText { - get { - return ResourceManager.GetString("CutScreenTipText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cut (Ctrl+X). - /// - public static string CutScreenTipTitle { - get { - return ResourceManager.GetString("CutScreenTipTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Assigns the value to specified variable or creates an user-function. Example: x := 1, f(x) := sin(x). - /// - public static string DefToolTip { - get { - return ResourceManager.GetString("DefToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Delete. - /// - public static string DeleteExpButtonHeader { - get { - return ResourceManager.GetString("DeleteExpButtonHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Delete the selected expression. - /// - public static string DeleteExpScreenTipText { - get { - return ResourceManager.GetString("DeleteExpScreenTipText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Delete (Del). - /// - public static string DeleteExpScreenTipTitle { - get { - return ResourceManager.GetString("DeleteExpScreenTipTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Delete. - /// - public static string DeleteMenuItem { - get { - return ResourceManager.GetString("DeleteMenuItem", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Determinant of a matrix. Example: det({{1, 3}, {9, 4}}). - /// - public static string DetToolTip { - get { - return ResourceManager.GetString("DetToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The "/=" operator. Example: x /= 2.. - /// - public static string DivAssignToolTip { - get { - return ResourceManager.GetString("DivAssignToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Documentation:. - /// - public static string DocumentationTextBox { - get { - return ResourceManager.GetString("DocumentationTextBox", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Logical Equality. Example: true <=> false.. - /// - public static string EqualityToolTip { - get { - return ResourceManager.GetString("EqualityToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The equality operator. Example: x == 10.. - /// - public static string EqualToolTip { - get { - return ResourceManager.GetString("EqualToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Error. - /// - public static string ErrorHeader { - get { - return ResourceManager.GetString("ErrorHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Exit. - /// - public static string ExitMenu { - get { - return ResourceManager.GetString("ExitMenu", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Closes the application.. - /// - public static string ExitToolTip { - get { - return ResourceManager.GetString("ExitToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Exit (Alt+F4). - /// - public static string ExitToolTipTitle { - get { - return ResourceManager.GetString("ExitToolTipTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Expression List. - /// - public static string ExpListGroupHeader { - get { - return ResourceManager.GetString("ExpListGroupHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Exponential. - /// - public static string ExponentialFormatButtonHeader { - get { - return ResourceManager.GetString("ExponentialFormatButtonHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Expressions:. - /// - public static string ExpressionsTextBox { - get { - return ResourceManager.GetString("ExpressionsTextBox", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Expression:. - /// - public static string ExpressionTextBox { - get { - return ResourceManager.GetString("ExpressionTextBox", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Factorial. Example: fact(4) or 4!. - /// - public static string FactToolTip { - get { - return ResourceManager.GetString("FactToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to File. - /// - public static string FileMenu { - get { - return ResourceManager.GetString("FileMenu", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Returns the largest integer less than or equal to the specified number. Example: floor(5.55555).. - /// - public static string FloorToolTip { - get { - return ResourceManager.GetString("FloorToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The For loop. Example: for(z := z + 1, x := 0, x < 10, x := x + 1).. - /// - public static string ForToolTip { - get { - return ResourceManager.GetString("ForToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to From:. - /// - public static string FromText { - get { - return ResourceManager.GetString("FromText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Name. - /// - public static string FuncNameHeader { - get { - return ResourceManager.GetString("FuncNameHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Shows the window with all entered functions.. - /// - public static string FuncScreenTitText { - get { - return ResourceManager.GetString("FuncScreenTitText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Functions (Ctrl+Alt+F). - /// - public static string FuncScreenTitTitle { - get { - return ResourceManager.GetString("FuncScreenTitTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Functions. - /// - public static string FunctionButtonHeader { - get { - return ResourceManager.GetString("FunctionButtonHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Functions. - /// - public static string FunctionsTitle { - get { - return ResourceManager.GetString("FunctionsTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Value. - /// - public static string FuncValueHeader { - get { - return ResourceManager.GetString("FuncValueHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Greatest common divisor. Example: gcd(2, 4). - /// - public static string GCDToolTip { - get { - return ResourceManager.GetString("GCDToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Charts. - /// - public static string GraphsTab { - get { - return ResourceManager.GetString("GraphsTab", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The "greater than or equal" operator. Example: x >= 10.. - /// - public static string GreaterOrEqualToolTip { - get { - return ResourceManager.GetString("GreaterOrEqualToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The "greater than" operator. Example: x > 10.. - /// - public static string GreaterThanToolTip { - get { - return ResourceManager.GetString("GreaterThanToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Home Page:. - /// - public static string HomePageTextBox { - get { - return ResourceManager.GetString("HomePageTextBox", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Home. - /// - public static string HomeRibbonTabHeader { - get { - return ResourceManager.GetString("HomeRibbonTabHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Hyperbolic. - /// - public static string HyperbolicExpanderHeader { - get { - return ResourceManager.GetString("HyperbolicExpanderHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The If condition. Example: if(x < 2, sin(x), cos(x)).. - /// - public static string IfToolTip { - get { - return ResourceManager.GetString("IfToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Logical Implication. Example: true => false.. - /// - public static string ImplicationToolTip { - get { - return ResourceManager.GetString("ImplicationToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Returns imaginary part of complex number. Example: im(3+2i).. - /// - public static string ImToolTip { - get { - return ResourceManager.GetString("ImToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Perhaps, variables have entered incorrectly.. - /// - public static string IndexOutOfRangeExceptionError { - get { - return ResourceManager.GetString("IndexOutOfRangeExceptionError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Inverse a matrix. Example: inverse({{1, 3}, {9, 4}}). - /// - public static string InverseToolTip { - get { - return ResourceManager.GetString("InverseToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Least common multiple. Example: lcm(2, 4). - /// - public static string LCMToolTip { - get { - return ResourceManager.GetString("LCMToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The "less than or equal" operator. Example: x <= 10.. - /// - public static string LessOrEqualToolTip { - get { - return ResourceManager.GetString("LessOrEqualToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The "less than" operator. Example: x < 10.. - /// - public static string LessThanToolTip { - get { - return ResourceManager.GetString("LessThanToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Logarithm to base 10 of "x". Example: lg(3). - /// - public static string LgToolTip { - get { - return ResourceManager.GetString("LgToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Natural logarithm of "x". Example: ln(10). - /// - public static string LnToolTip { - get { - return ResourceManager.GetString("LnToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Logarigthm to base "y" of "x". Example: log(2, 4). - /// - public static string LogToolTip { - get { - return ResourceManager.GetString("LogToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Expressions. - /// - public static string MathTab { - get { - return ResourceManager.GetString("MathTab", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Matrix. - /// - public static string MatrixExpanderHeader { - get { - return ResourceManager.GetString("MatrixExpanderHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The Max function. Example: max(1, 2, 3).. - /// - public static string MaxToolTip { - get { - return ResourceManager.GetString("MaxToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The Min function. Example: min(1, 2, 3).. - /// - public static string MinToolTip { - get { - return ResourceManager.GetString("MinToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The modulo operator. Example: 7 % 2, 7 mod 2.. - /// - public static string ModuleToolTip { - get { - return ResourceManager.GetString("ModuleToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The "*=" operator. Example: x *= 2.. - /// - public static string MulAssignToolTip { - get { - return ResourceManager.GetString("MulAssignToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Logical NAnd. Example: true nand false.. - /// - public static string NAndToolTip { - get { - return ResourceManager.GetString("NAndToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to New. - /// - public static string NewMenu { - get { - return ResourceManager.GetString("NewMenu", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Normal. - /// - public static string NormalFormatButtonHeader { - get { - return ResourceManager.GetString("NormalFormatButtonHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Logical NOr. Example: true nor false.. - /// - public static string NOrToolTip { - get { - return ResourceManager.GetString("NOrToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The inequality operator. Example: x != 10.. - /// - public static string NotEqualToolTip { - get { - return ResourceManager.GetString("NotEqualToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to This operation is not supported.. - /// - public static string NotSupportedOperationError { - get { - return ResourceManager.GetString("NotSupportedOperationError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Bitwise NOT operation. Example: not(3). - /// - public static string NotToolTip { - get { - return ResourceManager.GetString("NotToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to nth root of "x". Example: root(27, 3). - /// - public static string NthRootToolTip { - get { - return ResourceManager.GetString("NthRootToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Numbers & Arithmetic. - /// - public static string NumberAndArithmeticExpanderHeader { - get { - return ResourceManager.GetString("NumberAndArithmeticExpanderHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Open. - /// - public static string OpenMenu { - get { - return ResourceManager.GetString("OpenMenu", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Bitwise OR operation. Example: x or y, x | y. - /// - public static string OrToolTip { - get { - return ResourceManager.GetString("OrToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Output Format. - /// - public static string OutputFormatGroupHeader { - get { - return ResourceManager.GetString("OutputFormatGroupHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Paste. - /// - public static string PasteButtonHeader { - get { - return ResourceManager.GetString("PasteButtonHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Paste text from clipboard. - /// - public static string PasteScreenTipText { - get { - return ResourceManager.GetString("PasteScreenTipText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Paste (Ctrl+V). - /// - public static string PasteScreenTipTitle { - get { - return ResourceManager.GetString("PasteScreenTipTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The Phase function. Example: phase(3+2i).. - /// - public static string PhaseToolTip { - get { - return ResourceManager.GetString("PhaseToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to "x" raised to the power of 2. Example: 7^2. - /// - public static string PowerOfTwoToolTip { - get { - return ResourceManager.GetString("PowerOfTwoToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to "x" raised to the power of "y". Example: 7^4. - /// - public static string PowerOfYToolTip { - get { - return ResourceManager.GetString("PowerOfYToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Product. Example: product(x, y, z).. - /// - public static string ProductToolTip { - get { - return ResourceManager.GetString("ProductToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Programming. - /// - public static string ProgExpanderHeader { - get { - return ResourceManager.GetString("ProgExpanderHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The Reciprocal function. Example: reciprocal(3+2i).. - /// - public static string ReciprocalToolTip { - get { - return ResourceManager.GetString("ReciprocalToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Redo. - /// - public static string RedoButtonHeader { - get { - return ResourceManager.GetString("RedoButtonHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Redo the last change. - /// - public static string RedoScreenTipText { - get { - return ResourceManager.GetString("RedoScreenTipText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Redo (Ctrl+Y). - /// - public static string RedoScreenTipTitle { - get { - return ResourceManager.GetString("RedoScreenTipTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Returns real part of complex number. Example: re(3+2i).. - /// - public static string ReToolTip { - get { - return ResourceManager.GetString("ReToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Rounds a value to the nearest integer or to the specified number of fractional digits. Example: round(number, digits).. - /// - public static string RoundToolTip { - get { - return ResourceManager.GetString("RoundToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Save As. - /// - public static string SaveAsMenu { - get { - return ResourceManager.GetString("SaveAsMenu", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Save. - /// - public static string SaveMenu { - get { - return ResourceManager.GetString("SaveMenu", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Secant of a number. Example: sec(90). - /// - public static string SecantToolTip { - get { - return ResourceManager.GetString("SecantToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Hyperbolic secant of "x". Example: sech(90). - /// - public static string SechToolTip { - get { - return ResourceManager.GetString("SechToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Automatic. - /// - public static string SettingsAutoLang { - get { - return ResourceManager.GetString("SettingsAutoLang", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cancel. - /// - public static string SettingsCancel { - get { - return ResourceManager.GetString("SettingsCancel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Default chart color:. - /// - public static string SettingsDefaultChartColor { - get { - return ResourceManager.GetString("SettingsDefaultChartColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to _Language*:. - /// - public static string SettingsLanguageLabel { - get { - return ResourceManager.GetString("SettingsLanguageLabel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The language will be set after program restart.. - /// - public static string SettingsLanguageToolTip { - get { - return ResourceManager.GetString("SettingsLanguageToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Maximum number of expressions:. - /// - public static string SettingsMaxNumber { - get { - return ResourceManager.GetString("SettingsMaxNumber", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Settings. - /// - public static string SettingsMenu { - get { - return ResourceManager.GetString("SettingsMenu", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to _Remember output format. - /// - public static string SettingsRemember { - get { - return ResourceManager.GetString("SettingsRemember", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Reset. - /// - public static string SettingsReset { - get { - return ResourceManager.GetString("SettingsReset", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Remember right _tool bar state.. - /// - public static string SettingsRightToolBar { - get { - return ResourceManager.GetString("SettingsRightToolBar", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Save. - /// - public static string SettingsSave { - get { - return ResourceManager.GetString("SettingsSave", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Save the dump file after crash.. - /// - public static string SettingsSaveDump { - get { - return ResourceManager.GetString("SettingsSaveDump", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Save user functions.. - /// - public static string SettingsSaveUF { - get { - return ResourceManager.GetString("SettingsSaveUF", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Shows settings of program.. - /// - public static string SettingsToolTip { - get { - return ResourceManager.GetString("SettingsToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Settings (Alt+S). - /// - public static string SettingsToolTipTitle { - get { - return ResourceManager.GetString("SettingsToolTipTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Settings. - /// - public static string SettingsViewTitle { - get { - return ResourceManager.GetString("SettingsViewTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Remember window state and _position.. - /// - public static string SettingsWindowPos { - get { - return ResourceManager.GetString("SettingsWindowPos", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Show Grid. - /// - public static string ShowGridCheckBox { - get { - return ResourceManager.GetString("ShowGridCheckBox", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Simplifies the specified expression. Example: simplify(arcsin(sin(x))). - /// - public static string SimplifyToolTip { - get { - return ResourceManager.GetString("SimplifyToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Sine of a number. Example: sin(90). - /// - public static string SineToolTip { - get { - return ResourceManager.GetString("SineToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Hyperbolic sine of "x". Example: sinh(90) or sh(90). - /// - public static string SinhToolTip { - get { - return ResourceManager.GetString("SinhToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Square root of "x". Example: sqrt(9). - /// - public static string SquareRootToolTip { - get { - return ResourceManager.GetString("SquareRootToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Standart. - /// - public static string StandartExpanderHeader { - get { - return ResourceManager.GetString("StandartExpanderHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Statistical. - /// - public static string StatisticalExpanderHeader { - get { - return ResourceManager.GetString("StatisticalExpanderHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The STDEVP function. Example: stdevp(1, 2, 3).. - /// - public static string StdevpToolTip { - get { - return ResourceManager.GetString("StdevpToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The STDEV function. Example: stdev(1, 2, 3).. - /// - public static string StdevToolTip { - get { - return ResourceManager.GetString("StdevToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The "-=" operator. Example: x -= 2.. - /// - public static string SubAssignToolTip { - get { - return ResourceManager.GetString("SubAssignToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Summation. Example: sum(x, y, z).. - /// - public static string SumToolTip { - get { - return ResourceManager.GetString("SumToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Tangent of a number. Example: tan(90) or tg(90). - /// - public static string TangentToolTip { - get { - return ResourceManager.GetString("TangentToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Hyperbolic tangent of "x". Example: tanh(90) or th(90). - /// - public static string TanhToolTip { - get { - return ResourceManager.GetString("TanhToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to To Clipboard. - /// - public static string ToClipboardMenuItem { - get { - return ResourceManager.GetString("ToClipboardMenuItem", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to To Input. - /// - public static string ToInputMenuItem { - get { - return ResourceManager.GetString("ToInputMenuItem", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Tools. - /// - public static string ToolsGroupHeader { - get { - return ResourceManager.GetString("ToolsGroupHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to To:. - /// - public static string ToText { - get { - return ResourceManager.GetString("ToText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Transpose a matrix. Example: transpose({{1, 3}, {9, 4}}). - /// - public static string TransposeToolTip { - get { - return ResourceManager.GetString("TransposeToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Trigonometric. - /// - public static string TrigonometricExpanderHeader { - get { - return ResourceManager.GetString("TrigonometricExpanderHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Truth Table. - /// - public static string TruthTableTab { - get { - return ResourceManager.GetString("TruthTableTab", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The '{0}' function is removed.. - /// - public static string UndefineFunction { - get { - return ResourceManager.GetString("UndefineFunction", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The '{0}' variable is removed.. - /// - public static string UndefineVariable { - get { - return ResourceManager.GetString("UndefineVariable", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removes the specified variable or user-function. Example: undef(x). - /// - public static string UndefToolTip { - get { - return ResourceManager.GetString("UndefToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Undo. - /// - public static string UndoButtonHeader { - get { - return ResourceManager.GetString("UndoButtonHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Undo the last change. - /// - public static string UndoScreenTipText { - get { - return ResourceManager.GetString("UndoScreenTipText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Undo (Ctrl+Z). - /// - public static string UndoScreenTipTitle { - get { - return ResourceManager.GetString("UndoScreenTipTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to _Unit:. - /// - public static string UnitsText { - get { - return ResourceManager.GetString("UnitsText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to _Value:. - /// - public static string ValueText { - get { - return ResourceManager.GetString("ValueText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The variable not found.. - /// - public static string VariableNotFoundExceptionError { - get { - return ResourceManager.GetString("VariableNotFoundExceptionError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Variables. - /// - public static string VariablesButtonHeader { - get { - return ResourceManager.GetString("VariablesButtonHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Variables. - /// - public static string VariablesTitle { - get { - return ResourceManager.GetString("VariablesTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Name. - /// - public static string VarNameHeader { - get { - return ResourceManager.GetString("VarNameHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The VARP function. Example: varp(1, 2, 3).. - /// - public static string VarpToolTip { - get { - return ResourceManager.GetString("VarpToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Shows the window with all entered variables.. - /// - public static string VarScreenTitText { - get { - return ResourceManager.GetString("VarScreenTitText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Variables (Ctrl+Alt+V). - /// - public static string VarScreenTitTitle { - get { - return ResourceManager.GetString("VarScreenTitTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The VAR function. Example: var(1, 2, 3).. - /// - public static string VarToolTip { - get { - return ResourceManager.GetString("VarToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Value. - /// - public static string VarValueHeader { - get { - return ResourceManager.GetString("VarValueHeader", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Version:. - /// - public static string VersionTextBox { - get { - return ResourceManager.GetString("VersionTextBox", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The While loop. Example: while(x := x + 1, x < 10).. - /// - public static string WhileToolTip { - get { - return ResourceManager.GetString("WhileToolTip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Bitwise XOR operation. Example: x xor y. - /// - public static string XOrToolTip { - get { - return ResourceManager.GetString("XOrToolTip", resourceCulture); - } - } - } -} diff --git a/xFunc/Resources/Resource.resx b/xFunc/Resources/Resource.resx deleted file mode 100644 index c6a7bd18e..000000000 --- a/xFunc/Resources/Resource.resx +++ /dev/null @@ -1,697 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - About - - - Show the about window - - - About (F1) - - - About - - - Absolute value of "x". Example: abs(-1) - - - The "+=" operator. Example: x += 2. - - - Cancel - - - The function name is incorrect. - - - _Function: - - - _Name: - - - OK - - - Add a new function - - - Additional - - - Cancel - - - _Name: - - - OK - - - _Read-Only - - - Add a new variable - - - _Value: - - - Bitwise AND operation. Example: x and y, x & y - - - Answer: - - - Inverse cosecant of a number. Example: arccsc(90) or arccosec(90) - - - Inverse cosine of a number. Example: arccos(90) - - - Inverse cotangent of a number. Example: arccot(90) or arcctg(90) - - - Inverse hyperbolic cosine of "x". Example: arcosh(90) or arch(90) - - - Inverse hyperbolic cotangent of "x". Example: arcoth(90) or arcth(90) - - - Inverse hyperbolic cosecant of "x". Example: arcsch(90) - - - Inverse secant of a number. Example: arcsec(90) - - - Inverse sine of a number. Example: arcsin(1) - - - Inverse tangent of a number. Example: arctan(90) or arctg(90) - - - Inverse hyperbolic secant of "x". Example: arsech(90) - - - Inverse hyperbolic sine of "x". Example: arsinh(90) or arsh(90) - - - Inverse hyperbolic tangent of "x". Example: artanh(90) or arth(90) - - - The expression '{1}' was assigned to the function '{0}'. - - - The value '{1}' was assigned to the variable '{0}'. - - - Dmytro Kyshchenko - - - Author: - - - Bitwise & Logical - - - Returns the smallest integer greater than or equal to the specified number. Example: ceil(5.5555). - - - Clear - - - Delete all expressions. - - - Clear (Shift+Del) - - - Clipboard - - - cm - - - The conditional-AND operator. Example: x == 0 && y != 0. - - - The conditional-OR operator. Example: x == 0 || y != 0. - - - Constants - - - Unit Converter - - - Calculate - - - Converts data from one unit to another. - - - Unit Converter (Ctrl+Alt+C) - - - Unit Converter - - - _Converter Type: - - - Copy "Answer" - - - Copy - - - Copy "Expression" - - - Copy the selected text - - - Copy (Ctrl+C) - - - Cosecant of a number. Example: csc(90) or cosec(90) - - - Hyperbolic cosine of "x". Example: cosh(90) or ch(90) - - - Cosine of a number. Example: cos(90) - - - Cotangent of a number. Example: cot(90) or ctg(90) - - - Hyperbolic cotangent of "x". Example: coth(90) or cth(90) - - - Hyperbolic cosecant of "x". Example: csch(90) - - - Cut - - - Cut the selected text - - - Cut (Ctrl+X) - - - Assigns the value to specified variable or creates an user-function. Example: x := 1, f(x) := sin(x) - - - Delete - - - Delete the selected expression - - - Delete (Del) - - - Delete - - - Determinant of a matrix. Example: det({{1, 3}, {9, 4}}) - - - The "/=" operator. Example: x /= 2. - - - The equality operator. Example: x == 10. - - - Error - - - Exit - - - Closes the application. - - - Exit (Alt+F4) - - - Expression List - - - Expressions: - - - Expression: - - - Factorial. Example: fact(4) or 4! - - - File - - - Returns the largest integer less than or equal to the specified number. Example: floor(5.55555). - - - The For loop. Example: for(z := z + 1, x := 0, x < 10, x := x + 1). - - - From: - - - Name - - - Shows the window with all entered functions. - - - Functions (Ctrl+Alt+F) - - - Functions - - - Functions - - - Value - - - Greatest common divisor. Example: gcd(2, 4) - - - Charts - - - The "greater than or equal" operator. Example: x >= 10. - - - The "greater than" operator. Example: x > 10. - - - Home Page: - - - Home - - - Hyperbolic - - - The If condition. Example: if(x < 2, sin(x), cos(x)). - - - Perhaps, variables have entered incorrectly. - - - Inverse a matrix. Example: inverse({{1, 3}, {9, 4}}) - - - Least common multiple. Example: lcm(2, 4) - - - The "less than or equal" operator. Example: x <= 10. - - - The "less than" operator. Example: x < 10. - - - Logarithm to base 10 of "x". Example: lg(3) - - - Natural logarithm of "x". Example: ln(10) - - - Logarigthm to base "y" of "x". Example: log(2, 4) - - - Expressions - - - Matrix - - - The "*=" operator. Example: x *= 2. - - - New - - - The inequality operator. Example: x != 10. - - - This operation is not supported. - - - Bitwise NOT operation. Example: not(3) - - - nth root of "x". Example: root(27, 3) - - - Numbers & Arithmetic - - - Open - - - Bitwise OR operation. Example: x or y, x | y - - - Paste - - - Paste text from clipboard - - - Paste (Ctrl+V) - - - "x" raised to the power of 2. Example: 7^2 - - - "x" raised to the power of "y". Example: 7^4 - - - Product. Example: product(x, y, z). - - - Programming - - - Redo - - - Redo the last change - - - Redo (Ctrl+Y) - - - Rounds a value to the nearest integer or to the specified number of fractional digits. Example: round(number, digits). - - - Save As - - - Save - - - Secant of a number. Example: sec(90) - - - Hyperbolic secant of "x". Example: sech(90) - - - Automatic - - - Cancel - - - _Language*: - - - The language will be set after program restart. - - - Maximum number of expressions: - - - Settings - - - _Remember output format - - - Reset - - - Remember right _tool bar state. - - - Save - - - Save user functions. - - - Shows settings of program. - - - Settings (Alt+S) - - - Settings - - - Remember window state and _position. - - - Show Grid - - - Simplifies the specified expression. Example: simplify(arcsin(sin(x))) - - - Sine of a number. Example: sin(90) - - - Hyperbolic sine of "x". Example: sinh(90) or sh(90) - - - Square root of "x". Example: sqrt(9) - - - Standart - - - The "-=" operator. Example: x -= 2. - - - Summation. Example: sum(x, y, z). - - - Tangent of a number. Example: tan(90) or tg(90) - - - Hyperbolic tangent of "x". Example: tanh(90) or th(90) - - - To Clipboard - - - To Input - - - Tools - - - To: - - - Transpose a matrix. Example: transpose({{1, 3}, {9, 4}}) - - - Trigonometric - - - Truth Table - - - The '{0}' function is removed. - - - The '{0}' variable is removed. - - - Removes the specified variable or user-function. Example: undef(x) - - - Undo - - - Undo the last change - - - Undo (Ctrl+Z) - - - _Unit: - - - _Value: - - - The variable not found. - - - Variables - - - Variables - - - Name - - - Shows the window with all entered variables. - - - Variables (Ctrl+Alt+V) - - - Value - - - Version: - - - The While loop. Example: while(x := x + 1, x < 10). - - - Bitwise XOR operation. Example: x xor y - - - Logical Implication. Example: true => false. - - - Logical Equality. Example: true <=> false. - - - Logical NOr. Example: true nor false. - - - Logical NAnd. Example: true nand false. - - - Output Format - - - Auto - - - Normal - - - Exponential - - - Documentation: - - - Save the dump file after crash. - - - Default chart color: - - - Complex numbers - - - The Conjugate function. Example: conjugate(3+2i). - - - Returns imaginary part of complex number. Example: im(3+2i). - - - The Phase function. Example: phase(3+2i). - - - The Reciprocal function. Example: reciprocal(3+2i). - - - Returns real part of complex number. Example: re(3+2i). - - - The modulo operator. Example: 7 % 2, 7 mod 2. - - - The Avg function. Example: avg(1, 2, 3). - - - The Max function. Example: max(1, 2, 3). - - - The Min function. Example: min(1, 2, 3). - - - Statistical - - - The Count function. Example: count(1, 2, 3). - - - The VAR function. Example: var(1, 2, 3). - - - The VARP function. Example: varp(1, 2, 3). - - - The STDEV function. Example: stdev(1, 2, 3). - - - The STDEVP function. Example: stdevp(1, 2, 3). - - \ No newline at end of file diff --git a/xFunc/Resources/Resource.ru.Designer.cs b/xFunc/Resources/Resource.ru.Designer.cs deleted file mode 100644 index e69de29bb..000000000 diff --git a/xFunc/Resources/Resource.ru.resx b/xFunc/Resources/Resource.ru.resx deleted file mode 100644 index fd7188c89..000000000 --- a/xFunc/Resources/Resource.ru.resx +++ /dev/null @@ -1,697 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - О программе - - - Открыть окно "О программе" - - - О программе (F1) - - - О программе - - - Модуль "x". Пример: abs(-1) - - - Оператор "+=". Пример: x += 2. - - - Отмена - - - Имя функции является неправильным. - - - _Функция: - - - _Имя: - - - ОК - - - Добавить функцию - - - Дополнительные - - - Отмена - - - _Имя: - - - ОК - - - _Только для чтения - - - Добавить переменную - - - _Значение: - - - Побитовая операция И. Пример: x and y, x & y - - - Ответ: - - - Арккосеканс числа. Пример: arccsc(90) или arccosec(90) - - - Арккосинус числа. Пример: arccos(90) - - - Арккотангенс числа. Пример: arccot(90) или arcctg(90) - - - Обратный гиперболический косинус числа "x". Пример: arcosh(90) или arch(90) - - - Обратный гиперболический котангенс числа "x". Пример: arcoth(90) или arcth(90) - - - Обратный гиперболический косеканс числа "x". Пример: arcsch(90) - - - Арксеканс числа. Пример: arcsec(90) - - - Арксинус числа. Пример: arcsin(1) - - - Арктангенс числа. Пример: arctan(90) или arctg(90) - - - Обратный гиперболический секанс числа "x". Пример: arsech(90) - - - Обратный гиперболический синус числа "x". Пример: arsinh(90) или arsh(90) - - - Обратный гиперболический тангенс числа "x". Пример: artanh(90) или arth(90) - - - Функции '{0}' присвоено выражение '{1}'. - - - Переменной '{0}' присвоено '{1}' значение. - - - Дмитрий Кищенко - - - Разработчик: - - - Битовые и логические - - - Возвращает наименьшее целое число, которое больше или равно заданному числу. Пример: ceil(5.55555). - - - Очистить - - - Удалить все выражения из списка. - - - Очистить (Shift+Del) - - - Буфер обмена - - - см - - - Условный оператор И. Пример: x == 0 && y != 0. - - - Условный оператор ИЛИ. Пример: x == 0 || y != 0. - - - Константы - - - Конвертер величин - - - Рассчитать - - - Преобразует данные из одной единицы измерения в другую. - - - Конвертер величин (Ctrl+Alt+C) - - - Конвертер величин - - - _Тип конвертора: - - - Копировать "Ответ" - - - Копировать - - - Копировать "Выражение" - - - Скопировать выделенный текст - - - Копировать (Ctrl+C) - - - Косеканс числа. Пример: csc(90) или cosec(90) - - - Гиперболический косинус числа "x". Пример: cosh(90) или ch(90) - - - Косинус числа. Пример: cos(90) - - - Котангенс числа. Пример: cot(90) или ctg(90) - - - Гиперболический котангенс числа "x". Пример: coth(90) или cth(90) - - - Гиперболический косеканс числа "x". Пример: csch(90) - - - Вырезать - - - Вырезать выделенный текст - - - Вырезать (Ctrl+X) - - - Назначает значение переменной или пользовательской функции. Пример: x := 1, f(x) := sin(x) - - - Удалить - - - Удалить выделенное выражение - - - Удалить (Del) - - - Удалить - - - Детерминант матрицы. Пример: det({{1, 3}, {9, 4}}) - - - Оператор "/=". Пример: x /= 2. - - - Оператор равенства. Пример: x == 10. - - - Ошибка - - - Выход - - - Закрыть приложение. - - - Выход (Alt+F4) - - - Список выражений - - - Графики: - - - Выражение: - - - Факториал. Пример: fact(4) or 4! - - - Файл - - - Возвращает наибольшее целое число, которое меньше или равно указанному числу. Пример: floor(5.55555). - - - Цикл for. Пример: for(z := z + 1, x := 0, x < 10, x := x + 1). - - - Из: - - - Имя - - - Отображает окно со всеме введенными функциями. - - - Функции (Ctrl+Alt+F) - - - Функции - - - Функции - - - Значение - - - Наибольший общий делитель. Пример: gcd(2, 4) - - - Графики - - - Оператор сравнения "больше или равно". Пример: x >= 10. - - - Оператор сравнения "больше". Пример: x > 10. - - - Сайт: - - - Главная - - - Гиперболические - - - Условие if. Пример: if(x < 2, sin(x), cos(x)). - - - Возможно, переменные были введены неправильно. - - - Обратная матрица. Пример: inverse({{1, 3}, {9, 4}}) - - - Наименьшее общее кратное. Пример: lcm(2, 4) - - - Оператор сравнения "меньше или равно". Пример: x <= 10. - - - Оператор сравнения "меньше". Пример: x < 10. - - - Логарифм по основанию 10 числа "x". Пример: lg(3) - - - Натуральный логарифм числа "x". Пример: ln(10) - - - Логарифм по основанию "y" чиста "x". Пример: log(2, 4) - - - Выражения - - - Матрицы - - - Оператор "*=". Пример: x *= 2. - - - Новый - - - Оператор неравенства. Пример: x != 10. - - - Указанная операция не поддерживается. - - - Побитовая операция НЕ. Пример: not(3) - - - Корень n-ой степени от "x". Пример: root(27, 3) - - - Числа и арифметические - - - Открыть - - - Побитовая операция ИЛИ. Пример: x or y, x | y - - - Вставить - - - Вставить текст с буфера обмена - - - Вставить (Ctrl+V) - - - "x" в степени 2. Пример: 7^2 - - - "x" в степени "y". Пример: 7^4 - - - Произведение. Пример: product(x, y, z). - - - Программирование - - - Вернуть - - - Вернуть последнее изменение - - - Вернуть (Ctrl+Y) - - - Функция округления. Пример: round(number, digits). - - - Сохранить как - - - Сохранить - - - Секанс числа. Пример: sec(90) - - - Гиперболический секанс числа "x". Пример: sech(90) - - - Автоматически - - - Отмена - - - Язык*: - - - Язык будет изменен после перезапуска программы. - - - Максимальное количество выражений: - - - Настройки - - - Запоминать формат чисел - - - Сбросить настройки - - - Запоминать состояние правой панели инструментов. - - - Сохранить - - - Сохранять пользовательские функции. - - - Отображает настройки программы. - - - Настройки (Alt+S) - - - Настройки - - - Запоминать состояние окна и его позицию. - - - Показать сетку - - - Упрощает выражение. Пример: simplify(arcsin(sin(x))) - - - Синус числа. Пример: sin(90) - - - Гиперболический синус числа "x". Пример: sinh(90) или sh(90) - - - Квадратный корень от "x". Пример: sqrt(9) - - - Стандартные - - - Оператор "-=". Пример: x -= 2. - - - Сумма. Пример: sum(x, y, z). - - - Тангенс числа. Пример: tan(90) или tg(90) - - - Гиперболический тангенс числа "x". Пример: tanh(90) или th(90) - - - В буфер обмена - - - В поле для ввода - - - Инструменты - - - В: - - - Транспонировать матрицу. Пример: transpose({{1, 3}, {9, 4}}) - - - Тригонометрические - - - Таблица истинности - - - Функция '{0}' удалена. - - - Переменная '{0}' удалена. - - - Удаляет переменную или пользовательскую функцию. Пример: undef(x) - - - Отмена - - - Отменить последнее изменение - - - Отмена (Ctrl+Z) - - - _Единицы: - - - _Значение: - - - Переменная не найдена. - - - Переменные - - - Переменные - - - Имя - - - Отображает окно со всеме введенными переменными. - - - Переменные (Ctrl+Alt+V) - - - Значение - - - Версия: - - - Цикл while. Пример: while(x := x + 1, x < 10). - - - Побитовая операция Исключащее ИЛИ. Пример: x xor y - - - Эквиваленция. Пример: true <=> false. - - - Импликация. Пример: true => false. - - - Штрих Шеффера. Пример: true nand false. - - - Стрелка Пирса. Пример: true nor false. - - - Формат вывода чисел - - - Авто - - - Обычный - - - Экспоненциальный - - - Документация: - - - Сохранить дамп-файл после ошибки в программе. - - - Цвет графика по умолчанию: - - - Комплексные числа - - - Функция Conjugate. Пример: conjugate(3+2i). - - - Возвращает мнимую часть комплексного числа. Пример: im(3+2i). - - - Функция Phase. Пример: phase(3+2i). - - - Функция Reciprocal. Пример: reciprocal(3+2i). - - - Возвращает вещественную часть комплексного числа. Пример: re(3+2i). - - - Остаток от деления. Пример: 7 % 2, 7 mod 2. - - - Среднее арифметическое. Пример: avg(1, 2, 3). - - - Максимум. Пример: max(1, 2, 3). - - - Минимум. Пример: min(1, 2, 3). - - - Статистические - - - Количество аргументов. Пример: count(1, 2, 3). - - - Дисперсия случайной величины. Пример: var(1, 2, 3). - - - Дисперсия случайной величины. Пример: varp(1, 2, 3). - - - Среднеквадратическое отклонение. Пример: stdev(1, 2, 3). - - - Среднеквадратическое отклонение. Пример: stdevp(1, 2, 3). - - \ No newline at end of file diff --git a/xFunc/StylesForControls.xaml b/xFunc/StylesForControls.xaml deleted file mode 100644 index 556700efe..000000000 --- a/xFunc/StylesForControls.xaml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/xFunc/ViewModels/BaseViewModel.cs b/xFunc/ViewModels/BaseViewModel.cs deleted file mode 100644 index 793b4f421..000000000 --- a/xFunc/ViewModels/BaseViewModel.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using System.ComponentModel; - -namespace xFunc.ViewModels -{ - - public class BaseViewModel : INotifyPropertyChanged - { - - public event PropertyChangedEventHandler PropertyChanged; - - protected virtual void OnPropertyChanged(string propertyName) - { - PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); - } - - } - -} \ No newline at end of file diff --git a/xFunc/ViewModels/FunctionViewModel.cs b/xFunc/ViewModels/FunctionViewModel.cs deleted file mode 100644 index 2436f153e..000000000 --- a/xFunc/ViewModels/FunctionViewModel.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using xFunc.Maths.Expressions; - -namespace xFunc.ViewModels -{ - - public class FunctionViewModel - { - private readonly IExpression value; - - public FunctionViewModel(UserFunction function, IExpression value) - { - this.Function = function; - this.value = value; - } - - public UserFunction Function { get; } - - public string Value => value.ToString(); - - } - -} \ No newline at end of file diff --git a/xFunc/ViewModels/GraphItemViewModel.cs b/xFunc/ViewModels/GraphItemViewModel.cs deleted file mode 100644 index 721b37ee9..000000000 --- a/xFunc/ViewModels/GraphItemViewModel.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using System.Windows.Media; -using xFunc.Maths.Expressions; - -namespace xFunc.ViewModels -{ - - public class GraphItemViewModel : BaseViewModel - { - - private bool isChecked; - private DrawingVisual visual; - private Color color; - - public GraphItemViewModel(IExpression exp, bool isChecked, DrawingVisual visual, Color color) - { - this.Expression = exp; - this.isChecked = isChecked; - this.visual = visual; - this.color = color; - } - - public override string ToString() - { - return Expression.ToString(); - } - - public bool IsChecked - { - get - { - return isChecked; - } - set - { - isChecked = value; - OnPropertyChanged("IsChecked"); - } - } - - public IExpression Expression { get; } - - public DrawingVisual Visual - { - get - { - return visual; - } - set - { - visual = value; - OnPropertyChanged(nameof(Visual)); - } - } - - public Color ChartColor - { - get - { - return color; - } - set - { - color = value; - OnPropertyChanged(nameof(ChartColor)); - } - } - - } - -} \ No newline at end of file diff --git a/xFunc/ViewModels/MathWorkspaceItemViewModel.cs b/xFunc/ViewModels/MathWorkspaceItemViewModel.cs deleted file mode 100644 index 9919c1a6e..000000000 --- a/xFunc/ViewModels/MathWorkspaceItemViewModel.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using xFunc.Maths.Results; -using xFunc.Presenters; - -namespace xFunc.ViewModels -{ - - public class MathWorkspaceItemViewModel - { - public MathWorkspaceItemViewModel(int index, MathWorkspaceItem item) - { - this.Index = index; - this.Item = item; - } - - public int Index { get; } - - public MathWorkspaceItem Item { get; } - - public string StringExpression => Item.StringExpression; - - public IResult Result => Item.Result; - - public string Answer => Item.Answer; - - } - -} \ No newline at end of file diff --git a/xFunc/ViewModels/TruthTableRowViewModel.cs b/xFunc/ViewModels/TruthTableRowViewModel.cs deleted file mode 100644 index ebb9b89e9..000000000 --- a/xFunc/ViewModels/TruthTableRowViewModel.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -namespace xFunc.ViewModels -{ - - public class TruthTableRowViewModel - { - public TruthTableRowViewModel(int varsCount, int valuesCount) - { - VarsValues = new bool[varsCount]; - Values = new bool[valuesCount]; - } - - public int Index { get; set; } - - public bool[] VarsValues { get; } - - public bool[] Values { get; set; } - - public bool Result - { - get => Values[^1]; - set => Values[^1] = value; - } - - } - -} \ No newline at end of file diff --git a/xFunc/ViewModels/VariableViewModel.cs b/xFunc/ViewModels/VariableViewModel.cs deleted file mode 100644 index 60bcacded..000000000 --- a/xFunc/ViewModels/VariableViewModel.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using xFunc.Maths.Expressions.Collections; - -namespace xFunc.ViewModels -{ - - public class VariableViewModel - { - - private readonly Parameter parameter; - - public VariableViewModel(Parameter parameter) => this.parameter = parameter; - - public string Variable => parameter.Key; - - public object Value => parameter.Value.Value; - - public ParameterType Type => parameter.Type; - - } - -} \ No newline at end of file diff --git a/xFunc/Views/AboutView.xaml b/xFunc/Views/AboutView.xaml deleted file mode 100644 index eb3d6cb9b..000000000 --- a/xFunc/Views/AboutView.xaml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - https://github.com/sys27/xFunc - - - - https://github.com/sys27/xFunc/wiki - - - The MIT License (MIT) -Copyright © 2012-2021 Dmytro Kyshchenko - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - - - - - - - - - - - - - - - - - - diff --git a/xFunc/Views/FunctionView.xaml.cs b/xFunc/Views/FunctionView.xaml.cs deleted file mode 100644 index 89b553989..000000000 --- a/xFunc/Views/FunctionView.xaml.cs +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using System; -using System.Linq; -using System.Windows; -using System.Windows.Input; -using xFunc.Maths; -using xFunc.Maths.Analyzers.TypeAnalyzers; -using xFunc.Maths.Expressions; -using xFunc.Maths.Expressions.Collections; -using xFunc.Resources; -using xFunc.ViewModels; - -namespace xFunc.Views -{ - - public partial class FunctionView : Window - { - - private Processor processor; - - #region Commands - - public static RoutedCommand AddCommand = new RoutedCommand(); - public static RoutedCommand EditCommand = new RoutedCommand(); - public static RoutedCommand DeleteCommand = new RoutedCommand(); - public static RoutedCommand RefreshCommand = new RoutedCommand(); - - #endregion - - public FunctionView(Processor processor) - { - this.processor = processor; - this.processor.Parameters.Functions.CollectionChanged += (o, args) => RefreshList(); - - RefreshList(); - - this.SourceInitialized += (o, args) => this.HideMinimizeAndMaximizeButtons(); - - InitializeComponent(); - } - - private void RefreshList() - { - this.DataContext = processor.Parameters.Functions.Select(f => new FunctionViewModel(f.Key, f.Value)); - } - - #region Commands - - private void AddCommand_Executed(object o, ExecutedRoutedEventArgs args) - { - var view = new AddFunctionView - { - Owner = this - }; - if (view.ShowDialog() == true) - { - try - { - if (!(processor.Parse(view.FunctionName) is UserFunction userFunc)) - { - MessageBox.Show(this, Resource.AddFuncError, Resource.ErrorHeader, MessageBoxButton.OK, MessageBoxImage.Warning); - - return; - } - - var func = processor.Parse(view.Function); - - processor.Parameters.Functions.Add(userFunc, func); - - RefreshList(); - } - catch (TokenizeException mle) - { - MessageBox.Show(this, mle.Message, Resource.ErrorHeader, MessageBoxButton.OK, MessageBoxImage.Warning); - } - catch (ParseException mpe) - { - MessageBox.Show(this, mpe.Message, Resource.ErrorHeader, MessageBoxButton.OK, MessageBoxImage.Warning); - } - catch (ParameterIsReadOnlyException mpiroe) - { - MessageBox.Show(this, mpiroe.Message, Resource.ErrorHeader, MessageBoxButton.OK, MessageBoxImage.Warning); - } - catch (BinaryParameterTypeMismatchException bptme) - { - MessageBox.Show(this, bptme.Message, Resource.ErrorHeader, MessageBoxButton.OK, MessageBoxImage.Warning); - } - catch (DifferentParameterTypeMismatchException dptme) - { - MessageBox.Show(this, dptme.Message, Resource.ErrorHeader, MessageBoxButton.OK, MessageBoxImage.Warning); - } - catch (ParameterTypeMismatchException ptme) - { - MessageBox.Show(this, ptme.Message, Resource.ErrorHeader, MessageBoxButton.OK, MessageBoxImage.Warning); - } - catch (ArgumentNullException ane) - { - MessageBox.Show(this, ane.Message, Resource.ErrorHeader, MessageBoxButton.OK, MessageBoxImage.Warning); - } - catch (ArgumentException ae) - { - MessageBox.Show(this, ae.Message, Resource.ErrorHeader, MessageBoxButton.OK, MessageBoxImage.Warning); - } - } - } - - private void EditCommand_Executed(object o, ExecutedRoutedEventArgs args) - { - var selectedItem = funcList.SelectedItem as FunctionViewModel; - - var view = new AddFunctionView(selectedItem) - { - Owner = this - }; - if (view.ShowDialog() == true) - { - try - { - var userFunc = ((FunctionViewModel)funcList.SelectedItem).Function; - var func = processor.Parse(view.Function); - - processor.Parameters.Functions[userFunc] = func; - - RefreshList(); - } - catch (TokenizeException mle) - { - MessageBox.Show(this, mle.Message, Resource.ErrorHeader, MessageBoxButton.OK, MessageBoxImage.Warning); - } - catch (ParseException mpe) - { - MessageBox.Show(this, mpe.Message, Resource.ErrorHeader, MessageBoxButton.OK, MessageBoxImage.Warning); - } - catch (ParameterIsReadOnlyException mpiroe) - { - MessageBox.Show(this, mpiroe.Message, Resource.ErrorHeader, MessageBoxButton.OK, MessageBoxImage.Warning); - } - catch (ParameterTypeMismatchException ptme) - { - MessageBox.Show(this, ptme.Message, Resource.ErrorHeader, MessageBoxButton.OK, MessageBoxImage.Warning); - } - catch (ArgumentNullException ane) - { - MessageBox.Show(this, ane.Message, Resource.ErrorHeader, MessageBoxButton.OK, MessageBoxImage.Warning); - } - catch (ArgumentException ae) - { - MessageBox.Show(this, ae.Message, Resource.ErrorHeader, MessageBoxButton.OK, MessageBoxImage.Warning); - } - } - } - - private void DeleteCommand_Executed(object o, ExecutedRoutedEventArgs args) - { - var selectedItem = funcList.SelectedItem as FunctionViewModel; - processor.Parameters.Functions.Remove(selectedItem.Function); - - RefreshList(); - } - - private void RefreshCommand_Executed(object o, ExecutedRoutedEventArgs args) - { - RefreshList(); - } - - private void SelectedCommand_CanExecute(object o, CanExecuteRoutedEventArgs args) - { - args.CanExecute = funcList.SelectedItem != null; - } - - #endregion - - } - -} \ No newline at end of file diff --git a/xFunc/Views/GraphsControl.xaml b/xFunc/Views/GraphsControl.xaml deleted file mode 100644 index a05c228ef..000000000 --- a/xFunc/Views/GraphsControl.xaml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xFunc/Views/GraphsControl.xaml.cs b/xFunc/Views/GraphsControl.xaml.cs deleted file mode 100644 index eeb8735ae..000000000 --- a/xFunc/Views/GraphsControl.xaml.cs +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Input; -using xFunc.Maths; -using xFunc.Presenters; -using xFunc.Resources; -using xFunc.ViewModels; - -namespace xFunc.Views -{ - - public partial class GraphsControl : UserControl, IGraphsView - { - - public static readonly DependencyProperty StatusProperty = DependencyProperty.Register(nameof(Status), typeof(string), typeof(GraphsControl)); - - public GraphsControl() - { - InitializeComponent(); - } - - public GraphsControl(GraphsPresenter presenter) - { - this.Presenter = presenter; - - InitializeComponent(); - } - - private void graphExpBox_KeyUp(object o, KeyEventArgs args) - { - if (args.Key == Key.Enter && !string.IsNullOrWhiteSpace(graphExpressionBox.Text)) - { - try - { - Presenter.Add(graphExpressionBox.Text); - Status = string.Empty; - } - catch (TokenizeException mle) - { - Status = mle.Message; - } - catch (ParseException mpe) - { - Status = mpe.Message; - } - catch (DivideByZeroException dbze) - { - Status = dbze.Message; - } - catch (ArgumentNullException ane) - { - Status = ane.Message; - } - catch (ArgumentException ae) - { - Status = ae.Message; - } - catch (FormatException fe) - { - Status = fe.Message; - } - catch (OverflowException oe) - { - Status = oe.Message; - } - catch (KeyNotFoundException) - { - Presenter.Remove(Presenter.CountOfGraphs - 1); - - Status = Resource.VariableNotFoundExceptionError; - } - catch (IndexOutOfRangeException) - { - Status = Resource.IndexOutOfRangeExceptionError; - } - catch (InvalidOperationException ioe) - { - Status = ioe.Message; - } - catch (NotSupportedException) - { - Presenter.Remove(Presenter.CountOfGraphs - 1); - - Status = Resource.NotSupportedOperationError; - } - - graphExpressionBox.Text = string.Empty; - } - } - - private void graphsList_SelectionChanged(object o, SelectionChangedEventArgs args) - { - plot.Expression = graphsList.SelectedIndex >= 0 ? graphsList.Items.Cast() : null; - } - - private void graphItem_Toggle(object o, RoutedEventArgs args) - { - plot.ReRender(); - } - - private void removeGraph_Click(object o, RoutedEventArgs args) - { - var item = ((Button)o).Tag as GraphItemViewModel; - - Presenter.Remove(item); - } - - public string Status - { - get => (string)GetValue(StatusProperty); - set => SetValue(StatusProperty, value); - } - - public GraphsPresenter Presenter { get; set; } - - public IEnumerable Graphs - { - set - { - graphsList.SelectedIndex = -1; - graphsList.ItemsSource = value; - graphsList.SelectedIndex = value.Count() - 1; - } - } - - } - -} \ No newline at end of file diff --git a/xFunc/Views/IGraphsView.cs b/xFunc/Views/IGraphsView.cs deleted file mode 100644 index 0c3046fcf..000000000 --- a/xFunc/Views/IGraphsView.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using System.Collections.Generic; -using xFunc.ViewModels; - -namespace xFunc.Views -{ - - public interface IGraphsView - { - - IEnumerable Graphs { set; } - - } - -} \ No newline at end of file diff --git a/xFunc/Views/IMathView.cs b/xFunc/Views/IMathView.cs deleted file mode 100644 index 2de31e713..000000000 --- a/xFunc/Views/IMathView.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using System.Collections.Generic; -using xFunc.ViewModels; - -namespace xFunc.Views -{ - - public interface IMathView : IView - { - - IEnumerable MathExpressions { set; } - - } - -} \ No newline at end of file diff --git a/xFunc/Views/IView.cs b/xFunc/Views/IView.cs deleted file mode 100644 index f6051bf0e..000000000 --- a/xFunc/Views/IView.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -namespace xFunc.Views -{ - - public interface IView - { - - } - -} \ No newline at end of file diff --git a/xFunc/Views/MainView.xaml b/xFunc/Views/MainView.xaml deleted file mode 100644 index 4406308f5..000000000 --- a/xFunc/Views/MainView.xaml +++ /dev/null @@ -1,1163 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Auto - - - - - - - Normal - - - - - - - Exp - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xFunc/Views/TruthTableControl.xaml.cs b/xFunc/Views/TruthTableControl.xaml.cs deleted file mode 100644 index f88c99a29..000000000 --- a/xFunc/Views/TruthTableControl.xaml.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Input; -using xFunc.Maths; -using xFunc.Maths.Analyzers.TypeAnalyzers; -using xFunc.Maths.Expressions; -using xFunc.Maths.Expressions.Collections; -using xFunc.Presenters; -using xFunc.Resources; - -namespace xFunc.Views -{ - - public partial class TruthTableControl : UserControl - { - - public static readonly DependencyProperty StatusProperty = DependencyProperty.Register(nameof(Status), typeof(string), typeof(TruthTableControl)); - - public TruthTableControl() - { - InitializeComponent(); - } - - public TruthTableControl(TruthTablePresenter presenter) - { - Presenter = presenter; - - InitializeComponent(); - } - - private void GenerateTruthTable(IEnumerable exps, ParameterCollection parameters) - { - truthTableGridView.Columns.Clear(); - - truthTableGridView.Columns.Add(new GridViewColumn - { - Header = "#", - DisplayMemberBinding = new Binding("Index") - }); - for (int i = 0; i < parameters.Count(); i++) - { - truthTableGridView.Columns.Add(new GridViewColumn - { - Header = parameters.ElementAt(i).Key, - DisplayMemberBinding = new Binding($"VarsValues[{i}]") - }); - } - for (int i = 0; i < exps.Count() - 1; i++) - { - truthTableGridView.Columns.Add(new GridViewColumn - { - Header = exps.ElementAt(i), - DisplayMemberBinding = new Binding($"Values[{i}]") - }); - } - if (exps.Count() != 0) - truthTableGridView.Columns.Add(new GridViewColumn - { - Header = exps.ElementAt(exps.Count() - 1), - DisplayMemberBinding = new Binding("Result") - }); - } - - private void truthTableExpressionBox_KeyUp(object o, KeyEventArgs args) - { - if (args.Key == Key.Enter && !string.IsNullOrWhiteSpace(truthTableExpressionBox.Text)) - { - try - { - Presenter.Generate(truthTableExpressionBox.Text); - GenerateTruthTable(Presenter.Expressions, Presenter.Parameters); - truthTableList.ItemsSource = Presenter.Table; - - Status = string.Empty; - } - catch (TokenizeException le) - { - Status = le.Message; - } - catch (ParseException pe) - { - Status = pe.Message; - } - catch (DivideByZeroException dbze) - { - Status = dbze.Message; - } - catch (ArgumentNullException ane) - { - Status = ane.Message; - } - catch (ArgumentException ae) - { - Status = ae.Message; - } - catch (FormatException fe) - { - Status = fe.Message; - } - catch (OverflowException oe) - { - Status = oe.Message; - } - catch (KeyNotFoundException) - { - Status = Resource.VariableNotFoundExceptionError; - } - catch (IndexOutOfRangeException) - { - Status = Resource.IndexOutOfRangeExceptionError; - } - catch (InvalidOperationException ioe) - { - Status = ioe.Message; - } - catch (ResultIsNotSupportedException rinse) - { - Status = rinse.Message; - } - catch (BinaryParameterTypeMismatchException bptme) - { - Status = bptme.Message; - } - catch (DifferentParameterTypeMismatchException dptme) - { - Status = dptme.Message; - } - catch (ParameterTypeMismatchException ptme) - { - Status = ptme.Message; - } - catch (NotSupportedException) - { - Status = Resource.NotSupportedOperationError; - } - } - } - - public string Status - { - get => (string)GetValue(StatusProperty); - set => SetValue(StatusProperty, value); - } - - public TruthTablePresenter Presenter { get; set; } - - } - -} \ No newline at end of file diff --git a/xFunc/Views/VariableView.xaml b/xFunc/Views/VariableView.xaml deleted file mode 100644 index ce88ae2ac..000000000 --- a/xFunc/Views/VariableView.xaml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xFunc/Views/VariableView.xaml.cs b/xFunc/Views/VariableView.xaml.cs deleted file mode 100644 index 7025fe6ec..000000000 --- a/xFunc/Views/VariableView.xaml.cs +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using System.Linq; -using System.Windows; -using System.Windows.Data; -using System.Windows.Input; -using xFunc.Maths; -using xFunc.Maths.Expressions.Collections; -using xFunc.ViewModels; - -namespace xFunc.Views -{ - - public partial class VariableView : Window - { - - private readonly Processor processor; - - #region Commands - - public static RoutedCommand AddCommand = new RoutedCommand(); - public static RoutedCommand EditCommand = new RoutedCommand(); - public static RoutedCommand DeleteCommand = new RoutedCommand(); - public static RoutedCommand RefreshCommand = new RoutedCommand(); - - #endregion - - public VariableView(Processor processor) - { - this.processor = processor; - this.processor.Parameters.Variables.CollectionChanged += (o, args) => RefreshList(); - - RefreshList(); - - this.SourceInitialized += (o, args) => this.HideMinimizeAndMaximizeButtons(); - - InitializeComponent(); - } - - private void RefreshList() - { - this.DataContext = processor.Parameters.Variables.Select(v => new VariableViewModel(v)); - var view = (CollectionView)CollectionViewSource.GetDefaultView(this.DataContext); - view.GroupDescriptions.Add(new PropertyGroupDescription("Type")); - } - - #region Commands - - private void AddCommand_Executed(object o, ExecutedRoutedEventArgs args) - { - var view = new AddVariableView - { - Owner = this - }; - if (view.ShowDialog() == true) - { - processor.Parameters.Variables.Add(new Parameter(view.VariableName, view.Value, view.IsReadOnly ? ParameterType.ReadOnly : ParameterType.Normal)); - - RefreshList(); - } - } - - private void EditCommand_Executed(object o, ExecutedRoutedEventArgs args) - { - var item = varList.SelectedItem as VariableViewModel; - - var view = new AddVariableView(item) - { - Owner = this - }; - if (view.ShowDialog() == true) - { - var variable = processor.Parameters.Variables.First(v => v.Key == view.VariableName); - variable.Value = view.Value; - - RefreshList(); - } - } - - private void EditCommand_CanExecute(object o, CanExecuteRoutedEventArgs args) - { - var item = varList.SelectedItem as VariableViewModel; - - args.CanExecute = item != null && item.Type == ParameterType.Normal; - } - - private void DeleteCommand_Executed(object o, ExecutedRoutedEventArgs args) - { - try - { - var selectedItem = varList.SelectedItem as VariableViewModel; - processor.Parameters.Variables.Remove(selectedItem.Variable); - - RefreshList(); - } - catch (ParameterIsReadOnlyException) - { - } - } - - private void DeleteCommand_CanExecute(object o, CanExecuteRoutedEventArgs args) - { - var item = varList.SelectedItem as VariableViewModel; - - args.CanExecute = item != null && item.Type != ParameterType.Constant; - } - - private void RefreshCommand_Executed(object o, ExecutedRoutedEventArgs args) - { - RefreshList(); - } - - #endregion - - } - -} \ No newline at end of file diff --git a/xFunc/Views/WindowExtentions.cs b/xFunc/Views/WindowExtentions.cs deleted file mode 100644 index a97964f7d..000000000 --- a/xFunc/Views/WindowExtentions.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Dmytro Kyshchenko. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using System; -using System.Runtime.InteropServices; -using System.Windows; - -namespace xFunc.Views -{ - - internal static class WindowExtensions - { - - private const int GWL_STYLE = -16; - private const int WS_MAXIMIZEBOX = 0x10000; - private const int WS_MINIMIZEBOX = 0x20000; - - [DllImport("user32.dll")] - private static extern int GetWindowLong(IntPtr hwnd, int index); - - [DllImport("user32.dll")] - private static extern int SetWindowLong(IntPtr hwnd, int index, int value); - - internal static void HideMinimizeAndMaximizeButtons(this Window window) - { - var hwnd = new System.Windows.Interop.WindowInteropHelper(window).Handle; - var currentStyle = GetWindowLong(hwnd, GWL_STYLE); - - SetWindowLong(hwnd, GWL_STYLE, (currentStyle & ~WS_MAXIMIZEBOX & ~WS_MINIMIZEBOX)); - } - - } - -} \ No newline at end of file diff --git a/xFunc/app.config b/xFunc/app.config deleted file mode 100644 index 5be9db0ff..000000000 --- a/xFunc/app.config +++ /dev/null @@ -1,120 +0,0 @@ - - - - -
- - - - - - 0 - - - 0 - - - 1024 - - - 576 - - - Normal - - - True - - - True - - - False - - - False - - - False - - - False - - - False - - - 0 - - - 20 - - - Auto - - - -1 - - - -1 - - - -1 - - - -1 - - - 220 - - - 280 - - - 220 - - - 280 - - - True - - - True - - - True - - - False - - - False - - - False - - - -1 - - - -1 - - - False - - - #FFFF0000 - - - False - - - False - - - - - - - diff --git a/xFunc/xFunc.UI.sln b/xFunc/xFunc.UI.sln deleted file mode 100644 index 334d36c8f..000000000 --- a/xFunc/xFunc.UI.sln +++ /dev/null @@ -1,43 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.29806.167 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "xFunc", "xFunc.csproj", "{2044D794-AB20-4699-8EE3-DEC2D83FFCD3}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "xFunc.Maths", "..\xFunc.Maths\xFunc.Maths.csproj", "{321AD332-2928-4192-8E86-85591D025297}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "xFunc.UnitConverters", "..\xFunc.UnitConverters\xFunc.UnitConverters.csproj", "{DCFA3516-6C31-49F7-BB0E-2285A137593F}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "xFunc.Tests", "..\xFunc.Tests\xFunc.Tests.csproj", "{E86CBD9A-A787-4E19-A2F7-79F111BAC3B4}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {2044D794-AB20-4699-8EE3-DEC2D83FFCD3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2044D794-AB20-4699-8EE3-DEC2D83FFCD3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2044D794-AB20-4699-8EE3-DEC2D83FFCD3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2044D794-AB20-4699-8EE3-DEC2D83FFCD3}.Release|Any CPU.Build.0 = Release|Any CPU - {321AD332-2928-4192-8E86-85591D025297}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {321AD332-2928-4192-8E86-85591D025297}.Debug|Any CPU.Build.0 = Debug|Any CPU - {321AD332-2928-4192-8E86-85591D025297}.Release|Any CPU.ActiveCfg = Release|Any CPU - {321AD332-2928-4192-8E86-85591D025297}.Release|Any CPU.Build.0 = Release|Any CPU - {DCFA3516-6C31-49F7-BB0E-2285A137593F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DCFA3516-6C31-49F7-BB0E-2285A137593F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DCFA3516-6C31-49F7-BB0E-2285A137593F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DCFA3516-6C31-49F7-BB0E-2285A137593F}.Release|Any CPU.Build.0 = Release|Any CPU - {E86CBD9A-A787-4E19-A2F7-79F111BAC3B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E86CBD9A-A787-4E19-A2F7-79F111BAC3B4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E86CBD9A-A787-4E19-A2F7-79F111BAC3B4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E86CBD9A-A787-4E19-A2F7-79F111BAC3B4}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {6559CD89-6A6A-4F60-9163-B54741ECA66E} - EndGlobalSection -EndGlobal diff --git a/xFunc/xFunc.csproj b/xFunc/xFunc.csproj deleted file mode 100644 index fe0636c44..000000000 --- a/xFunc/xFunc.csproj +++ /dev/null @@ -1,105 +0,0 @@ - - - - WinExe - netcoreapp3.1;net6.0-windows - true - 4.0.0 - 4.0.0 - 4.0.0 - en - Copyright © 2012-2021 Dmytro Kyshchenko - xFunc - xFunc - Images\xFunc.ico - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - True - True - Settings.settings - - - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - - - - True - True - Resource.resx - - - True - True - Resource.ru.resx - - - - - - PublicResXFileCodeGenerator - Resource.Designer.cs - - - PublicResXFileCodeGenerator - Resource.ru.Designer.cs - - - - - - LICENSE - PreserveNewest - - - - \ No newline at end of file