123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- using System.Drawing;
- using Janus.Windows.Ribbon;
- using Janus.Windows.EditControls;
- namespace IControls_FireManager
- {
-
-
-
-
-
- public enum Popup_Type
- {
- Confirm, Dialog, Progress, ConfirmNoBtn
- }
-
- public enum Popup_Style
- {
- Normal, Return, Alarm
- }
- public static class _Popup
- {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- public static DialogResult MessageBoxPopup_Dialog(MessageBoxButtons Type, string Message, string ButtonText)
- {
- return MessageBox.Show(Message, ButtonText, Type);
- }
- public static void MessageBoxPopup(MessageBoxButtons Type, string Message, string ButtonText)
- {
- MessageBox.Show(Message, ButtonText, Type);
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- public static bool ProcessPopup_Enable = false;
-
- public static int ProcessPopup_Processbar_AllCnt = 0;
-
- public static int ProcessPopup_Processbar_Cnt = 0;
- public static UIProgressBar ProcessPopup_progressbar = null;
-
- public static Form Create(
- Popup_Type Type, Popup_Style Style,
- string FormText, int FormWidth, int FormHeight,
- string ContentsText,
- int ProgressbarAllcount)
- {
-
- if (Type == Popup_Type.Progress && (ProcessPopup_Enable == true || ProgressbarAllcount <= 0))
- {
- ProcessPopup_Enable = false;
- ProcessPopup_Processbar_AllCnt = 0;
- ProcessPopup_Processbar_Cnt = 0;
-
- }
-
- Form Popup = new Form();
-
- Office2007ColorScheme HeaderScheme = Office2007ColorScheme.Default;
- Color HeaderColor = new Color();
-
- Janus.Windows.UI.Dock.PanelVisualStyle GroupBoxPanelStyle = Janus.Windows.UI.Dock.PanelVisualStyle.Office2007;
- Janus.Windows.UI.Office2007ColorScheme ButtonScheme = Janus.Windows.UI.Office2007ColorScheme.Default;
- switch (Style)
- {
- case Popup_Style.Normal:
- if (_Data.Style_VisualStyle == Janus.Windows.UI.VisualStyle.Office2007)
- {
- HeaderScheme = Office2007ColorScheme.Custom;
- HeaderColor = System.Drawing.SystemColors.GradientInactiveCaption;
-
- GroupBoxPanelStyle = Janus.Windows.UI.Dock.PanelVisualStyle.Office2007;
- ButtonScheme = Janus.Windows.UI.Office2007ColorScheme.Blue;
- }
- else if (_Data.Style_VisualStyle == Janus.Windows.UI.VisualStyle.Office2003)
- {
- HeaderScheme = Office2007ColorScheme.Custom;
- HeaderColor = System.Drawing.SystemColors.GradientInactiveCaption;
-
- GroupBoxPanelStyle = Janus.Windows.UI.Dock.PanelVisualStyle.Office2003;
- ButtonScheme = Janus.Windows.UI.Office2007ColorScheme.Blue;
- }
- else if (_Data.Style_VisualStyle == Janus.Windows.UI.VisualStyle.Standard)
- {
- HeaderScheme = Office2007ColorScheme.Custom;
- HeaderColor = System.Drawing.Color.DarkGray;
-
- GroupBoxPanelStyle = Janus.Windows.UI.Dock.PanelVisualStyle.Standard;
- ButtonScheme = Janus.Windows.UI.Office2007ColorScheme.Default;
- }
- else if (_Data.Style_VisualStyle == Janus.Windows.UI.VisualStyle.VS2005)
- {
- HeaderScheme = Office2007ColorScheme.Custom;
- HeaderColor = System.Drawing.Color.LightGray;
-
- GroupBoxPanelStyle = Janus.Windows.UI.Dock.PanelVisualStyle.VS2005;
- ButtonScheme = Janus.Windows.UI.Office2007ColorScheme.Default;
- }
- else
- {
- HeaderScheme = Office2007ColorScheme.Custom;
- HeaderColor = System.Drawing.SystemColors.GradientInactiveCaption;
-
- GroupBoxPanelStyle = Janus.Windows.UI.Dock.PanelVisualStyle.Office2007;
- ButtonScheme = Janus.Windows.UI.Office2007ColorScheme.Default;
- }
- break;
- case Popup_Style.Alarm:
- HeaderScheme = Office2007ColorScheme.Custom;
- HeaderColor = Color.Red;
-
- GroupBoxPanelStyle = Janus.Windows.UI.Dock.PanelVisualStyle.Office2007;
- ButtonScheme = Janus.Windows.UI.Office2007ColorScheme.Custom;
- break;
- case Popup_Style.Return:
- HeaderScheme = Office2007ColorScheme.Custom;
- HeaderColor = Color.Gold;
-
- GroupBoxPanelStyle = Janus.Windows.UI.Dock.PanelVisualStyle.Office2007;
- ButtonScheme = Janus.Windows.UI.Office2007ColorScheme.Custom;
- break;
- }
-
- Popup.StartPosition = FormStartPosition.CenterScreen;
-
- Popup.Text = FormText;
-
- Popup.Size = new Size(FormWidth + ContentsText.Length, FormHeight);
-
- Popup.TopMost = true;
-
- Popup.BackColor = System.Drawing.SystemColors.Control;
-
- Popup.ControlBox = false;
-
- Popup.FormBorderStyle = FormBorderStyle.FixedSingle;
-
- Popup.KeyPreview = true;
- Popup.KeyDown += new KeyEventHandler(Popup_KeyDown);
-
- OfficeFormAdorner FormAdorner = new OfficeFormAdorner();
- FormAdorner.Form = Popup;
- FormAdorner.Office2007ColorScheme = HeaderScheme;
- FormAdorner.Office2007CustomColor = HeaderColor;
-
- UIGroupBox uiGroupBox = new UIGroupBox();
- uiGroupBox.BackgroundStyle = Janus.Windows.EditControls.BackgroundStyle.Panel;
- uiGroupBox.BorderColor = System.Drawing.Color.Transparent;
- uiGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
-
- uiGroupBox.Name = "uiGroupBox";
-
- uiGroupBox.TabIndex = 0;
- uiGroupBox.VisualStyle = GroupBoxPanelStyle;
-
- Label label = new Label();
-
- label.Text = ContentsText;
-
- label.BackColor = System.Drawing.Color.Transparent;
-
- label.AutoSize = true;
-
-
- uiGroupBox.Controls.Add(label);
-
- Popup.Tag = label;
-
- UIButton button_OK = new UIButton();
-
- button_OK.Name = "button_OK";
-
- if (Type == Popup_Type.Dialog)
- button_OK.Text = _Text.Yes;
- else
- button_OK.Text = _Text.OK;
-
- button_OK.Tag = Popup;
-
- button_OK.VisualStyle = _Data.Style_VisualStyle;
-
- button_OK.Office2007ColorScheme = ButtonScheme;
- button_OK.Office2007CustomColor = HeaderColor;
-
- if (Type == Popup_Type.Progress)
- button_OK.Click += new EventHandler(Progress_OK_Click);
- else
- button_OK.Click += new EventHandler(Button_OK_Click);
-
- if (Type == Popup_Type.ConfirmNoBtn)
- button_OK.Visible = false;
-
-
- uiGroupBox.Controls.Add(button_OK);
-
- UIButton button_Cancle = new UIButton();
- if (Type == Popup_Type.Dialog)
- {
-
- button_Cancle.Name = "button_Cancle";
-
- button_Cancle.Text = _Text.No;
-
- button_Cancle.Tag = Popup;
-
- button_Cancle.VisualStyle = _Data.Style_VisualStyle;
-
- button_Cancle.Office2007ColorScheme = ButtonScheme;
- button_Cancle.Office2007CustomColor = HeaderColor;
-
- button_Cancle.Click += new EventHandler(Button_Cancle_Click);
-
-
- uiGroupBox.Controls.Add(button_Cancle);
- }
-
- if (Type == Popup_Type.Progress)
- {
-
- ProcessPopup_progressbar = new UIProgressBar();
-
- button_OK.Enabled = false;
-
- ProcessPopup_Processbar_AllCnt = ProgressbarAllcount;
-
- ProcessPopup_Processbar_Cnt = 0;
-
- ProcessPopup_Enable = true;
-
- ProcessPopup_progressbar.Value = 0;
-
- ProcessPopup_progressbar.Tag = Popup;
-
- ProcessPopup_progressbar.VisualStyle = _Data.Style_VisualStyle;
-
- ProcessPopup_progressbar.Office2007ColorScheme = ButtonScheme;
- ProcessPopup_progressbar.Office2007CustomColor = HeaderColor;
-
- ProcessPopup_progressbar.Width = Popup.Width / 3 * 2;
- ProcessPopup_progressbar.Height = 30;
-
- _Event.ProgressPopupCount_SendMessage_Event += new _Event.ProgressPopupCount_SendMessage_Handler(_Event_ProgressPopupCount_SendMessage_Event);
-
-
- uiGroupBox.Controls.Add(ProcessPopup_progressbar);
- }
-
- Popup.StartPosition = FormStartPosition.CenterScreen;
- Popup.Controls.Add(uiGroupBox);
- Popup.Show();
-
- switch (Type)
- {
- case Popup_Type.Confirm:
- case Popup_Type.ConfirmNoBtn:
-
- label.Location = new System.Drawing.Point((Popup.Width - label.Width) / 2, (Popup.Height - label.Height) / 4 * 1);
-
- button_OK.Location = new System.Drawing.Point((Popup.Width - button_OK.Width) / 2 * 1, (Popup.Height - button_OK.Height) / 8 * 5);
- break;
- case Popup_Type.Dialog:
-
- label.Location = new System.Drawing.Point((Popup.Width - label.Width) / 2, (Popup.Height - label.Height) / 4 * 1);
-
- button_OK.Location = new System.Drawing.Point((Popup.Width / 2) - 80, (Popup.Height - button_OK.Height) / 9 * 5);
-
- button_Cancle.Location = new System.Drawing.Point((Popup.Width / 2) + 5 / 11 * 8, (Popup.Height - button_OK.Height) / 9 * 5);
- break;
- case Popup_Type.Progress:
-
- label.Location = new System.Drawing.Point((Popup.Width - label.Width) / 2, (Popup.Height - label.Height) / 5 * 1);
-
- ProcessPopup_progressbar.Location = new System.Drawing.Point((Popup.Width - ProcessPopup_progressbar.Width) / 2 * 1, (Popup.Height - ProcessPopup_progressbar.Height) / 9 * 4);
-
- button_OK.Location = new System.Drawing.Point((Popup.Width - button_OK.Width) / 2 * 1, (Popup.Height - button_OK.Height) / 7 * 5);
- break;
- }
-
- label.Focus();
-
- Popup.Update();
-
- return Popup;
- }
-
- public static void Button_OK_Click(object sender, EventArgs e)
- {
-
- UIButton senderForm = (UIButton)sender;
-
- Form poupup = (Form)senderForm.Tag;
-
- poupup.Hide();
-
- _Event.PopupClose_SendMessage(poupup, _Text.OK);
-
- poupup.Close();
- }
-
- public static void Button_Cancle_Click(object sender, EventArgs e)
- {
-
- UIButton senderForm = (UIButton)sender;
-
- Form poupup = (Form)senderForm.Tag;
-
- poupup.Hide();
-
- _Event.PopupClose_SendMessage(poupup, _Text.Cancle);
-
- poupup.Close();
- }
-
- public static void Progress_OK_Click(object sender, EventArgs e)
- {
-
- UIButton senderForm = (UIButton)sender;
-
- Form poupup = (Form)senderForm.Tag;
-
- poupup.Hide();
-
- _Event.PopupClose_SendMessage(poupup, _Text.OK);
-
- ProcessPopup_Processbar_Cnt = 0;
-
- ProcessPopup_Processbar_AllCnt = 0;
-
- ProcessPopup_Enable = false;
-
- _Event.ProgressPopupCount_SendMessage_Event -= new _Event.ProgressPopupCount_SendMessage_Handler(_Event_ProgressPopupCount_SendMessage_Event);
-
- poupup.Close();
- }
-
- public static void Popup_KeyDown(object sender, KeyEventArgs e)
- {
- switch (e.KeyCode)
- {
- case Keys.O:
- {
-
- Form poupup = (Form)sender;
-
- poupup.Hide();
-
- _Event.PopupClose_SendMessage(poupup, _Text.OK);
-
- poupup.Close();
- }
- break;
- case Keys.P:
- {
-
- Form poupup = (Form)sender;
-
- poupup.Hide();
-
- _Event.PopupClose_SendMessage(poupup, _Text.Cancle);
-
- poupup.Close();
- }
- break;
- }
- }
-
- delegate void Popup_SetCallback(object sender, object etc);
-
- public static void _Event_ProgressPopupCount_SendMessage_Event(object sender, object etc)
- {
-
- Form popup = (Form)sender;
- if (popup == null) return;
- if (popup.InvokeRequired)
- {
- Popup_SetCallback d = new Popup_SetCallback(_Event_ProgressPopupCount_SendMessage_Event);
- popup.Invoke(d, new object[] { sender, etc });
- }
- else
- {
- popup.TopMost = true;
- popup.Focus();
-
- ProcessPopup_Processbar_Cnt = (int)etc;
-
- if (ProcessPopup_Processbar_Cnt <= ProcessPopup_Processbar_AllCnt)
- {
-
- ProcessPopup_progressbar.Value = (int)((ProcessPopup_Processbar_Cnt * 100) / ProcessPopup_Processbar_AllCnt);
-
- if (ProcessPopup_progressbar.Value >= 100)
- {
-
- Control[] Btn = popup.Controls.Find("button_OK", true);
- ((UIButton)Btn[0]).Enabled = true;
-
- Label label = (Label)(popup.Tag);
-
- label.Text = _Data.Result_Text;
-
- label.Location = new System.Drawing.Point((popup.Width - label.Width) / 2, (popup.Height - label.Height) / 5 * 1);
- }
- }
- }
- }
- }
-
-
-
- public static class _PopupDialog
- {
-
- public static string DialogPopupText = null;
-
- public static Form Create(
- Popup_Type Type, Popup_Style Style,
- string FormText, int FormWidth, int FormHeight,
- string ContentsText,
- _Event.PopupClose_SendMessage_Handler PopupClose_Func
- )
- {
-
- Form Popup = new Form();
-
-
- if (Type == Popup_Type.Dialog)
- {
- if (DialogPopupText == ContentsText)
- return Popup;
- else
- DialogPopupText = ContentsText;
- }
- else
- return Popup;
- if (PopupClose_Func != null)
- {
-
- Popup.Tag = PopupClose_Func;
-
- Popup.FormClosing += new FormClosingEventHandler(CreateForm_FormClosing);
-
- _Event.PopupClose_SendMessage_Event += new _Event.PopupClose_SendMessage_Handler(PopupClose_Func);
- }
-
- Office2007ColorScheme HeaderScheme = Office2007ColorScheme.Default;
- Color HeaderColor = new Color();
-
- Janus.Windows.UI.Dock.PanelVisualStyle GroupBoxPanelStyle = Janus.Windows.UI.Dock.PanelVisualStyle.Office2007;
- Janus.Windows.UI.Office2007ColorScheme ButtonScheme = Janus.Windows.UI.Office2007ColorScheme.Default;
- switch (Style)
- {
- case Popup_Style.Normal:
- if (_Data.Style_VisualStyle == Janus.Windows.UI.VisualStyle.Office2007)
- {
- HeaderScheme = Office2007ColorScheme.Custom;
- HeaderColor = System.Drawing.SystemColors.GradientInactiveCaption;
-
- GroupBoxPanelStyle = Janus.Windows.UI.Dock.PanelVisualStyle.Office2007;
- ButtonScheme = Janus.Windows.UI.Office2007ColorScheme.Blue;
- }
- else if (_Data.Style_VisualStyle == Janus.Windows.UI.VisualStyle.Office2003)
- {
- HeaderScheme = Office2007ColorScheme.Custom;
- HeaderColor = System.Drawing.SystemColors.GradientInactiveCaption;
-
- GroupBoxPanelStyle = Janus.Windows.UI.Dock.PanelVisualStyle.Office2003;
- ButtonScheme = Janus.Windows.UI.Office2007ColorScheme.Blue;
- }
- else if (_Data.Style_VisualStyle == Janus.Windows.UI.VisualStyle.Standard)
- {
- HeaderScheme = Office2007ColorScheme.Custom;
- HeaderColor = System.Drawing.Color.DarkGray;
-
- GroupBoxPanelStyle = Janus.Windows.UI.Dock.PanelVisualStyle.Standard;
- ButtonScheme = Janus.Windows.UI.Office2007ColorScheme.Default;
- }
- else if (_Data.Style_VisualStyle == Janus.Windows.UI.VisualStyle.VS2005)
- {
- HeaderScheme = Office2007ColorScheme.Custom;
- HeaderColor = System.Drawing.Color.LightGray;
-
- GroupBoxPanelStyle = Janus.Windows.UI.Dock.PanelVisualStyle.VS2005;
- ButtonScheme = Janus.Windows.UI.Office2007ColorScheme.Default;
- }
- else
- {
- HeaderScheme = Office2007ColorScheme.Custom;
- HeaderColor = System.Drawing.SystemColors.GradientInactiveCaption;
-
- GroupBoxPanelStyle = Janus.Windows.UI.Dock.PanelVisualStyle.Office2007;
- ButtonScheme = Janus.Windows.UI.Office2007ColorScheme.Default;
- }
- break;
- case Popup_Style.Alarm:
- HeaderScheme = Office2007ColorScheme.Custom;
- HeaderColor = Color.Red;
-
- GroupBoxPanelStyle = Janus.Windows.UI.Dock.PanelVisualStyle.Office2007;
- ButtonScheme = Janus.Windows.UI.Office2007ColorScheme.Custom;
- break;
- case Popup_Style.Return:
- HeaderScheme = Office2007ColorScheme.Custom;
- HeaderColor = Color.Gold;
-
- GroupBoxPanelStyle = Janus.Windows.UI.Dock.PanelVisualStyle.Office2007;
- ButtonScheme = Janus.Windows.UI.Office2007ColorScheme.Custom;
- break;
- }
-
- Popup.StartPosition = FormStartPosition.CenterScreen;
-
- Popup.Text = FormText;
-
- FormWidth = ContentsText.Length * 10 + 100;
-
- Popup.Size = new Size(FormWidth + ContentsText.Length, FormHeight);
-
- Popup.TopMost = true;
-
- Popup.BackColor = System.Drawing.SystemColors.Control;
-
- Popup.ControlBox = false;
-
- Popup.FormBorderStyle = FormBorderStyle.FixedSingle;
- Popup.MaximizeBox = false;
-
- OfficeFormAdorner FormAdorner = new OfficeFormAdorner();
- FormAdorner.Form = Popup;
- FormAdorner.Office2007ColorScheme = HeaderScheme;
- FormAdorner.Office2007CustomColor = HeaderColor;
-
- UIGroupBox uiGroupBox = new UIGroupBox();
- uiGroupBox.BackgroundStyle = Janus.Windows.EditControls.BackgroundStyle.Panel;
- uiGroupBox.BorderColor = System.Drawing.Color.Transparent;
- uiGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
-
- uiGroupBox.Name = "uiGroupBox";
-
- uiGroupBox.TabIndex = 0;
- uiGroupBox.VisualStyle = GroupBoxPanelStyle;
-
- Label label = new Label();
-
- label.Text = ContentsText;
-
- label.BackColor = System.Drawing.Color.Transparent;
-
- label.AutoSize = true;
-
-
- uiGroupBox.Controls.Add(label);
-
-
-
- UIButton button_OK = new UIButton();
-
- button_OK.Name = "button_OK";
-
- if (Type == Popup_Type.Dialog)
- button_OK.Text = _Text.Yes;
- else
- button_OK.Text = _Text.OK;
-
- button_OK.Tag = Popup;
-
- button_OK.VisualStyle = _Data.Style_VisualStyle;
-
- button_OK.Office2007ColorScheme = ButtonScheme;
- button_OK.Office2007CustomColor = HeaderColor;
-
- button_OK.Click += new EventHandler(Button_OK_Click);
- button_OK.HighlightActiveButton = false;
-
- if (Type == Popup_Type.ConfirmNoBtn)
- button_OK.Visible = false;
-
-
- uiGroupBox.Controls.Add(button_OK);
-
- UIButton button_Cancle = new UIButton();
- if (Type == Popup_Type.Dialog)
- {
-
- button_Cancle.Name = "button_Cancle";
-
- button_Cancle.Text = _Text.No;
-
- button_Cancle.Tag = Popup;
-
- button_Cancle.VisualStyle = _Data.Style_VisualStyle;
-
- button_Cancle.Office2007ColorScheme = ButtonScheme;
- button_Cancle.Office2007CustomColor = HeaderColor;
-
- button_Cancle.Click += new EventHandler(Button_Cancle_Click);
- button_Cancle.HighlightActiveButton = false;
-
-
- uiGroupBox.Controls.Add(button_Cancle);
- }
-
- Popup.StartPosition = FormStartPosition.CenterScreen;
- Popup.Controls.Add(uiGroupBox);
- Popup.Show();
-
-
-
-
- label.Location = new System.Drawing.Point((Popup.Width - label.Width) / 2, (Popup.Height - label.Height) / 4 * 1);
-
- button_OK.Location = new System.Drawing.Point((Popup.Width / 2) - 80, (Popup.Height - button_OK.Height) / 9 * 5);
-
- button_Cancle.Location = new System.Drawing.Point((Popup.Width / 2) + 5 / 11 * 8, (Popup.Height - button_OK.Height) / 9 * 5);
-
- label.Focus();
-
- Popup.Update();
-
- return Popup;
- }
- public static void CreateForm_FormClosing(object sender, FormClosingEventArgs e)
- {
- Form form = (Form)sender;
- DialogPopupText = null;
- _Event.PopupClose_SendMessage_Event -= new _Event.PopupClose_SendMessage_Handler((_Event.PopupClose_SendMessage_Handler)form.Tag);
- }
-
- public static void Button_OK_Click(object sender, EventArgs e)
- {
-
- UIButton senderForm = (UIButton)sender;
-
- Form poupup = (Form)senderForm.Tag;
-
- poupup.Hide();
-
- _Event.PopupClose_SendMessage(poupup, _Text.OK);
-
- poupup.Close();
- }
-
- public static void Button_Cancle_Click(object sender, EventArgs e)
- {
-
- UIButton senderForm = (UIButton)sender;
-
- Form poupup = (Form)senderForm.Tag;
-
- poupup.Hide();
-
- _Event.PopupClose_SendMessage(poupup, _Text.Cancle);
-
- poupup.Close();
- }
- }
- }
|