big push; see commit
This commit is contained in:
parent
a453e7858c
commit
f1b3b9727e
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
15
DeskHubSharp/AboutWindow.xaml
Normal file
15
DeskHubSharp/AboutWindow.xaml
Normal file
@ -0,0 +1,15 @@
|
||||
<Window x:Class="DeskHubSharp.AboutWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:DeskHubSharp"
|
||||
mc:Ignorable="d"
|
||||
Title="AboutWindow" Height="450" Width="400">
|
||||
<Grid>
|
||||
<Label x:Name="lbl_title" Content="DeskHubSharp" HorizontalAlignment="Left" Margin="2,10,10,0" VerticalAlignment="Top" FontSize="24" Width="372"/>
|
||||
<Button x:Name="btn_close" Content="Close" HorizontalAlignment="Left" Margin="307,389,0,0" VerticalAlignment="Top" Width="75" Click="btn_close_Click" Background="#FFFFBABA"/>
|
||||
<TextBlock x:Name="txtblk_about1" HorizontalAlignment="Left" Margin="10,57,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="64" Width="372"><Run Text="Written by Wyatt J. Miller"/><LineBreak/><Run Text="Copyright 2018, All rights reserved"/><LineBreak/><Run Text="Licensed under the MIT license"/></TextBlock>
|
||||
<TextBlock x:Name="txtblk_about2" HorizontalAlignment="Left" Margin="10,121,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="87" Width="372"><Run Text="Using technologies Visual Studio, .NET, WPF and Avalonia."/><LineBreak/><Run Text="Want to help with development?"/></TextBlock>
|
||||
</Grid>
|
||||
</Window>
|
32
DeskHubSharp/AboutWindow.xaml.cs
Normal file
32
DeskHubSharp/AboutWindow.xaml.cs
Normal file
@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace DeskHubSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for AboutWindow.xaml
|
||||
/// </summary>
|
||||
public partial class AboutWindow : Window
|
||||
{
|
||||
public AboutWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btn_close_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
79
DeskHubSharp/BusinessLayer/Email.cs
Normal file
79
DeskHubSharp/BusinessLayer/Email.cs
Normal file
@ -0,0 +1,79 @@
|
||||
using System;
|
||||
using System.Net;
|
||||
using System.Net.Mail;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace DeskHubSharp
|
||||
{
|
||||
class Email
|
||||
{
|
||||
// TODO: finish this class
|
||||
|
||||
private string _to = "wyatt@wyattjmiller.com";
|
||||
private string _from = "wjmiller2016@gmail.com";
|
||||
private string _name;
|
||||
private string _message;
|
||||
|
||||
public Email(TextBox name, TextBox emailBody)
|
||||
{
|
||||
_name = name.Text;
|
||||
_message = emailBody.Text;
|
||||
}
|
||||
|
||||
private bool IsValidated()
|
||||
{
|
||||
if (_name == "")
|
||||
{
|
||||
ErrorWindow err = new ErrorWindow();
|
||||
err.lbl_title.Content = "Oops.";
|
||||
err.txtblk_error.Text = "Please fill in your name.";
|
||||
err.ShowDialog();
|
||||
return false;
|
||||
}
|
||||
if (_message == "")
|
||||
{
|
||||
ErrorWindow err = new ErrorWindow();
|
||||
err.lbl_title.Content = "Oops.";
|
||||
err.txtblk_error.Text = "Please fill in your message to the developer.";
|
||||
err.ShowDialog();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public void CreateMessage()
|
||||
{
|
||||
if (IsValidated())
|
||||
{
|
||||
// TODO: get a test email to send
|
||||
string subject = $"DeskHubSharp: {_name} requires your attention.";
|
||||
string body = $"{_message}";
|
||||
MailMessage message = new MailMessage(_from, _to, subject, body);
|
||||
SmtpClient client = new SmtpClient("smtp.gmail.com");
|
||||
//Console.WriteLine("Changing time out from {0} to 100.", client.Timeout);
|
||||
client.Timeout = 1000;
|
||||
// Credentials are necessary if the server requires the client
|
||||
// to authenticate before it will send e-mail on the client's behalf.
|
||||
client.Credentials = CredentialCache.DefaultNetworkCredentials;
|
||||
|
||||
try
|
||||
{
|
||||
client.Send(message);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
ErrorWindow err = new ErrorWindow();
|
||||
Console.WriteLine("Exception caught in CreateTimeoutTestMessage(): {0}",
|
||||
e.ToString());
|
||||
err.ShowDialog();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
21
DeskHubSharp/BusinessLayer/Request.cs
Normal file
21
DeskHubSharp/BusinessLayer/Request.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Mail;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DeskHubSharp
|
||||
{
|
||||
class Request
|
||||
{
|
||||
public Request()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -4,11 +4,11 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CIT225FinalAppication
|
||||
namespace DeskHubSharp
|
||||
{
|
||||
public interface IDataService
|
||||
{
|
||||
List<User> ReadAll();
|
||||
void WriteAll(List<User> characters);
|
||||
List<Search> ReadAll();
|
||||
void WriteAll(List<Search> user);
|
||||
}
|
||||
}
|
||||
|
77
DeskHubSharp/DAL/JsonDataService.cs
Normal file
77
DeskHubSharp/DAL/JsonDataService.cs
Normal file
@ -0,0 +1,77 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace DeskHubSharp
|
||||
{
|
||||
public class JsonDataService
|
||||
{
|
||||
// TODO: Fundamently broken. Will decide what to do with this.
|
||||
|
||||
private string _dataConfig;
|
||||
|
||||
/// <summary>
|
||||
/// reads all the things from the json string/data
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<Search> ReadAll()
|
||||
{
|
||||
List<Search> user = new List<Search>();
|
||||
|
||||
try
|
||||
{
|
||||
using (StreamReader sr = new StreamReader(_dataConfig))
|
||||
{
|
||||
string jsonString = sr.ReadToEnd();
|
||||
|
||||
Search.ItemsItem users = JsonConvert.DeserializeObject<Search.ItemsItem>(_dataConfig);
|
||||
//user = users.items;
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return user;
|
||||
}
|
||||
|
||||
|
||||
public void WriteAll(IEnumerable<User> characters)
|
||||
{
|
||||
//RootObject rootObject = new RootObject();
|
||||
//rootObject.Characters = new Characters();
|
||||
//rootObject.Characters.Character = characters as List<Character>;
|
||||
|
||||
//string jsonString = JsonConvert.SerializeObject(rootObject);
|
||||
|
||||
try
|
||||
{
|
||||
StreamWriter writer = new StreamWriter(_dataConfig);
|
||||
using (writer)
|
||||
{
|
||||
//writer.WriteLine(jsonString);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
public JsonDataService()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public JsonDataService(string dataFile)
|
||||
{
|
||||
_dataConfig = dataFile;
|
||||
}
|
||||
}
|
||||
}
|
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
using System.Xml.Serialization;
|
||||
using System.IO;
|
||||
|
||||
namespace CIT225FinalAppication
|
||||
namespace DeskHubSharp
|
||||
{
|
||||
class XmlDataService
|
||||
{
|
||||
|
13
DeskHubSharp/Data/DataConfig.cs
Normal file
13
DeskHubSharp/Data/DataConfig.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DeskHubSharp
|
||||
{
|
||||
class DataConfig
|
||||
{
|
||||
public string dataConfString = "";
|
||||
}
|
||||
}
|
@ -35,8 +35,15 @@
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="RestSharp, Version=106.5.4.0, Culture=neutral, PublicKeyToken=598062e77f915f75, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\RestSharp.106.5.4\lib\net452\RestSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Core" />
|
||||
@ -54,23 +61,64 @@
|
||||
<ApplicationDefinition Include="App.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</ApplicationDefinition>
|
||||
<Compile Include="DAL\JsonDataService.cs" />
|
||||
<Compile Include="SearchWindow.xaml.cs">
|
||||
<DependentUpon>SearchWindow.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Page Include="AboutWindow.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="DetailWindow.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="ErrorWindow.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="FeedbackWindow.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="HelpWindow.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="MainWindow.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Compile Include="AboutWindow.xaml.cs">
|
||||
<DependentUpon>AboutWindow.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="BusinessLayer\Email.cs" />
|
||||
<Compile Include="BusinessLayer\Request.cs" />
|
||||
<Compile Include="DAL\IDataService.cs" />
|
||||
<Compile Include="DAL\XmlDataService.cs" />
|
||||
<Compile Include="Data\DataConfig.cs" />
|
||||
<Compile Include="DetailWindow.xaml.cs">
|
||||
<DependentUpon>DetailWindow.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ErrorWindow.xaml.cs">
|
||||
<DependentUpon>ErrorWindow.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FeedbackWindow.xaml.cs">
|
||||
<DependentUpon>FeedbackWindow.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HelpWindow.xaml.cs">
|
||||
<DependentUpon>HelpWindow.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="MainWindow.xaml.cs">
|
||||
<DependentUpon>MainWindow.xaml</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Page Include="SearchWindow.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Models\RepoDetail.cs" />
|
||||
<Compile Include="Models\RepoList.cs" />
|
||||
<Compile Include="Models\Search.cs" />
|
||||
<Compile Include="Models\User.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs">
|
||||
@ -91,6 +139,7 @@
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<None Include="build.cake" />
|
||||
<None Include="packages.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
@ -99,8 +148,9 @@
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
<Folder Include="Scripts\" />
|
||||
<Resource Include="colors.txt" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
15
DeskHubSharp/DetailWindow.xaml
Normal file
15
DeskHubSharp/DetailWindow.xaml
Normal file
@ -0,0 +1,15 @@
|
||||
<Window x:Class="DeskHubSharp.DetailWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:DeskHubSharp"
|
||||
mc:Ignorable="d"
|
||||
Title="Detail - DeskHubSharp" Height="450" Width="800">
|
||||
<Grid>
|
||||
<Label x:Name="lbl_reponame" Content="Repository Name" HorizontalAlignment="Left" Margin="10,47,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.603,-0.2" Width="225" FontSize="16"/>
|
||||
<Label x:Name="lbl_title" Content="Details" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="171" FontSize="20"/>
|
||||
<Button x:Name="btn_close" Content="Close" HorizontalAlignment="Left" Margin="707,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFFFABAB" Click="btn_close_Click"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
32
DeskHubSharp/DetailWindow.xaml.cs
Normal file
32
DeskHubSharp/DetailWindow.xaml.cs
Normal file
@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace DeskHubSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for DetailWindow.xaml
|
||||
/// </summary>
|
||||
public partial class DetailWindow : Window
|
||||
{
|
||||
public DetailWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btn_close_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
16
DeskHubSharp/ErrorWindow.xaml
Normal file
16
DeskHubSharp/ErrorWindow.xaml
Normal file
@ -0,0 +1,16 @@
|
||||
<Window x:Class="DeskHubSharp.ErrorWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:DeskHubSharp"
|
||||
mc:Ignorable="d"
|
||||
Title="ErrorWindow" Height="200" Width="300
|
||||
">
|
||||
<Grid>
|
||||
<TextBlock x:Name="txtblk_error" HorizontalAlignment="Left" Margin="10,66,0,0" TextWrapping="Wrap" Text="An error occurred. Please try again." VerticalAlignment="Top" Width="272" TextAlignment="Center" RenderTransformOrigin="0.468,-0.751"/>
|
||||
<Button Content="Close" HorizontalAlignment="Left" Margin="112,128,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click"/>
|
||||
<Label x:Name="lbl_title" Content="Oops. It's not you, it's us." HorizontalAlignment="Left" Margin="56,10,0,0" VerticalAlignment="Top" FontSize="16"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
32
DeskHubSharp/ErrorWindow.xaml.cs
Normal file
32
DeskHubSharp/ErrorWindow.xaml.cs
Normal file
@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace DeskHubSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for ErrorWindow.xaml
|
||||
/// </summary>
|
||||
public partial class ErrorWindow : Window
|
||||
{
|
||||
public ErrorWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
24
DeskHubSharp/FeedbackWindow.xaml
Normal file
24
DeskHubSharp/FeedbackWindow.xaml
Normal file
@ -0,0 +1,24 @@
|
||||
<Window x:Class="DeskHubSharp.FeedbackWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:DeskHubSharp"
|
||||
mc:Ignorable="d"
|
||||
Title="Feedback - DeskHubSharp" Height="450" Width="500">
|
||||
<Grid>
|
||||
<Label x:Name="lbl_title" Content="Feedback" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontSize="20"/>
|
||||
<TextBox x:Name="txtbox_name" HorizontalAlignment="Left" Height="23" Margin="43,159,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="216"/>
|
||||
<TextBox x:Name="txtbox_feedbackmessage" HorizontalAlignment="Left" Height="117" Margin="43,213,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="406"/>
|
||||
<TextBlock HorizontalAlignment="Left" Margin="43,52,0,0" TextWrapping="Wrap" Text="Is there a problem with the program? Got a new feature that you want in the program? By filling out this feedback form, you can shape development going forward! Please state your case and we will reply as soon as possible." VerticalAlignment="Top" Height="76" Width="388"/>
|
||||
<Label x:Name="lbl_nametxt" Content="Name:" HorizontalAlignment="Left" Margin="43,133,0,0" VerticalAlignment="Top" Padding="2,5,5,5"/>
|
||||
<Label x:Name="lbl_feedbackmessage" Content="Your message:" HorizontalAlignment="Left" Margin="43,187,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.142,0.363" Padding="2,5,5,5"/>
|
||||
<Button x:Name="btn_discard" Content="Discard" HorizontalAlignment="Left" Margin="407,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFFFB7B7" Click="btn_discard_Click"/>
|
||||
<Button x:Name="btn_send" Content="Send" HorizontalAlignment="Left" Margin="327,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFACFFC2" Click="btn_send_Click">
|
||||
<Button.Resources>
|
||||
<Color x:Key="Green">#FF34A853</Color>
|
||||
</Button.Resources>
|
||||
</Button>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
38
DeskHubSharp/FeedbackWindow.xaml.cs
Normal file
38
DeskHubSharp/FeedbackWindow.xaml.cs
Normal file
@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace DeskHubSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for FeedbackWindow.xaml
|
||||
/// </summary>
|
||||
public partial class FeedbackWindow : Window
|
||||
{
|
||||
public FeedbackWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btn_discard_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void btn_send_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Email email = new Email(txtbox_name, txtbox_feedbackmessage);
|
||||
email.CreateMessage();
|
||||
}
|
||||
}
|
||||
}
|
16
DeskHubSharp/HelpWindow.xaml
Normal file
16
DeskHubSharp/HelpWindow.xaml
Normal file
@ -0,0 +1,16 @@
|
||||
<Window x:Class="DeskHubSharp.HelpWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:DeskHubSharp"
|
||||
mc:Ignorable="d"
|
||||
Title="HelpWindow" Height="450" Width="400
|
||||
">
|
||||
<Grid>
|
||||
<Button x:Name="btn_close" Content="Close" HorizontalAlignment="Left" Margin="307,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFFFBDBD" Click="btn_close_Click"/>
|
||||
<Label x:Name="lbl_title" Content="Need some help?" HorizontalAlignment="Left" Margin="3,10,0,0" VerticalAlignment="Top" FontSize="20"/>
|
||||
<TextBlock HorizontalAlignment="Left" Margin="10,52,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="332" Width="372"><Run Text="No worries friend! We have you covered!"/><LineBreak/><Run/><LineBreak/><Run Text="If you have a blank data grid when you first start the program, that's normal! You just have to search for somebody."/><LineBreak/><Run/><LineBreak/><Run Text="Click on the Search button and type away in the name field! If you get an error in response to your search query, that means that user doesn't exist."/><LineBreak/><Run/><LineBreak/><Run Text="If the search finds a user, the data grid will populate. Click on a repository of interest and click on the Detail button to view it in action."/><LineBreak/><Run/><LineBreak/><Run Text="You found a problem with the program? Great! Click on the Feedback button to send an email to me and I will respond to said email as soon as possible."/><LineBreak/><LineBreak/><Run Text="Want to know more about this program? Click on the About program to view stuff."/></TextBlock>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
32
DeskHubSharp/HelpWindow.xaml.cs
Normal file
32
DeskHubSharp/HelpWindow.xaml.cs
Normal file
@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace DeskHubSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for HelpWindow.xaml
|
||||
/// </summary>
|
||||
public partial class HelpWindow : Window
|
||||
{
|
||||
public HelpWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btn_close_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
@ -7,12 +7,13 @@
|
||||
mc:Ignorable="d"
|
||||
Title="DeskHubSharp" Height="450" Width="800">
|
||||
<Grid>
|
||||
<Button Content="Button" HorizontalAlignment="Left" Margin="10,389,0,0" VerticalAlignment="Top" Width="75"/>
|
||||
<Button Content="Button" HorizontalAlignment="Left" Margin="90,389,0,0" VerticalAlignment="Top" Width="75"/>
|
||||
<Button Content="Button" HorizontalAlignment="Left" Margin="170,389,0,0" VerticalAlignment="Top" Width="75"/>
|
||||
<Button Content="Button" HorizontalAlignment="Left" Margin="250,389,0,0" VerticalAlignment="Top" Width="75"/>
|
||||
<Button Content="Button" HorizontalAlignment="Left" Margin="707,389,0,0" VerticalAlignment="Top" Width="75"/>
|
||||
<Button x:Name="btn_search" Content="Search" HorizontalAlignment="Left" Margin="10,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFA1C8FF" Click="btn_search_Click"/>
|
||||
<Button x:Name="btn_detail" Content="Detail" HorizontalAlignment="Left" Margin="90,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFA1C8FF" Click="btn_detail_Click"/>
|
||||
<Button x:Name="btn_feedback" Content="Feedback" HorizontalAlignment="Left" Margin="170,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFD9A1FF" Click="btn_feedback_Click"/>
|
||||
<Button x:Name="btn_help" Content="Help" HorizontalAlignment="Left" Margin="250,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFFFFF9D" Click="btn_help_Click"/>
|
||||
<Button x:Name="btn_about" Content="About" HorizontalAlignment="Left" Margin="627,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFAFFBAB" Click="btn_about_Click"/>
|
||||
<DataGrid HorizontalAlignment="Left" Height="333" Margin="10,10,0,0" VerticalAlignment="Top" Width="772"/>
|
||||
<Button x:Name="btn_exit" Content="Exit" HorizontalAlignment="Left" Margin="707,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFFF9999" Click="btn_exit_Click"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
|
@ -24,5 +24,40 @@ namespace DeskHubSharp
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btn_detail_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
DetailWindow detail = new DetailWindow();
|
||||
detail.ShowDialog();
|
||||
}
|
||||
|
||||
private void btn_exit_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void btn_about_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
AboutWindow about = new AboutWindow();
|
||||
about.ShowDialog();
|
||||
}
|
||||
|
||||
private void btn_feedback_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
FeedbackWindow feedback = new FeedbackWindow();
|
||||
feedback.ShowDialog();
|
||||
}
|
||||
|
||||
private void btn_help_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
HelpWindow help = new HelpWindow();
|
||||
help.ShowDialog();
|
||||
}
|
||||
|
||||
private void btn_search_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
SearchWindow search = new SearchWindow();
|
||||
search.ShowDialog();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
16
DeskHubSharp/Models/RepoList.cs
Normal file
16
DeskHubSharp/Models/RepoList.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DeskHubSharp
|
||||
{
|
||||
class RepoList
|
||||
{
|
||||
// ideas
|
||||
// 1. have a for loop iterate on copies on this one particular file, if possible :p
|
||||
// 2. have the request/reponse go through the DAL/jsondataservice.cs and have it dish out the response that way
|
||||
// to be continued...
|
||||
}
|
||||
}
|
@ -147,6 +147,6 @@ namespace DeskHubSharp
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public List <ItemsItem> items { get; set; }
|
||||
public List<ItemsItem> items { get; set; }
|
||||
}
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace DeskHubSharp
|
||||
{
|
||||
public class User
|
||||
|
17
DeskHubSharp/SearchWindow.xaml
Normal file
17
DeskHubSharp/SearchWindow.xaml
Normal file
@ -0,0 +1,17 @@
|
||||
<Window x:Class="DeskHubSharp.SearchWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:DeskHubSharp"
|
||||
mc:Ignorable="d"
|
||||
Title="SearchWindow" Height="200" Width="500">
|
||||
<Grid>
|
||||
<Label x:Name="lbl_search" Content="Search" HorizontalAlignment="Left" Margin="17,15,0,0" VerticalAlignment="Top" FontSize="20" Padding="2,5,5,5"/>
|
||||
<TextBox x:Name="txtbox_query" HorizontalAlignment="Left" Height="23" Margin="17,79,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="465"/>
|
||||
<Label x:Name="lbl_user" Content="User:" HorizontalAlignment="Left" Margin="17,52,0,0" VerticalAlignment="Top" Padding="3,5,5,5" RenderTransformOrigin="0.686,0.474"/>
|
||||
<Button x:Name="btn_search" Content="GO!" HorizontalAlignment="Left" Margin="327,139,0,0" VerticalAlignment="Top" Width="75" Background="#FFC4FF93"/>
|
||||
<Button x:Name="btn_close" Content="Close" HorizontalAlignment="Left" Margin="407,139,0,0" VerticalAlignment="Top" Width="75" Background="#FFFFA1A1" Click="btn_close_Click"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
32
DeskHubSharp/SearchWindow.xaml.cs
Normal file
32
DeskHubSharp/SearchWindow.xaml.cs
Normal file
@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace DeskHubSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for SearchWindow.xaml
|
||||
/// </summary>
|
||||
public partial class SearchWindow : Window
|
||||
{
|
||||
public SearchWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btn_close_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
4
DeskHubSharp/colors.txt
Normal file
4
DeskHubSharp/colors.txt
Normal file
@ -0,0 +1,4 @@
|
||||
#4285f4 Blue
|
||||
#ea4335 Red
|
||||
#FBBC05 Yellow
|
||||
#34a853 Green
|
Binary file not shown.
@ -1 +1 @@
|
||||
7391b52a0f6d0b847bdb2ddfe6bbf253a53b1571
|
||||
96be73db692ee81a8077a343a13bb0e84e99fc14
|
||||
|
Binary file not shown.
@ -10,11 +10,11 @@ none
|
||||
false
|
||||
DEBUG;TRACE
|
||||
C:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\App.xaml
|
||||
11151548125
|
||||
7-86569338
|
||||
|
||||
14-1462911538
|
||||
131569487696
|
||||
MainWindow.xaml;
|
||||
21133474928
|
||||
16-2010050379
|
||||
AboutWindow.xaml;DetailWindow.xaml;ErrorWindow.xaml;FeedbackWindow.xaml;HelpWindow.xaml;MainWindow.xaml;SearchWindow.xaml;
|
||||
|
||||
True
|
||||
False
|
||||
|
||||
|
@ -10,11 +10,11 @@ none
|
||||
false
|
||||
DEBUG;TRACE
|
||||
C:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\App.xaml
|
||||
11151548125
|
||||
7-86569338
|
||||
|
||||
14-1462911538
|
||||
131569487696
|
||||
MainWindow.xaml;
|
||||
25-65043429
|
||||
16-2010050379
|
||||
AboutWindow.xaml;DetailWindow.xaml;ErrorWindow.xaml;FeedbackWindow.xaml;HelpWindow.xaml;MainWindow.xaml;SearchWindow.xaml;
|
||||
|
||||
False
|
||||
True
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
|
||||
|
||||
FC:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\AboutWindow.xaml;;
|
||||
FC:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\DetailWindow.xaml;;
|
||||
FC:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\ErrorWindow.xaml;;
|
||||
FC:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\FeedbackWindow.xaml;;
|
||||
FC:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\HelpWindow.xaml;;
|
||||
FC:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\MainWindow.xaml;;
|
||||
FC:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\SearchWindow.xaml;;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "1AE5B7DD0CC2B9B65063F70EEDEB30A083D51076"
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "814C08D5FA0D40972C7641EDC7C65F0E68227ECE"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
@ -40,6 +40,54 @@ namespace DeskHubSharp {
|
||||
/// </summary>
|
||||
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 10 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Button btn_search;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 11 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Button btn_detail;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 12 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Button btn_feedback;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 13 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Button btn_help;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 14 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Button btn_about;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 16 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Button btn_exit;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
@ -68,6 +116,63 @@ namespace DeskHubSharp {
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 1:
|
||||
this.btn_search = ((System.Windows.Controls.Button)(target));
|
||||
|
||||
#line 10 "..\..\MainWindow.xaml"
|
||||
this.btn_search.Click += new System.Windows.RoutedEventHandler(this.btn_search_Click);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 2:
|
||||
this.btn_detail = ((System.Windows.Controls.Button)(target));
|
||||
|
||||
#line 11 "..\..\MainWindow.xaml"
|
||||
this.btn_detail.Click += new System.Windows.RoutedEventHandler(this.btn_detail_Click);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 3:
|
||||
this.btn_feedback = ((System.Windows.Controls.Button)(target));
|
||||
|
||||
#line 12 "..\..\MainWindow.xaml"
|
||||
this.btn_feedback.Click += new System.Windows.RoutedEventHandler(this.btn_feedback_Click);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 4:
|
||||
this.btn_help = ((System.Windows.Controls.Button)(target));
|
||||
|
||||
#line 13 "..\..\MainWindow.xaml"
|
||||
this.btn_help.Click += new System.Windows.RoutedEventHandler(this.btn_help_Click);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 5:
|
||||
this.btn_about = ((System.Windows.Controls.Button)(target));
|
||||
|
||||
#line 14 "..\..\MainWindow.xaml"
|
||||
this.btn_about.Click += new System.Windows.RoutedEventHandler(this.btn_about_Click);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 6:
|
||||
this.btn_exit = ((System.Windows.Controls.Button)(target));
|
||||
|
||||
#line 16 "..\..\MainWindow.xaml"
|
||||
this.btn_exit.Click += new System.Windows.RoutedEventHandler(this.btn_exit_Click);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "1AE5B7DD0CC2B9B65063F70EEDEB30A083D51076"
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "814C08D5FA0D40972C7641EDC7C65F0E68227ECE"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
@ -40,6 +40,54 @@ namespace DeskHubSharp {
|
||||
/// </summary>
|
||||
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 10 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Button btn_search;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 11 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Button btn_detail;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 12 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Button btn_feedback;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 13 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Button btn_help;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 14 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Button btn_about;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 16 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Button btn_exit;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
@ -68,6 +116,63 @@ namespace DeskHubSharp {
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 1:
|
||||
this.btn_search = ((System.Windows.Controls.Button)(target));
|
||||
|
||||
#line 10 "..\..\MainWindow.xaml"
|
||||
this.btn_search.Click += new System.Windows.RoutedEventHandler(this.btn_search_Click);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 2:
|
||||
this.btn_detail = ((System.Windows.Controls.Button)(target));
|
||||
|
||||
#line 11 "..\..\MainWindow.xaml"
|
||||
this.btn_detail.Click += new System.Windows.RoutedEventHandler(this.btn_detail_Click);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 3:
|
||||
this.btn_feedback = ((System.Windows.Controls.Button)(target));
|
||||
|
||||
#line 12 "..\..\MainWindow.xaml"
|
||||
this.btn_feedback.Click += new System.Windows.RoutedEventHandler(this.btn_feedback_Click);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 4:
|
||||
this.btn_help = ((System.Windows.Controls.Button)(target));
|
||||
|
||||
#line 13 "..\..\MainWindow.xaml"
|
||||
this.btn_help.Click += new System.Windows.RoutedEventHandler(this.btn_help_Click);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 5:
|
||||
this.btn_about = ((System.Windows.Controls.Button)(target));
|
||||
|
||||
#line 14 "..\..\MainWindow.xaml"
|
||||
this.btn_about.Click += new System.Windows.RoutedEventHandler(this.btn_about_Click);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
case 6:
|
||||
this.btn_exit = ((System.Windows.Controls.Button)(target));
|
||||
|
||||
#line 16 "..\..\MainWindow.xaml"
|
||||
this.btn_exit.Click += new System.Windows.RoutedEventHandler(this.btn_exit_Click);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
|
5
DeskHubSharp/packages.config
Normal file
5
DeskHubSharp/packages.config
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" />
|
||||
<package id="RestSharp" version="106.5.4" targetFramework="net461" />
|
||||
</packages>
|
Reference in New Issue
Block a user