blob: d9ca952f836d734d6bf50dbc752b63509b759ee3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace grapher.Models.Options
{
public abstract class OptionBase : IOption
{
public abstract int Top { get; set; }
public abstract int Height { get; }
public abstract int Left { get; set; }
public abstract int Width { get; set; }
public int Beneath {
get
{
return Top + Height + Constants.OptionVerticalSeperation;
}
}
public abstract bool Visible { get; }
public abstract void Show(string Name);
public abstract void Hide();
public abstract void AlignActiveValues(int width);
public virtual void SnapTo(IOption option)
{
Top = option.Beneath;
}
}
}
|