static void Main(string[] args) { Interesting i = new Interesting(); Curious c = new Curious(i); i.Wiggle(); }
private void button1_Click(object sender, EventArgs e) { var interesting = new Interesting(); interesting.Name = textBox1.Text; Program.interestings.AddInterest(interesting); ClearAll(); MessageBox.Show("Dodano element"); }
public void DeepUsage(ISymbol symbol) { if (symbol == null) { return; } TypeCompilationContext type; if (!Interesting.TryGetValue(symbol, out type)) { return; } Add(type, StrengthKind.DeepUsage); }
public FakeUserInfo(int id) { Id = id; JobNumber = RandomHelper.Next().ToString(); Name = FakeName.MakeFakeUserName(); EntryTime = RandomHelper.Bool() ? DateTime.Now.Subtract(TimeSpan.FromDays(RandomHelper.Next(2000))) : DateTime.Now.Subtract(TimeSpan.FromHours(RandomHelper.Next(1000))); Rank = (int)DateTime.Now.Subtract(EntryTime).TotalDays * 2 + RandomHelper.Next(1000); Sex = RandomHelper.Bool() ? "男" : "女"; LastLoginTime = DateTime.Now; NickName = FakeName.MakeFakeUserName(); GroupName = FakeName.MakeFakeGroupName(); for (int i = 0; i < RandomHelper.Next(2, 6); i++) { Interesting.Add(FakeName.MakeFakeTag()); } Signature = "yooooooooooo"; Image = FakeImage.MakeFakeImage(); }
public Curious(Interesting i) { i.Change += new ChangeHandler(React); }
public void AddInterest(Interesting interest) { interestings.Add(interest); }