This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static List<DateTime> FirstLastDayInWeek(int Year, int month, int WeekNumber) | |
{ | |
WeekNumber -= 1; | |
DateTime start = new DateTime(Year, month, 1).AddDays(7 * WeekNumber); | |
start = start.AddDays(-((int)start.DayOfWeek)); | |
return Enumerable.Range(0, 7).Select(num => start.AddDays(num)).ToList() | |
.Where(w => w.Year == Year && w.Month == month).ToList(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, body{ | |
width:100%; | |
height:100%; | |
padding:0px; | |
margin:0px; | |
} | |
.container{ | |
width:100%; | |
height:100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.scrolled-div{ | |
width: 900px; | |
height: 96%; | |
margin: auto; | |
overflow: auto; | |
} | |
.scrolled-div::-webkit-scrollbar { | |
width: 12px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
editText.setOnEditorActionListener(new TextView.OnEditorActionListener() { | |
@Override | |
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { | |
if (actionId == EditorInfo.IME_ACTION_SEARCH) { | |
performSearch(); | |
return true; | |
} | |
return false; | |
} | |
}); |