コード例 #1
0
 public DateTimeSymbolDrawable(DateTimeSymbol sym)
     : base(sym)
 {
 }
コード例 #2
0
ファイル: DataTimePattern.cs プロジェクト: panost/ecl.Unicode
 public DataTimePattern(string name, byte index)
 {
     Text   = name;
     Length = index;
     Symbol = DateTimeSymbol.Argument;
 }
コード例 #3
0
ファイル: DataTimePattern.cs プロジェクト: panost/ecl.Unicode
 public SymbolInfo(DateTimeSymbol dataTimeSymbol, byte p)
 {
     Symbol = dataTimeSymbol;
     Times  = p;
 }
コード例 #4
0
ファイル: DataTimePattern.cs プロジェクト: panost/ecl.Unicode
 public DataTimePattern(DateTimeSymbol symbol, byte length)
 {
     Symbol = symbol;
     Length = length;
 }
コード例 #5
0
 /// <summary>
 /// The "on click" event handler
 /// </summary>
 /// <param name="sender">The sender</param>
 /// <param name="e">The event arguments</param>
 private void onMouseClicked(object sender, MouseEventArgs e)
 {
     translate(e);
     if (movedSymbol == null)
     {
         movedSymbol = newSymbol;
         if (movedSymbol != null)
         {
             if (movedSymbol is DateTimeSymbol)
             {
                 DateTimeSymbol dts = movedSymbol as DateTimeSymbol;
                 dts.DateTime = dateTime.DateTime;
             }
             IDrawableSymbol ds = movedSymbol as IDrawableSymbol;
             wImage         = ds.PureDrawable.SymbolImage.Width;
             hImage         = ds.PureDrawable.SymbolImage.Height;
             control.Cursor = CURSOR_MOVE;
             oldX           = imagePoint.X;
             oldY           = imagePoint.Y;
             DrawCursor();
             if (newCursor != null)
             {
                 DrawCursor(newCursor, true, true);
             }
         }
         if (newRemoveCursor != null)
         {
             MathSymbol s = (MathSymbol)newRemoveCursor;
             if (s.Contains(newCursor))
             {
                 newCursor = null;
                 oldCursor = null;
             }
             s.Remove();
             newRemoveCursor = null;
             oldRemoveCursor = null;
             DrawFormulaOnComponent();
         }
     }
     else
     {
         if (newCursor == null)
         {
             movedSymbol = null;
             DrawCursor();
             newCursor      = null;
             oldCursor      = null;
             control.Cursor = CURSOR_EDIT;
         }
         else
         {
             if (newCursor is MathSymbol)
             {
                 MathSymbol ds = newCursor as MathSymbol;
                 newCursor = MathSymbolDrawable.InsertObject(ds, movedSymbol) as IInsertedObject;
             }
             else if (newCursor is MathFormulaDrawable)
             {
                 MathFormulaDrawable mf = newCursor as MathFormulaDrawable;
                 newCursor = mf.InsertObject(movedSymbol) as IInsertedObject;
             }
             //newCursor = newCursor.InsertObject(movedSymbol);
             movedSymbol = null;
             DrawCursor();
             DrawFormulaOnComponent();
             oldCursor      = movedSymbol as IInsertedObject;
             control.Cursor = CURSOR_EDIT;
         }
     }
 }