Exemple #1
0
        private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var c = new ColumnEditer(Accounts);

            c.ShowDialog();
            if (c.ResultColumn != null)
            {
                var r = c.ResultColumn;

                r.MdiParent = this;
                r.Show();
                r.Size = new Size(240, this.Size.Height - 160);
                if (Columns.Count > 0)
                {
                    r.Text = (int.Parse(Columns[Columns.Count - 1].Text[0].ToString()) + 1) + ": " + r.Text;
                }
                else
                {
                    r.Text = 0 + ": " + r.Text;
                }
                Columns.Add(r);
            }
        }
Exemple #2
0
		private void addToolStripMenuItem_Click(object sender, EventArgs e)
		{
			var c = new ColumnEditer(Accounts);
			c.ShowDialog();
			if (c.ResultColumn != null)
			{
				var r = c.ResultColumn;
				
				r.MdiParent = this;
				r.Show();
				r.Size = new Size(240, this.Size.Height - 160);
				if (Columns.Count > 0)
				{
					r.Text = (int.Parse(Columns[Columns.Count - 1].Text[0].ToString()) + 1) + ": " + r.Text;
				}
				else
				{
					r.Text = 0 + ": " + r.Text;
				}
				Columns.Add(r);
			}
		}