Exemplo n.º 1
0
        private void SetWallpaper(object sender, EventArgs e)
        {
            Program.Settings.InfoText = LayoutRichTextBox.Rtf;
            _renderForm = new RenderForm();
            _renderForm.Show();
            _renderForm.Location = new Point(0, 0);

            UseWaitCursor             = true;
            Program.Settings.InfoText = LayoutRichTextBox.Rtf;
            Program.SetWallpaper(_renderForm);
            UseWaitCursor = false;
        }
Exemplo n.º 2
0
        private void ShowPreview(object sender, EventArgs e)
        {
            Program.Settings.InfoText = LayoutRichTextBox.Rtf;

            if (Resolution.IsEmpty)
            {
                _renderForm = new RenderForm();
            }
            else
            {
                _renderForm = new RenderForm(Resolution);
            }
            _renderForm.Show();
            _renderForm.Location = new Point(0, 0);
        }
Exemplo n.º 3
0
        private void SetWallpaper(object sender, EventArgs e)
        {
            Program.Settings.InfoText = LayoutRichTextBox.Rtf;
            _renderForm = new RenderForm();
            _renderForm.Show();
            _renderForm.Location = new Point(0, 0);

            UseWaitCursor = true;
            Program.Settings.InfoText = LayoutRichTextBox.Rtf;
            Program.SetWallpaper(_renderForm);
            UseWaitCursor = false;
        }