private Cell GetAGap(IGap sourcecell, int x, int y)
        {
            CommonLabel cl = new CommonLabel(sourcecell as Cell);

            cl.Border.NoneBorder();
            cl.Height = sourcecell.GapHeight;
            cl.X      = x;
            cl.SetY(y);
            cl.Width = 2;
            cl.Tag   = "NoMore";
            //cl.BackColor = Color.Red;
            return(cl);
        }
        public IGap Create(
            decimal value)
        {
            IGap result = null;

            try
            {
                result = new Gap(
                    value);
            }
            catch (Exception exception)
            {
                this.Log.Error("Exception message: " + exception.Message + " and stacktrace " + exception.StackTrace);
            }

            return(result);
        }
Exemple #3
0
        public IGap Create(
            decimal value)
        {
            IGap result = null;

            try
            {
                result = new Gap(
                    value);
            }
            catch (Exception exception)
            {
                this.Log.Error(
                    exception.Message,
                    exception);
            }

            return(result);
        }
 private Cell GetAGap(IGap sourcecell)
 {
     return(GetAGap(sourcecell, (sourcecell as Cell).X, (sourcecell as Cell).Y + (sourcecell as Cell).Height - 1));
 }