1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://flaviusmatis.github.io/simplePagination.js/simplePagination.css" />
<script type="text/javascript" src="http://flaviusmatis.github.io/simplePagination.js/jquery.simplePagination.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function () {
var itemsOnPage = 3;
$('#paging').pagination({
items: $('#content > div').length,
itemsOnPage: itemsOnPage,
cssStyle: 'light-theme',
onPageClick: function (pageNumber, event) {
var pageN = pageNumber != 0 ? (pageNumber - 1) : pageNumber;
var from = (pageN * itemsOnPage) + 1;
var to = (pageNumber * itemsOnPage);
console.log('page :'+pageNumber+' from: ' + from + ' to :' + to);
$('#content > div').css({ 'display': 'none' });
for (var i = from; i <= to ; i++) {
console.log('loop :'+i);
$('#content > div:eq(' + (i-1) + ')').css({ 'display': 'block' });
}
},
onInit: function () {
$('#content > div').css({ 'display': 'none' });
for (var i = 0; i <itemsOnPage; ++i) {
$('#content > div:eq('+i+')').css({ 'display': 'block' });
}
}
});
});
</script>
<div id="content" style="width:210px">
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">1</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">2</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">3</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">4</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">5</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">6</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">7</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">8</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">9</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">10</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">11</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">12</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">13</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">14</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">15</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">16</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">17</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">18</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">19</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">20</div>
<div style="width:200px;height:20px;background-color:blueviolet;margin-bottom:5px">21</div>
</div>
<div id="paging" ></div>
1 | C:\VirtualBox> |
2 | C:\VirtualBox>VBoxManage clonehd [OldHDDFile.vdi] [NewHDDFile.vdi] --existing |
3 | C:\VirtualBox> |
public abstract void MyMethod();
interface I { void M(); } abstract class C: I { public abstract void M(); }
Example
In this example, the classMyDerivedC
is derived from an abstract classMyBaseC
. The abstract class contains an abstract method,MyMethod()
, and two abstract properties,GetX()
andGetY()
.
// abstract_keyword.cs // Abstract Classes using System; abstract class MyBaseC // Abstract class { protected int x = 100; protected int y = 150; public abstract void MyMethod(); // Abstract method public abstract int GetX // Abstract property { get; } public abstract int GetY // Abstract property { get; } } class MyDerivedC: MyBaseC { public override void MyMethod() { x++; y++; } public override int GetX // overriding property { get { return x+10; } } public override int GetY // overriding property { get { return y+10; } } public static void Main() { MyDerivedC mC = new MyDerivedC(); mC.MyMethod(); Console.WriteLine("x = {0}, y = {1}", mC.GetX, mC.GetY); }}
// C# abstract class WashingMachine { public WashingMachine() { // Code to initialize the class goes here. } abstract public void Wash(); abstract public void Rinse(int loadSize); abstract public long Spin(int speed); }
// C# class MyWashingMachine : WashingMachine { public MyWashingMachine() { // Initialization code goes here. } override public void Wash() { // Wash code goes here. } override public void Rinse(int loadSize) { // Rinse code goes here. } override public long Spin(int speed) { // Spin code goes here. } }
Ref:http://msdn.microsoft.com/en-us/library/sf985hc5(v=vs.71).aspx
Servermanagercmd.exe –I ADDS-Domain-Controller
net use x: \\vboxsvr\sharename
mount -t vboxsf [-o OPTIONS] sharename mountpoint