예제 #1
0
        private void UpdateWarning()
        {
            bool warning = this.edName.Text == string.Empty;

            OwnerForm.Notify(this, warning);
            this.lbName.ForeColor = Util.GetStatusColor(!warning);
        }
예제 #2
0
 protected virtual void ShowReminder()
 {
     if (OwnerForm != null)
     {
         OwnerForm.ShowReminder(null);
     }
 }
예제 #3
0
 /// <summary>
 /// 关闭方法
 /// </summary>
 public void CloseMethod()
 {
     if (OwnerForm != null)
     {
         OwnerForm.Close();
     }
 }
예제 #4
0
        /// <summary>
        /// Расширенная инициализация подключения к БД.
        /// </summary>
        public void InitDBConnectionEx()
        {
            if (Initializing != null)
            {
                Initializing(this, null);
            }

            if (IsLocalDataBaseType(DataBaseType) && !DataBase.Contains("\\"))
            {
                DataBase = Path.GetDirectoryName(Application.ExecutablePath) + "\\" + DataBase;
            }

            InitDBConnection();

            if (!OwnerFormInited)
            {
                if (OwnerForm != null)
                {
                    OwnerForm.Load           += OwnerForm_Load;
                    OwnerForm.VisibleChanged += OwnerForm_VisibleChanged;
                }
            }
            else
            {
                OwnerForm.Invoke(OwnerFormShowDelegate);
            }
        }
예제 #5
0
 /// <summary>
 /// 「Windowsログイン時に自動で起動」設定の変更
 /// </summary>
 /// <param name="checked"></param>
 public void ChangeStartUp(bool @checked)
 {
     OwnerForm.InvokeOnUIThread((f) =>
     {
         App.ChangeStartUp(f, @checked);
     });
 }
예제 #6
0
        private PhotoDragWindow CreateDragWindow()
        {
            PhotoDragWindow win = new PhotoDragWindow(this);

            OwnerForm.AddOwnedForm(win);
            return(win);
        }
예제 #7
0
 private void OwnerForm_VisibleChanged(object sender, EventArgs e)
 {
     if (Abort)
     {
         OwnerForm.Close();
     }
 }
예제 #8
0
 void UpdateCurrentContact()
 {
     ucContactInfo1.Init(CurrentContact, null);
     if(gridControl1.MainView == gridView1)
         gridView1.MakeRowVisible(gridView1.FocusedRowHandle);
     OwnerForm.EnableEditContact(CurrentContact != null);
 }
예제 #9
0
        // Constructor
        public ExitsForm(OwnerForm ownerForm)
        {
            this.ownerForm = ownerForm;
            //this.MdiParent = ownerForm;

            InitializeComponent();
        }
예제 #10
0
 internal virtual void ShowModule(bool firstShow)
 {
     if (OwnerForm == null)
     {
         return;
     }
     if (AutoMergeRibbon && ChildRibbon != null)
     {
         OwnerForm.Ribbon.MergeRibbon(ChildRibbon);
         RibbonPage page = OwnerForm.Ribbon.Pages.GetPageByText("VIEW");
         if (page != null)
         {
             OwnerForm.Ribbon.MergedPages.Remove(page);
             OwnerForm.Ribbon.MergedPages.Insert(OwnerForm.Ribbon.MergedPages.Count, page);
         }
         if (ChildRibbonStatusBar != null)
         {
             OwnerForm.RibbonStatusBar.MergeStatusBar(ChildRibbonStatusBar);
             OwnerForm.ShowInfo(false);
         }
     }
     OwnerForm.SaveAsMenuItem.Enabled         = SaveAsEnable;
     OwnerForm.SaveAttachmentMenuItem.Enabled = SaveAttachmentEnable;
     ShowReminder();
     ShowInfo();
     OwnerForm.ZoomManager.ZoomFactor = (int)(ZoomFactor * 100);
     SetZoomCaption();
     OwnerForm.EnableZoomControl(AllowZoomControl);
     OwnerForm.OnModuleShown(this);
 }
