コード例 #1
0
ファイル: LifeViewer.cs プロジェクト: m-kosina/GEDKeeper
        public LifeViewer()
        {
            DoubleBuffered = true;

            fOptions       = new LifeOptions();
            fRules         = new LifeRules();
            fGrid          = new LifeGrid(LifeConsts.DefaultGridWidth, LifeConsts.DefaultGridHeight);
            fHistory       = new LifeHistory(LifeConsts.DefaultNumberOfHistoryLevels);
            fGridLineColor = LifeConsts.DefaultGridLineColor;
            fGridLineStyle = LifeConsts.DefaultGridLineStyle;
        }
コード例 #2
0
ファイル: OptionsForm.cs プロジェクト: m-kosina/GEDKeeper
        public OptionsForm(LifeOptions options, LifeRules rules)
        {
            InitializeComponent();

            fOptions = options;
            fRules   = rules;

            edtGridHeight.Minimum = LifeConsts.MinGridHeight;
            edtGridHeight.Maximum = LifeConsts.MaxGridHeight;

            edtGridWidth.Minimum = LifeConsts.MinGridWidth;
            edtGridWidth.Maximum = LifeConsts.MaxGridWidth;
        }