public SelectWindow(MainWindow mainWindow, String direction) { InitializeComponent(); mMainWindow = mainWindow; mDirection = direction; // 설정하고자 하는 방향에 대한 정보를 확인함 if (mDirection.Equals("LeftTop")) { mClickedImg = mMainWindow.GetLeftTopIconImage(); mData = mMainWindow.LeftUp; } else if (mDirection.Equals("RightTop")) { mClickedImg = mMainWindow.GetRightTopIconImage(); mData = mMainWindow.RightUp; } else if (mDirection.Equals("LeftDown")) { mClickedImg = mMainWindow.GetLeftDownIconImage(); mData = mMainWindow.LeftDown; } else if (mDirection.Equals("RightDown")) { mClickedImg = mMainWindow.GetRightDownIconImage(); mData = mMainWindow.RightDown; } SetButtonImageSource(); }
private void InitializeDataMember() { LeftUp = new Data(false, "None"); RightUp = new Data(false, "None"); LeftDown = new Data(false, "None"); RightDown = new Data(false, "None"); }