Designer.Editors/Designer.CollectionEditor/DialogScheduleEditor.cs
Decompiler Source FileDesigner.Editors.DialogScheduleEditorDecompiled Source
Interpretation
- Decompiled source file. Use method/event registrations and call-site extraction to connect back to DialogMethod, QBMEvent, and API layers.
Relations
- CallMethod: StartNow at line 206
Typed Edges
- No typed edges extracted for this source.
References
- No direct source references extracted.
Referenced By
- No direct source references extracted.
C# source-derived context
Generated by pattern extraction from the decompiled C# source and decompile index. This is factual source evidence, not inferred behavior.
references DB/Dialog objects
Summary: classes DialogScheduleEditor; methods OnDisposeOrPrepareForCaching, InitializeComponent, SaveEditorObject, ControllerDocumentSaving, ControllerDocumentChanged, ControllerDocumentSaved; references DialogDashboardDef, DialogSchedule; markers references DB/Dialog objects
Classes
DialogScheduleEditorMethods
DB/Dialog object references
OIM key/entity markers
None extracted.API/entity calls
None extracted.Registrations / handlers
None extracted.
Complete Source
1using System;2using System.ComponentModel;3using System.Drawing;4using System.Windows.Forms;5using Designer.Base;6using VI.Base;7using VI.Controls.Special;8using VI.DB;9using VI.FormBase;10using VI.MVC;11using VI.UI.Controls.Common;1213namespace Designer.CollectionEditor;1415[ToolboxItem(false)]16internal class DialogScheduleEditor : PropertyEditorControl17{18 private TranslatorComponent Translator;1920 private StockImageComponent stockImages;2122 private Container components;2324 private Button btnCheckQueryDefinition;2526 private Button btnCheckQUeryDefinition100;2728 private Button btnStartNow;2930 private DialogScheduleControl ctlDialogSchedule;3132 public DialogScheduleEditor(DocumentEditorControl docEditor)33 : base(docEditor, new Guid("FF46B170-5E84-4464-A145-0694879A6E21"))34 {35 //IL_0007: Unknown result type (might be due to invalid IL or missing references)36 InitializeComponent();37 _InitializeComponent();38 }3940 protected override void OnDisposeOrPrepareForCaching(bool dispose)41 {42 if (dispose)43 {44 Container obj = components;45 if (obj != null)46 {47 obj.Dispose();48 }49 }50 base.OnDisposeOrPrepareForCaching(dispose);51 }5253 private void InitializeComponent()54 {55 //IL_0017: Unknown result type (might be due to invalid IL or missing references)56 //IL_0021: Expected O, but got Unknown57 //IL_0022: Unknown result type (might be due to invalid IL or missing references)58 //IL_002c: Expected O, but got Unknown59 //IL_0038: Unknown result type (might be due to invalid IL or missing references)60 //IL_0042: Expected O, but got Unknown61 //IL_0085: Unknown result type (might be due to invalid IL or missing references)62 //IL_00ac: Unknown result type (might be due to invalid IL or missing references)63 //IL_00fd: Unknown result type (might be due to invalid IL or missing references)64 //IL_0124: Unknown result type (might be due to invalid IL or missing references)65 //IL_0172: Unknown result type (might be due to invalid IL or missing references)66 //IL_01a6: Unknown result type (might be due to invalid IL or missing references)67 //IL_01b7: Unknown result type (might be due to invalid IL or missing references)68 //IL_01d8: Unknown result type (might be due to invalid IL or missing references)69 //IL_01f2: Unknown result type (might be due to invalid IL or missing references)70 //IL_022b: Unknown result type (might be due to invalid IL or missing references)71 //IL_0235: Expected O, but got Unknown72 //IL_0245: Unknown result type (might be due to invalid IL or missing references)73 //IL_0269: Unknown result type (might be due to invalid IL or missing references)74 //IL_02ce: Unknown result type (might be due to invalid IL or missing references)75 //IL_02d8: Expected O, but got Unknown76 //IL_02ea: Unknown result type (might be due to invalid IL or missing references)77 //IL_02f5: Unknown result type (might be due to invalid IL or missing references)78 //IL_0326: Unknown result type (might be due to invalid IL or missing references)79 Translator = new TranslatorComponent();80 stockImages = new StockImageComponent();81 btnCheckQUeryDefinition100 = new Button();82 btnCheckQueryDefinition = new Button();83 ctlDialogSchedule = new DialogScheduleControl();84 btnStartNow = new Button();85 ((ISupportInitialize)Translator).BeginInit();86 ((Control)ctlDialogSchedule).SuspendLayout();87 ((Control)this).SuspendLayout();88 stockImages.DefaultImageProperty = null;89 Translator.SetTextProperty((IComponent)(object)stockImages, null);90 ((Control)btnCheckQUeryDefinition100).Location = new Point(3, 24);91 ((Control)btnCheckQUeryDefinition100).Name = "btnCheckQUeryDefinition100";92 ((Control)btnCheckQUeryDefinition100).Size = new Size(167, 23);93 ((Control)btnCheckQUeryDefinition100).TabIndex = 1;94 ((Control)btnCheckQUeryDefinition100).Text = "DialogDashBoardDefEditor_btnCheckQUeryDefinition";95 Translator.SetTextProperty((IComponent)(object)btnCheckQUeryDefinition100, "Text");96 ((ButtonBase)btnCheckQUeryDefinition100).UseVisualStyleBackColor = true;97 ((Control)btnCheckQueryDefinition).Location = new Point(3, 24);98 ((Control)btnCheckQueryDefinition).Name = "btnCheckQueryDefinition";99 ((Control)btnCheckQueryDefinition).Size = new Size(167, 23);100 ((Control)btnCheckQueryDefinition).TabIndex = 1;101 ((Control)btnCheckQueryDefinition).Text = "DialogDashBoardDefEditor_btnCheckQUeryDefinition";102 Translator.SetTextProperty((IComponent)(object)btnCheckQueryDefinition, "Text");103 ((ButtonBase)btnCheckQueryDefinition).UseVisualStyleBackColor = true;104 ((Control)ctlDialogSchedule).BackColor = Color.White;105 ((Control)ctlDialogSchedule).Controls.Add((Control)(object)btnStartNow);106 ((Control)ctlDialogSchedule).Dock = (DockStyle)5;107 ((Control)ctlDialogSchedule).Location = new Point(0, 0);108 ((Control)ctlDialogSchedule).Margin = new Padding(0);109 ((Control)ctlDialogSchedule).Name = "ctlDialogSchedule";110 ((Control)ctlDialogSchedule).Padding = new Padding(8);111 ((Control)ctlDialogSchedule).Size = new Size(566, 478);112 ((Control)ctlDialogSchedule).TabIndex = 65564;113 Translator.SetTextProperty((IComponent)(object)ctlDialogSchedule, null);114 ctlDialogSchedule.DataChanged += new EventHandler(ctlDialogSchedule_DataChanged);115 ((Control)btnStartNow).Location = new Point(482, 173);116 ((Control)btnStartNow).Name = "btnStartNow";117 ((Control)btnStartNow).Size = new Size(58, 45);118 ((Control)btnStartNow).TabIndex = 65568;119 ((Control)btnStartNow).Text = "DialogScheduleEditor_btnStartNow";120 ((ButtonBase)btnStartNow).TextImageRelation = (TextImageRelation)1;121 Translator.SetTextProperty((IComponent)(object)btnStartNow, "Text");122 ((ButtonBase)btnStartNow).UseVisualStyleBackColor = true;123 ((Control)btnStartNow).Click += new EventHandler(RunSchedule);124 ((ScrollableControl)this).AutoScroll = true;125 ((ScrollableControl)this).AutoScrollMinSize = new Size(566, 478);126 ((Control)this).BackColor = Color.White;127 ((Control)this).Controls.Add((Control)(object)ctlDialogSchedule);128 base.Name = "DialogScheduleEditor";129 ((Control)this).Size = new Size(566, 478);130 Translator.SetTextProperty((IComponent)(object)this, null);131 ((ISupportInitialize)Translator).EndInit();132 ((Control)ctlDialogSchedule).ResumeLayout(false);133 ((Control)this).ResumeLayout(false);134 }135136 protected override void SaveEditorObject(ISingleDbObject dbObject)137 {138 base.SaveEditorObject(dbObject);139 }140141 protected override void ControllerDocumentSaving(object sender, DocumentEventArgs e)142 {143 if (DBDocument != null)144 {145 ctlDialogSchedule.CommitChanges();146 }147 base.ControllerDocumentSaving(sender, e);148 }149150 protected override void ControllerDocumentChanged(object sender, DocumentControllerEventArgs e)151 {152 base.ControllerDocumentChanged(sender, e);153 if (DBDocument != null)154 {155 ctlDialogSchedule.Session = DBDocument.DBObject.Connection.Session;156 ctlDialogSchedule.Schedule = DBDocument.DBObject.GetEntity();157 ((Control)this).Text = DBDocument.Display;158 ((Control)ctlDialogSchedule).Visible = true;159 }160 else161 {162 ctlDialogSchedule.Session = null;163 ctlDialogSchedule.Schedule = null;164 ((Control)this).Text = EditorControl.LM["ComponentPropertyEditor_NoSelectedObject"];165 ((Control)ctlDialogSchedule).Visible = false;166 }167 }168169 protected override void ControllerDocumentSaved(object sender, DocumentEventArgs e)170 {171 base.ControllerDocumentSaved(sender, e);172 if (DBDocument != null)173 {174 ctlDialogSchedule.Session = DBDocument.DBObject.Connection.Session;175 ctlDialogSchedule.Schedule = DBDocument.DBObject.GetEntity();176 ((Control)this).Text = DBDocument.Display;177 ((Control)ctlDialogSchedule).Visible = true;178 }179 }180181 private void _InitializeComponent()182 {183 ((Control)btnStartNow).BringToFront();184 ((Control)this).Text = EditorControl.LM["ComponentPropertyEditor_NoSelectedObject"];185 ((Control)ctlDialogSchedule).Visible = false;186 }187188 public void RunSchedule(object sender, EventArgs e)189 {190 //IL_008e: Unknown result type (might be due to invalid IL or missing references)191 //IL_0094: Invalid comparison between Unknown and I4192 try193 {194 DbObjectKey dbObjectKey = new DbObjectKey(DBDocument.DBObject);195 if (!dbObjectKey.Exists(DataManager.Database.MasterConnection))196 {197 LanguageManager instance = LanguageManager.Instance;198 object display = DBDocument.DBObject.Display;199 throw new System.Exception(instance.FormatString("DialogScheduleControl_ObjectNotFound", new System.ReadOnlySpan<object>(ref display)));200 }201 ISingleDbObject singleDbObject = dbObjectKey.GetObject(DataManager.Database.MasterConnection);202 LanguageManager instance2 = LanguageManager.Instance;203 object display2 = DBDocument.DBObject.Display;204 if ((int)MessageBox.Show(instance2.FormatString("DialogScheduleControl_StartNow", new System.ReadOnlySpan<object>(ref display2)), Application.ProductName, (MessageBoxButtons)4, (MessageBoxIcon)32) == 6)205 {206 singleDbObject.Custom.CallMethod("StartNow");207 }208 }209 catch (System.Exception exception)210 {211 ExceptionMgr.Instance.HandleException(exception, null);212 }213 }214215 private void ctlDialogSchedule_DataChanged(object sender, EventArgs e)216 {217 try218 {219 if (DBDocument != null && !DBDocument.State.IsChanged)220 {221 DBDocument.SignalChange();222 }223 }224 catch (System.Exception exception)225 {226 ExceptionMgr.Instance.HandleException(exception, null);227 }228 }229}230