예제 #1
0
        private void btnConnectOnline_Click(object sender, EventArgs e)
        {
            Settings.Default.Address = txtAddress.Text;
            Settings.Default.Save();

            DbContextFactory.ChangeIpAddress(Settings.Default.Address);

            this.RunWithWaitCursor(() =>
            {
                bdsShotFolder.DataSource = DataRepository.Shot.GetDateList().ConvertAll(x => new StringItem(x));
            });
        }
예제 #2
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (DesignMode || Program.IsRunTime == false)
            {
                return;
            }

            Opacity = Settings.Default.Opacity / 100.0;
            Text    = PlayFormText;

            DbContextFactory.ChangeIpAddress(Settings.Default.Address);
        }
예제 #3
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            Settings.Default.ShotInterval         = Convert.ToInt32(nupShotInterval.Value);
            Settings.Default.EmotionCheckInterval = Convert.ToInt32(nupEmoticonInterval.Value);
            Settings.Default.MaxPreviousShots     = Convert.ToInt32(nupMaxPreviousShot.Value);
            Settings.Default.LatestEmoticonMinute = Convert.ToInt32(nupLatestEmoticonMinute.Value);
            Settings.Default.Opacity = trbOpacity.Value;
            Settings.Default.Address = txtAddress.Text;
            Settings.Default.Save();

            DbContextFactory.ChangeIpAddress(Settings.Default.Address);

            DialogResult = DialogResult.OK;

            Close();
        }