예제 #11
0
 public void ShowUpdateForm()
 {
     // 無視設定フォームを開く
     OwnerForm.InvokeOnUIThread((form) =>
     {
         ISAutoUpdater.ShowUpdateForm();
     });
 }
예제 #12
0
 public void OpenDipswForm()
 {
     OwnerForm.InvokeOnUIThread((owner) =>
     {
         var f = new DipswForm(App);
         f.ShowDialog(owner);
     });
 }
예제 #13
0
        public EventsForm(OwnerForm ownerForm)
        {
            this.ownerForm = ownerForm;
            //this.MdiParent = ownerForm;

            InitializeComponent();
            InitializeVariables();
        }
예제 #14
0
 // Constructor
 public NPCsForm(OwnerForm ownerForm)
 {
     this.ownerForm = ownerForm;
     //
     InitializeComponent();
     InitializeHelperForms();
     InitializeForms();
 }
예제 #15
0
 void OwnerForm_Resize(object sender, EventArgs e)
 {
     if (NotifyIconNeed)
         if (OwnerForm.WindowState == FormWindowState.Minimized)
         {
             OwnerForm.Hide();
         }
 }
예제 #16
0
 internal void ShowInfo(ColumnView view)
 {
     if (OwnerForm == null)
     {
         return;
     }
     OwnerForm.ShowInfo(view.DataRowCount);
 }
예제 #17
0
 public ChunksForm(OwnerForm ownerForm, Overlay overlay)
 {
     this.ownerForm = ownerForm;
     this.overlay   = overlay;
     InitializeComponent();
     InitializeVariables();
     SetChunkImage();
 }
예제 #18
0
        /// <summary>
        /// 显示弹出框
        /// </summary>
        public void ShowPopup()
        {
            if (IsPopupOpen)
            {
                return;
            }
            if (OwnerForm == null)
            {
                return;
            }
            if (dataManager == null)
            {
                return;
            }

            if (DataSource == null)
            {
                OnDataSourceRefresh(EventArgs.Empty);
            }

            gridControl.Size   = PopupSize;
            gridControl.Width  = gridControl.Width <= 0 ? this.Width : gridControl.Width;
            gridControl.Height = gridControl.Height <= 0 ? 200 : gridControl.Height;
            //bool isCreateGrid = false;
            //if (!OwnerForm.Controls.Contains(gridControl))
            //{
            //    OwnerForm.Controls.Add(gridControl);
            //    isCreateGrid = true;
            //}
            if (PopupPosition == Point.Empty)
            {
                //Point pointInfo = OwnerForm.PointToScreen(new Point(OwnerForm.Width, OwnerForm.Height));
                //if ((p.X + gridControl.Width) > pointInfo.X)
                //{
                //    p.X = PointToScreen(new Point(Width, Height - 1)).X;
                //}
                //if ((p.Y + gridControl.Height) > pointInfo.Y)
                //{
                //    p.Y = PointToScreen(new Point(Width, 0)).Y - gridControl.Height;
                //}
                Point p = PointToScreen(new Point(0, Height - 1));
                gridControl.Location = OwnerForm.PointToClient(p);
            }
            else
            {
                gridControl.Location = PopupPosition;
            }

            gridControl.Visible = true;
            gridControl.BringToFront();

            this.AddMouseDownEvent(OwnerForm);
            //if (!isCreateGrid)
            {
                SelectRow();
            }
            IsPopupOpen = true;
        }
예제 #19
0
        private void OwnerBtn_Click(object sender, EventArgs e)
        {
            OwnerForm of = new OwnerForm()
            {
                Text = this.OwnerBtn.Text
            };

            of.ShowDialog();
        }
예제 #20
0
 public void CrawlStart(string targetFoldersJSON = null)
 {
     string[] targetFolders = null;
     if (targetFoldersJSON != null)
     {
         targetFolders = JsonConvert.DeserializeObject <string[]>(targetFoldersJSON);
     }
     OwnerForm.InvokeOnUIThread((f) => { f.CrawlStart(targetFolders); });
 }
