Пример #1
0
        public FormTooltip(DeckCounter dc, Card card)
        {
            InitializeComponent();
            this.dc   = dc;
            this.Card = card;

            if (dc.Options.GetAsInteger("WindowTooltipX") != 0)
            {
                this.StartPosition = FormStartPosition.Manual;
                this.Location      = new Point(dc.Options.GetAsInteger("WindowTooltipX"), dc.Options.GetAsInteger("WindowTooltipY"));
            }
        }
Пример #2
0
        public CardControl(DeckCounter dc, Card card)
        {
            InitializeComponent();

            this.DoubleBuffered = true;

            this.Width  = 250;
            this.Height = 25;
            this.Margin = new Padding(0, 0, 0, 1);

            this.dc   = dc;
            this.Card = card;
        }
Пример #3
0
        public FormMenu(DeckCounter dc)
        {
            InitializeComponent();
            this.dc = dc;

            // Load option values
            checkBoxCardShowImage.Checked   = dc.Options.GetAsBool("CardShowImage");
            checkBoxCardColorByType.Checked = dc.Options.GetAsBool("CardColorByType");
            checkBoxCardColoredName.Checked = dc.Options.GetAsBool("CardColoredName");
            checkBoxCardShowTD.Checked      = dc.Options.GetAsBool("CardShowTD");
            numericUpDown1.Value            = dc.Options.GetAsInteger("CardHeight");
            checkBoxCardAutoSort.Checked    = dc.Options.GetAsBool("CardAutoSort");
            checkBoxSwapMouse.Checked       = dc.Options.GetAsBool("SwapMouse");

            checkBoxOnTop.Checked          = dc.Options.GetAsBool("StayOnTop");
            comboBoxLanguage.Text          = dc.Options.GetAsString("Language");
            checkBoxConfirmOnReset.Checked = dc.Options.GetAsBool("ConfirmOnDeckReset");

            comboBoxSortFirst.Text  = dc.Options.GetAsString("SortFirst");
            comboBoxSortSecond.Text = dc.Options.GetAsString("SortSecond");
            comboBoxSortThird.Text  = dc.Options.GetAsString("SortThird");
        }
Пример #4
0
        public FormMain()
        {
            InitializeComponent();
            CheckForIllegalCrossThreadCalls = false;

            Form splash = new FormSplash();

            splash.Show();
            splash.Refresh();

            // Set up DeckCounter class
            dc = new DeckCounter(deck);
            // Set accessor values
            dc.LabelNumCards = labelNumCards;
            dc.LabelTopdeck  = labelTopdeck;
            dc.FormMain      = this;
            // Load last deck
            if (dc.Options.GetAsString("LastDeck") != "")
            {
                dc.LoadDeck(dc.Options.GetAsString("LastDeck"));
            }

            int w = Screen.PrimaryScreen.WorkingArea.Width;
            int h = Screen.PrimaryScreen.WorkingArea.Height;

            this.MaximumSize = new System.Drawing.Size(w, h);

            splash.Hide();
            splash.Dispose();

            if (dc.Options.GetAsInteger("WindowMainX") != 0)
            {
                this.StartPosition = FormStartPosition.Manual;
                this.Location      = new Point(dc.Options.GetAsInteger("WindowMainX"), dc.Options.GetAsInteger("WindowMainY"));
            }

            dc.SetStayOnTop(dc.Options.GetAsBool("StayOnTop"));
        }
Пример #5
0
 public MemoryReader(DeckCounter dc)
 {
     IsStarted = false;
     this.dc   = dc;
     timer     = null;
 }