added email model
This commit is contained in:
parent
dc2e9d8f52
commit
d3f0e0dc10
@ -11,7 +11,7 @@ using MimeKit;
|
|||||||
|
|
||||||
namespace DeskHubSharp
|
namespace DeskHubSharp
|
||||||
{
|
{
|
||||||
class Email
|
class EmailBLL
|
||||||
{
|
{
|
||||||
// TODO: finish this class
|
// TODO: finish this class
|
||||||
// TODO: debug feedback form
|
// TODO: debug feedback form
|
||||||
@ -21,7 +21,7 @@ namespace DeskHubSharp
|
|||||||
private string _name;
|
private string _name;
|
||||||
private string _message;
|
private string _message;
|
||||||
|
|
||||||
public Email(TextBox name, TextBox emailBody)
|
public EmailBLL(TextBox name, TextBox emailBody)
|
||||||
{
|
{
|
||||||
_name = name.Text;
|
_name = name.Text;
|
||||||
_message = emailBody.Text;
|
_message = emailBody.Text;
|
@ -72,6 +72,7 @@
|
|||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</ApplicationDefinition>
|
</ApplicationDefinition>
|
||||||
<Compile Include="DAL\JsonDataService.cs" />
|
<Compile Include="DAL\JsonDataService.cs" />
|
||||||
|
<Compile Include="Models\Email.cs" />
|
||||||
<Compile Include="SearchWindow.xaml.cs">
|
<Compile Include="SearchWindow.xaml.cs">
|
||||||
<DependentUpon>SearchWindow.xaml</DependentUpon>
|
<DependentUpon>SearchWindow.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
@ -101,7 +102,7 @@
|
|||||||
<DependentUpon>App.xaml</DependentUpon>
|
<DependentUpon>App.xaml</DependentUpon>
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="BusinessLayer\Email.cs" />
|
<Compile Include="BusinessLayer\EmailBLL.cs" />
|
||||||
<Compile Include="BusinessLayer\Request.cs" />
|
<Compile Include="BusinessLayer\Request.cs" />
|
||||||
<Compile Include="DAL\IDataService.cs" />
|
<Compile Include="DAL\IDataService.cs" />
|
||||||
<Compile Include="DAL\XmlDataService.cs" />
|
<Compile Include="DAL\XmlDataService.cs" />
|
||||||
|
@ -31,7 +31,7 @@ namespace DeskHubSharp
|
|||||||
|
|
||||||
private void btn_send_Click(object sender, RoutedEventArgs e)
|
private void btn_send_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
Email email = new Email(txtbox_name, txtbox_feedbackmessage);
|
EmailBLL email = new EmailBLL(txtbox_name, txtbox_feedbackmessage);
|
||||||
email.CreateMessage();
|
email.CreateMessage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
7
DeskHubSharp/Models/Email.cs
Normal file
7
DeskHubSharp/Models/Email.cs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
namespace DeskHubSharp
|
||||||
|
{
|
||||||
|
public class Email
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -1 +1 @@
|
|||||||
b453599d59232d67f8d66bb03989d81f4cf64751
|
5fc4a31b9da29844dd7ba799c86639ce1bf7d4b0
|
||||||
|
Binary file not shown.
Reference in New Issue
Block a user