private void UpdateWarning() { bool warning = this.edName.Text == string.Empty; OwnerForm.Notify(this, warning); this.lbName.ForeColor = Util.GetStatusColor(!warning); }
protected virtual void ShowReminder() { if (OwnerForm != null) { OwnerForm.ShowReminder(null); } }
/// <summary> /// 关闭方法 /// </summary> public void CloseMethod() { if (OwnerForm != null) { OwnerForm.Close(); } }
/// <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); } }
/// <summary> /// 「Windowsログイン時に自動で起動」設定の変更 /// </summary> /// <param name="checked"></param> public void ChangeStartUp(bool @checked) { OwnerForm.InvokeOnUIThread((f) => { App.ChangeStartUp(f, @checked); }); }
private PhotoDragWindow CreateDragWindow() { PhotoDragWindow win = new PhotoDragWindow(this); OwnerForm.AddOwnedForm(win); return(win); }
private void OwnerForm_VisibleChanged(object sender, EventArgs e) { if (Abort) { OwnerForm.Close(); } }
void UpdateCurrentContact() { ucContactInfo1.Init(CurrentContact, null); if(gridControl1.MainView == gridView1) gridView1.MakeRowVisible(gridView1.FocusedRowHandle); OwnerForm.EnableEditContact(CurrentContact != null); }
// Constructor public ExitsForm(OwnerForm ownerForm) { this.ownerForm = ownerForm; //this.MdiParent = ownerForm; InitializeComponent(); }
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); }
public void ShowUpdateForm() { // 無視設定フォームを開く OwnerForm.InvokeOnUIThread((form) => { ISAutoUpdater.ShowUpdateForm(); }); }
public void OpenDipswForm() { OwnerForm.InvokeOnUIThread((owner) => { var f = new DipswForm(App); f.ShowDialog(owner); }); }
public EventsForm(OwnerForm ownerForm) { this.ownerForm = ownerForm; //this.MdiParent = ownerForm; InitializeComponent(); InitializeVariables(); }
// Constructor public NPCsForm(OwnerForm ownerForm) { this.ownerForm = ownerForm; // InitializeComponent(); InitializeHelperForms(); InitializeForms(); }
void OwnerForm_Resize(object sender, EventArgs e) { if (NotifyIconNeed) if (OwnerForm.WindowState == FormWindowState.Minimized) { OwnerForm.Hide(); } }
internal void ShowInfo(ColumnView view) { if (OwnerForm == null) { return; } OwnerForm.ShowInfo(view.DataRowCount); }
public ChunksForm(OwnerForm ownerForm, Overlay overlay) { this.ownerForm = ownerForm; this.overlay = overlay; InitializeComponent(); InitializeVariables(); SetChunkImage(); }
/// <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; }
private void OwnerBtn_Click(object sender, EventArgs e) { OwnerForm of = new OwnerForm() { Text = this.OwnerBtn.Text }; of.ShowDialog(); }
public void CrawlStart(string targetFoldersJSON = null) { string[] targetFolders = null; if (targetFoldersJSON != null) { targetFolders = JsonConvert.DeserializeObject <string[]>(targetFoldersJSON); } OwnerForm.InvokeOnUIThread((f) => { f.CrawlStart(targetFolders); }); }
public void ShowOwnerForm(Form LoginView) { OwnerController OwnerController = new OwnerController(); OwnerForm OwnerForm = (OwnerForm)WindowFormsFactory.CreateOwnerView(this); OwnerForm.AdjustCreateView(); OwnerController.ShowOwnerForm(OwnerForm); LoginView.Hide(); }
// Constructor public NPCEditor(OwnerForm ownerForm) { this.ownerForm = ownerForm; InitializeComponent(); InitializeListControls(); InitializeForms(); LoadProperties(); // this.History = new History(this, null, npcNum); }
public string SelectDirectory() { string path = null; OwnerForm.InvokeOnUIThread((f) => { path = f.SelectDirectory(); }); return(path); }
void UpdateCurrentTask() { if (CurrentTask != null) { OwnerForm.EnabledFlagButtons(true, CurrentTask.FlagStatus); } else { OwnerForm.EnabledFlagButtons(false, FlagStatus.Completed); } }
void UpdateCurrentTask() { if (CurrentTask != null) { OwnerForm.EnabledFlagButtons(true, AllowEdit, CurrentTask); } else { OwnerForm.EnabledFlagButtons(false, AllowEdit, null); } }
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; }
/// <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「終了」を選択してください。"); } }); }
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; }
// 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); }
void RaiseReadMessagesChanged(int rowHandle) { Message current = gridView1.GetRow(rowHandle) as Message; if (current == null) { return; } current.ToggleRead(); gridView1.LayoutChanged(); OwnerForm.ReadMessagesChanged(); MakeFocusedRowVisible(); }