Beispiel #1
0
        private void AmazonSearchForm_Load(object sender, EventArgs e)
        {
            FillFrom();

            this._idFont = new System.Drawing.Font(this.Font.Name, this.Font.Size * 2, FontStyle.Bold);
            this._titleFont = new System.Drawing.Font(this.Font.Name, this.Font.Size * (float)1.2, FontStyle.Bold);

            {
                _floatingMessage = new FloatingMessageForm(this);
                _floatingMessage.Font = new System.Drawing.Font(this.Font.FontFamily, this.Font.Size * 2, FontStyle.Bold);
                _floatingMessage.Opacity = 0.7;
                _floatingMessage.AutoHide = false;
                _floatingMessage.Show(this);
                this._floatingMessage.OnResizeOrMove();

            }

            BeginThread();

            if (this.AutoSearch == true
    && string.IsNullOrEmpty(this.textBox_queryWord.Text) == false)
            {
                this.BeginInvoke(new Action<object, EventArgs>(button_search_Click), this, new EventArgs());
            }
        }
        public OracleDataSourceWizard()
        {
            InitializeComponent();

            {
                _floatingMessage = new FloatingMessageForm(this);
                _floatingMessage.AutoHide = false;
                _floatingMessage.Font = new System.Drawing.Font(this.Font.FontFamily, this.Font.Size * 2, FontStyle.Bold);
                _floatingMessage.Opacity = 0.7;
                _floatingMessage.RectColor = Color.Green;
                _floatingMessage.Show(this);
            }
        }
Beispiel #3
0
        public InstanceDialog()
        {
            InitializeComponent();

            {
                _floatingMessage = new FloatingMessageForm(this);
                _floatingMessage.Font = new System.Drawing.Font(this.Font.FontFamily, this.Font.Size * 2, FontStyle.Bold);
                _floatingMessage.Opacity = 0.7;
                _floatingMessage.RectColor = Color.Green;
                _floatingMessage.Show(this);

#if NO
                if (this._floatingMessage != null)
                    this._floatingMessage.OnResizeOrMove();
#endif
            }
        }
Beispiel #4
0
        public MainForm()
        {
            InitializeComponent();

            {
                _floatingMessage = new FloatingMessageForm(this);
                _floatingMessage.Font = new System.Drawing.Font(this.Font.FontFamily, this.Font.Size * 2, FontStyle.Bold);
                _floatingMessage.Opacity = 0.7;
                _floatingMessage.RectColor = Color.Green;
                _floatingMessage.Show(this);
            }
        }
Beispiel #5
0
 public void CloseFloatingMessage()
 {
     if (_floatingMessage != null)
     {
         _floatingMessage.Close();
         _floatingMessage.Dispose();
         _floatingMessage = null;
     }
 }
Beispiel #6
0
        /// <summary>
        /// 窗口 Load 时被触发
        /// </summary>
        public virtual void OnMyFormLoad()
        {
            if (this.MainForm == null)
                return;

            stop = new DigitalPlatform.Stop();
            stop.Register(MainForm.stopManager, true);	// 和容器关联

            {
                _floatingMessage = new FloatingMessageForm(this, true);
                // _floatingMessage.AutoHide = false;
                _floatingMessage.Font = new System.Drawing.Font(this.Font.FontFamily, this.Font.Size * 2, FontStyle.Bold);
                _floatingMessage.Opacity = 0.7;
                _floatingMessage.RectColor = Color.Green;
                _floatingMessage.Show(this);

                if (this.MainForm != null)
                    this.MainForm.Move -= new EventHandler(MainForm_Move);
            }
        }
Beispiel #7
0
        private void OneInstanceDialog_Load(object sender, EventArgs e)
        {
            if (this.CreateMode == false)
            {
                this.textBox_instanceName.ReadOnly = true;
                this.comboBox_site.Enabled = false;
            }

            FillSiteList();

            RefreshDp2LibraryInfo();

            // 设置缺省的虚拟目录名
            if (CreateMode == true && String.IsNullOrEmpty(this.textBox_instanceName.Text) == true)
            {
                SetDefaultVirtualDirValue();
            }

            // 设置缺省的数据目录路径
            if (CreateMode == true && String.IsNullOrEmpty(this.textBox_dataDir.Text) == true)
            {
                SetDefaultDataDirValue();
            }

            if (CreateMode == false)
            {
                if (String.IsNullOrEmpty(this.textBox_dataDir.Text) == false
                    && Directory.Exists(this.textBox_dataDir.Text) == true)
                    this.LoadedDataDir = this.textBox_dataDir.Text;
            }

            // API.PostMessage(this.Handle, WM_CHECK_DATADIR, 0, 0);
            {
                _floatingMessage = new FloatingMessageForm(this);
                _floatingMessage.Font = new System.Drawing.Font(this.Font.FontFamily, this.Font.Size * 2, FontStyle.Bold);
                _floatingMessage.Opacity = 0.7;
                _floatingMessage.Show(this);
            }

        }