/// <summary> /// コンストラクタ /// </summary> public KeyBind(ImageOperation imgope) { // TODO:仮のキーバインド dictionary.Add(KeyList.MouseLeftClick, ActionList.None); dictionary.Add(KeyList.MouseRightClick, ActionList.None); dictionary.Add(KeyList.MouseLeftDoubleClick, ActionList.NextFile); dictionary.Add(KeyList.MouseRightDoubleClick, ActionList.PrevFile); dictionary.Add(KeyList.MouseScrollUp, ActionList.Prev); dictionary.Add(KeyList.MouseScrollDown, ActionList.Next); next = new Next(imgope.Next); prev = new Prev(imgope.Prev); nextfile = new NextFile(imgope.NextFile); prevfile = new PrevFile(imgope.PrevFile); }
public MainWindow() { InitializeComponent(); imgope = new ImageOperation(image); bind = new KeyBind(imgope); }