예제 #21
0
        public void ShowOwnerForm(Form LoginView)
        {
            OwnerController OwnerController = new OwnerController();
            OwnerForm       OwnerForm       = (OwnerForm)WindowFormsFactory.CreateOwnerView(this);

            OwnerForm.AdjustCreateView();
            OwnerController.ShowOwnerForm(OwnerForm);
            LoginView.Hide();
        }
예제 #22
0
 // Constructor
 public NPCEditor(OwnerForm ownerForm)
 {
     this.ownerForm = ownerForm;
     InitializeComponent();
     InitializeListControls();
     InitializeForms();
     LoadProperties();
     //
     this.History = new History(this, null, npcNum);
 }
예제 #23
0
            public string SelectDirectory()
            {
                string path = null;

                OwnerForm.InvokeOnUIThread((f) =>
                {
                    path = f.SelectDirectory();
                });
                return(path);
            }
예제 #24
0
파일: Tasks.cs 프로젝트: 15831944/MESDemo
 void UpdateCurrentTask()
 {
     if (CurrentTask != null)
     {
         OwnerForm.EnabledFlagButtons(true, CurrentTask.FlagStatus);
     }
     else
     {
         OwnerForm.EnabledFlagButtons(false, FlagStatus.Completed);
     }
 }
예제 #25
0
파일: Grid.cs 프로젝트: shine8319/DLS
 void UpdateCurrentTask()
 {
     if (CurrentTask != null)
     {
         OwnerForm.EnabledFlagButtons(true, AllowEdit, CurrentTask);
     }
     else
     {
         OwnerForm.EnabledFlagButtons(false, AllowEdit, null);
     }
 }
예제 #26
0
        void UpdateButtons()
        {
            bool isFeedExist = mainNavBar.SelectedLink != null;

            if (OwnerForm != null)
            {
                OwnerForm.EnableEditFeed(isFeedExist);
                OwnerForm.EnableLayoutButtons(isFeedExist);
            }
            layoutControl1.Root.Visibility = isFeedExist ? DevExpress.XtraLayout.Utils.LayoutVisibility.Always : DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
        }
예제 #27
0
 /// <summary>
 /// 常駐クロール設定の変更
 /// </summary>
 /// <param name="checked"></param>
 public void ChangeAlwaysCrawlMode(bool @checked)
 {
     OwnerForm.InvokeOnUIThread((f) =>
     {
         App.ChangeAlwaysCrawlMode(f, @checked);
         if (@checked)
         {
             Util.ShowInformationMessage(f, "常駐クロールを開始しました。\nウインドウを閉じた後も、クロール処理を継続します。\n\nInazuma Searchを完全に終了したい場合は\nタスクバー内通知エリアのアイコンを右クリックして\n「終了」を選択してください。");
         }
     });
 }
예제 #28
0
        private void UpdateWarning()
        {
            bool warning = this.lvWorkspaces.Items.Count == 0;

            if (!warning && this.lvWorkspaces.Items.Count == 1)
            {
                // first item is 'hint' item
                warning = this.lvWorkspaces.Items[0].Tag == null;
            }
            OwnerForm.Notify(this, warning);
            this.lbWarningMsg.Visible = warning;
        }
예제 #29
0
 // Constructor
 public SpritePartitionsForm(OwnerForm ownerForm, SpritePartitioning[] partitions, int index)
 {
     this.ownerForm  = ownerForm;
     this.partitions = partitions;
     this.Index      = index;
     //
     InitializeComponent();
     //
     LoadProperties();
     //
     this.History = new History(this);
 }
예제 #30
0
파일: Test2.cs 프로젝트: koson/DMI
        void RaiseReadMessagesChanged(int rowHandle)
        {
            Message current = gridView1.GetRow(rowHandle) as Message;

            if (current == null)
            {
                return;
            }
            current.ToggleRead();
            gridView1.LayoutChanged();
            OwnerForm.ReadMessagesChanged();
            MakeFocusedRowVisible();
        }