Skip to content

Instantly share code, notes, and snippets.

Luis Beltran icebeam7

View GitHub Profile
@icebeam7
icebeam7 / recursos.txt
Last active Mar 9, 2019
Recursos #AzureDevOps #TourDotNetMX
View recursos.txt
Azure DevOps Hands-On Labs
https://www.azuredevopslabs.com/
Encuesta (sorteo por un Microsoft IoT Kit with Raspberry Pi 3 - fecha límite: antes del 10/Marzo)
https://www.surveymonkey.com/r/azuredevopscommunity
Encuesta 2 (favor de llenarla, please please :-) )
http://aka.ms/MVPEvent
Redes sociales: #AzureDevOps #TourDotNetMX #Celaya
@icebeam7
icebeam7 / App.xaml.cs
Created Feb 19, 2019
WeatherBotv4App - App.xaml.cs
View App.xaml.cs
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
[assembly: XamlCompilation(XamlCompilationOptions.Compile)]
namespace WeatherBotv4App
{
public partial class App : Application
{
public App()
{
@icebeam7
icebeam7 / BotView.xaml.cs
Created Feb 19, 2019
WeatherBotv4App - BotView.xaml.cs
View BotView.xaml.cs
using WeatherBotv4App.ViewModels;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace WeatherBotv4App.Views
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class BotView : ContentPage
{
@icebeam7
icebeam7 / BotView.xaml
Created Feb 19, 2019
WeatherBotv4App - BotView.xaml
View BotView.xaml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:converters="clr-namespace:WeatherBotv4App.Converters"
x:Class="WeatherBotv4App.Views.BotView">
<ContentPage.Resources>
<ResourceDictionary>
<converters:UserAlignmentConverter x:Key="userAlignmentConverter"/>
</ResourceDictionary>
@icebeam7
icebeam7 / ConversationViewModel.cs
Created Feb 19, 2019
WeatherBotv4App - ConversationViewModel.cs
View ConversationViewModel.cs
using System.Collections.ObjectModel;
using System.Threading.Tasks;
using System.Windows.Input;
using WeatherBotv4App.Helpers;
using WeatherBotv4App.Models;
using WeatherBotv4App.Services;
using Xamarin.Forms;
@icebeam7
icebeam7 / BaseViewModel.cs
Created Feb 19, 2019
WeatherBotv4App - BaseViewModel.cs
View BaseViewModel.cs
using System.ComponentModel;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace WeatherBotv4App.ViewModels
{
public class BaseViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
@icebeam7
icebeam7 / DirectLineService.cs
Created Feb 19, 2019
WeatherBotv4App - DirectLineService.cs
View DirectLineService.cs
using System.Collections.ObjectModel;
using System.Threading.Tasks;
using WeatherBotv4App.Models;
using WeatherBotv4App.Helpers;
using Microsoft.Bot.Connector.DirectLine;
namespace WeatherBotv4App.Services
{
@icebeam7
icebeam7 / UserAlignmentConverter.cs
Created Feb 19, 2019
WeatherBotv4App - UserAlignmentConverter.cs
View UserAlignmentConverter.cs
using System;
using System.Globalization;
using WeatherBotv4App.Helpers;
using Xamarin.Forms;
namespace WeatherBotv4App.Converters
{
public class UserAlignmentConverter : IValueConverter
@icebeam7
icebeam7 / Message.cs
Created Feb 19, 2019
WeatherBotv4App - Message.cs
View Message.cs
namespace WeatherBotv4App.Models
{
public class Message
{
public string Text { get; set; }
public string User { get; set; }
public Message(string text, string user)
{
Text = text;
@icebeam7
icebeam7 / Constants.cs
Created Feb 19, 2019
WeatherBotv4App - Constants.cs
View Constants.cs
namespace WeatherBotv4App.Helpers
{
public static class Constants
{
public readonly static string BotID = "WeatherBotv4";
public readonly static string DirectLineSecret = "tu-direct-line-secret";
public readonly static string BotUser = "LUIS";
}
}
You can’t perform that action at this time.