Ejemplo n.º 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());
            }
        }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 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
            }
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 5
0
 public void CloseFloatingMessage()
 {
     if (_floatingMessage != null)
     {
         _floatingMessage.Close();
         _floatingMessage.Dispose();
         _floatingMessage = null;
     }
 }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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);
            }

        }