Exemple #1
0
        public StraightForm(StraightAction action)
        {
            InitializeComponent();
            this.helpTopic = Straight.HelpTopic;

            if (System.Environment.OSVersion.Platform == PlatformID.Unix)
            {
                this.Font = new System.Drawing.Font("Sans", 8.25F, System.Drawing.FontStyle.Regular);
            }

            //The action is saved in order to save the changes
            this.action = action;
        }
Exemple #2
0
 public StraightMoveGraphic(string key, StraightAction element, Point center)
     : base(key, element, center)
 {
     this.needInit = System.Convert.ToBoolean(Straight.NeedInit);
     this.Surface.Blit(new Surface(Straight.GraphicIcon));
 }
Exemple #3
0
 public StraightPanel(StraightAction action)
 {
     InitializeComponent();
     this.action = action;
 }