public GuiForm(CString cs) { InitializeComponent(); this.time = new CString(); this.cs = cs; this.BackgroundImage = new Bitmap(this.Width, this.Height); g = Graphics.FromImage(this.BackgroundImage); this.con = new DrawContextGraphics(new float[] { 0, this.Width }, new float[] { 0, this.Height }, 0, 0, g, Pens.Black); drawAgain(); }
private void textBox1_TextChanged(object sender, EventArgs e) { g.Clear(Color.White); CString cs = new CString(textBox1.Text); cs.OnImage(g, 10, 10, 1000, Pens.Black); StringBuilder sb = new StringBuilder(); cs.ExplainToStringbuilder(sb); this.textBox2.Text = sb.ToString(); pictureBox1.Refresh(); }
/// <summary> /// Kopiert alle Member von a /// </summary> /// <param name="a"></param> public void Einverleiben(CString a) { List<IDrawable>.Enumerator wortEN = a.list.GetEnumerator(); while (wortEN.MoveNext()) { this.list.Add(wortEN.Current.Clone()); } }
public IDrawable Clone() { CString cs = new CString(); cs.Einverleiben(this); return cs; }
public void addCString(CString cs) { this.list.Add(cs); }
public static CString operator +(string b, CString a) { CString c = new CString(); c.addWort(b); c.Einverknupfen(a); return c; }
public static CString operator +(CString a, CString b) { CString c = new CString(); c.Einverknupfen(a); c.Einverknupfen(b); return c; }
public static CString operator *(CString a, CString b) { CString c = new CString(); c.Einverknupfen(a); if (!c.endetMitAbsatz()) { c.addAbsatz(); } c.Einverknupfen(b); return c; }
public static GuiForm start(CString cs) { GuiForm f = new GuiForm(cs); f.ShowDialog(); return f; }