refactoring namespaces

This commit is contained in:
Sergey Chebotar 2021-12-08 14:45:14 +03:00
parent 8a869e73fb
commit dc1fc8b221
10 changed files with 16 additions and 14 deletions

View File

@ -100,7 +100,7 @@
<Compile Include="Source\Ribbon\RibbonController.cs" /> <Compile Include="Source\Ribbon\RibbonController.cs" />
<Compile Include="Source\Assistant\HttpClientUtil.cs" /> <Compile Include="Source\Assistant\HttpClientUtil.cs" />
<Compile Include="Source\Assistant\StoreResponse.cs" /> <Compile Include="Source\Assistant\StoreResponse.cs" />
<Compile Include="Source\DataExport\DataWriter.cs" /> <Compile Include="Source\DataExport\Exporter.cs" />
<Compile Include="Source\AddIn\AddIn.cs" /> <Compile Include="Source\AddIn\AddIn.cs" />
<Compile Include="Source\Assistant\IProduct.cs" /> <Compile Include="Source\Assistant\IProduct.cs" />
<Compile Include="Source\AddIn\Functions.cs" /> <Compile Include="Source\AddIn\Functions.cs" />

View File

@ -3,7 +3,7 @@ using ExcelDna.Registration;
using Microsoft.Win32; using Microsoft.Win32;
using System.Net.Http; using System.Net.Http;
namespace RehauSku.Assist namespace RehauSku
{ {
public enum ResponseOrder public enum ResponseOrder
{ {

View File

@ -1,6 +1,7 @@
using ExcelDna.Integration; using ExcelDna.Integration;
using RehauSku.Assistant;
namespace RehauSku.Assist namespace RehauSku
{ {
public class Functions public class Functions
{ {

View File

@ -5,7 +5,7 @@ using System.Net;
using System.Net.Http; using System.Net.Http;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace RehauSku.Assist namespace RehauSku.Assistant
{ {
static class HttpClientUtil static class HttpClientUtil
{ {

View File

@ -1,4 +1,4 @@
namespace RehauSku.Assist namespace RehauSku.Assistant
{ {
interface IProduct interface IProduct
{ {

View File

@ -3,7 +3,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
namespace RehauSku.Assist namespace RehauSku.Assistant
{ {
public static class RequestModifier public static class RequestModifier
{ {

View File

@ -9,7 +9,7 @@ using System.Text.RegularExpressions;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace RehauSku.Assist namespace RehauSku.Assistant
{ {
public enum ProductField public enum ProductField
{ {

View File

@ -1,6 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace RehauSku.Assist namespace RehauSku.Assistant
{ {
public class StoreResponce public class StoreResponce
{ {

View File

@ -3,17 +3,18 @@ using Microsoft.Office.Interop.Excel;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using RehauSku.Assistant;
namespace RehauSku.Assist namespace RehauSku.DataExport
{ {
public class DataWriter : IDisposable public class Exporter : IDisposable
{ {
private Application xlApp; private Application xlApp;
private Dictionary<string, double> SkuAmount { get; set; } private Dictionary<string, double> SkuAmount { get; set; }
private object[,] SelectedCells { get; set; } private object[,] SelectedCells { get; set; }
private string WorkingFileName { get; set; } private string WorkingFileName { get; set; }
public DataWriter() public Exporter()
{ {
this.xlApp = (Application)ExcelDnaUtil.Application; this.xlApp = (Application)ExcelDnaUtil.Application;
this.WorkingFileName = xlApp.ActiveWorkbook.FullName; this.WorkingFileName = xlApp.ActiveWorkbook.FullName;

View File

@ -1,9 +1,9 @@
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Windows.Forms; using System.Windows.Forms;
using ExcelDna.Integration.CustomUI; using ExcelDna.Integration.CustomUI;
using RehauSku.Assist; using RehauSku.DataExport;
namespace Ribbon namespace RehauSku.Ribbon
{ {
[ComVisible(true)] [ComVisible(true)]
public class RibbonController : ExcelRibbon public class RibbonController : ExcelRibbon
@ -26,7 +26,7 @@ namespace Ribbon
public void OnButtonPressed(IRibbonControl control) public void OnButtonPressed(IRibbonControl control)
{ {
using (DataWriter dw = new DataWriter()) using (Exporter dw = new Exporter())
{ {
if (!dw.IsRangeValid()) if (!dw.IsRangeValid())
{ {