Skip to content

Instantly share code, notes, and snippets.

View azyobuzin's full-sized avatar

Takuya Sakurai azyobuzin

View GitHub Profile
public IEnumerable SelectedItems
{
get
{
return this.selectedItems;
}
set
{
this.selectedItems = value;
this.RaisePropertyChanged("SelectedItems");//比較方法がわからないので無条件に発生
using System;
using System.Net;
using System.Security.Cryptography;
using System.Text;
using System.Xml.Linq;
namespace Azyobuzi.HatenaDiaryClient.Models.Hatena
{
public static class WsseAtomConnection
{
using System;
using System.IO;
using System.Reflection;
using System.Security.Cryptography;
using System.Text;
using System.Xml.Serialization;
using Livet;
namespace Azyobuzi.HatenaDiaryClient.Models
{
public static void NotifyModelPropertyChanged(ViewModel vm, INotifyPropertyChanged model)
{
ViewModelHelper.BindNotifyChanged(model, vm, (sender, e) =>
{
var t = vm.GetType();
if (t.GetMember(
e.PropertyName,
BindingFlags.Public |
BindingFlags.Instance |
BindingFlags.GetProperty
@azyobuzin
azyobuzin / LivetDelegateCommand.snippet
Created May 31, 2011 14:35
LivetのコードスニペットのVB版
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Livet DelegateCommand(パラメータ無)</Title>
<Author>ugaya40(Masanori Onoue)</Author>
<Description>DelegateCommand(パラメータ無)を作成します</Description>
<HelpUrl></HelpUrl>
<SnippetTypes />
<Keywords />
#Region "MyEventイベント"
Dim MyEventEventHandlers As New List(Of EventHandler(Of EventArgs))
Public Custom Event MyEvent As EventHandler(Of EventArgs)
AddHandler(value As EventHandler(Of EventArgs))
MyEventEventHandlers.Add(value)
End AddHandler
RemoveHandler(value As EventHandler(Of EventArgs))
MyEventEventHandlers.remove(value)
End RemoveHandler
RaiseEvent(sender As Object, e As EventArgs)
import clr
clr.AddReference("mscorlib")
clr.AddReference("System.Core")
from System import Uri, Guid
from System.Text import Encoding
from System.IO import *
from System.Diagnostics import Process, ProcessStartInfo
from System.Linq import Enumerable
clr.ImportExtensions(Enumerable)
@azyobuzin
azyobuzin / gist:1018577
Created June 10, 2011 10:04
Aero的に透明化するビヘイビア
class TransparentBackgroundBehavior : Behavior<Window>
{
protected override void OnAttached()
{
base.OnAttached();
this.AssociatedObject.Loaded += this.AssociatedObject_Loaded;
}
protected override void OnDetaching()
{
> Uxeen.exe!Uxeen.ViewModel.TabViewModel.SelectedItems.set(System.Collections.IEnumerable value) 行 421 C#
[ネイティブからマネージの移行]
PresentationFramework.dll!MS.Internal.Data.PropertyPathWorker.SetValue(object item, object value) + 0x106 バイト
PresentationFramework.dll!MS.Internal.Data.ClrBindingWorker.UpdateValue(object value) + 0xa3 バイト
PresentationFramework.dll!System.Windows.Data.BindingExpression.UpdateSource(object value) + 0x99 バイト
PresentationFramework.dll!System.Windows.Data.BindingExpressionBase.UpdateValue() + 0x66 バイト
PresentationFramework.dll!System.Windows.Data.BindingExpression.Activate(object item) + 0x238 バイト
PresentationFramework.dll!System.Windows.Data.BindingExpression.OnDataContextChanged(System.Windows.DependencyObject contextElement) + 0x67 バイト
PresentationFramework.dll!System.Windows.Data.BindingExpression.HandlePropertyInvalidation(System.Windows.DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs args) + 0xc7 バイト
PresentationFramework.dll!System.Windo
using System;
using System.Linq;
using LinqToTwitter;
namespace Azyobuzi.Azyotter.LinqToTwitter
{
public class Authorizer : OAuthAuthorizer, ITwitterAuthorizer
{
public void Authorize()
{