Exemplo n.º 1
0
 // Метод-конструктор
 public MyButtonClass()
 {
     mrButton = new Button();
     mrButton.Text = 'Нажми меня';
     mrButton.Click += new System.EventHandler(MyButtonClickEventHandler);
     this.Controls.Add(mrButton);
 }
Exemplo n.º 2
0
		void InitializeComponent ()
		{
			dataGrid = new DataGrid ();
			SuspendLayout ();

			//
			// dataGrid
			//
			dataGrid.DataMember = "";
			dataGrid.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			dataGrid.Location = new System.Drawing.Point (10, 50);
			dataGrid.Name = "dataGrid";
			dataGrid.Size = new System.Drawing.Size (600, 500);


			//
			// MainForm
			//
			AutoScaleBaseSize = new System.Drawing.Size (5, 13);
			ClientSize = new System.Drawing.Size (700, 600);
			Controls.Add (dataGrid);
			Text = "SWF-Datagrid RealSample";
			Name = "MainForm";
			Load += new System.EventHandler (MainFormLoad);
			ResumeLayout (false);
		}
Exemplo n.º 3
0
        public ColorEditorForm()
        {
            InitializeComponent();
            this.nowColor = Color.FromArgb(0, 0, 0);

            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();

            this.numericUpDown1ValueChangedEventHandler = new System.EventHandler(this.numericUpDown1_ValueChanged);
            this.numericUpDown2ValueChangedEventHandler = new System.EventHandler(this.numericUpDown2_ValueChanged);
            this.numericUpDown3ValueChangedEventHandler = new System.EventHandler(this.numericUpDown3_ValueChanged);

            this.hScrollBar1ValueChangedEventHandler += new System.EventHandler(this.hScrollBar1_ValueChanged);
            this.hScrollBar2ValueChangedEventHandler += new System.EventHandler(this.hScrollBar2_ValueChanged);
            this.hScrollBar3ValueChangedEventHandler += new System.EventHandler(this.hScrollBar3_ValueChanged);

            this.numericUpDown1.ValueChanged += this.numericUpDown1ValueChangedEventHandler;
            this.numericUpDown2.ValueChanged += this.numericUpDown2ValueChangedEventHandler;
            this.numericUpDown3.ValueChanged += this.numericUpDown3ValueChangedEventHandler;

            this.hScrollBar1.ValueChanged += this.hScrollBar1ValueChangedEventHandler;
            this.hScrollBar2.ValueChanged += this.hScrollBar2ValueChangedEventHandler;
            this.hScrollBar3.ValueChanged += this.hScrollBar3ValueChangedEventHandler;

            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
        }
		public AsyncPixbufLoader ()
		{
			delay = new Delay (0, new GLib.IdleHandler (AsyncRead));
			ap = new System.EventHandler (HandleAreaPrepared);
			au = new Gdk.AreaUpdatedHandler (HandleAreaUpdated);
			ev = new System.EventHandler (HandleClosed);
		}
Exemplo n.º 5
0
 public InventoryBackup(RadegastInstance instance)
 {
     InitializeComponent();
     Disposed += new System.EventHandler(InventoryBackup_Disposed);
     this.instance = instance;
     inv = client.Inventory.Store;
 }
        internal HeadlinesWindow()
            : base(_keyBase, string.Empty)
        {
            InitializeComponent();

            Closed += new System.EventHandler(HeadlinesWindow_Closed);
        }
Exemplo n.º 7
0
 public static void RegisterClick(System.EventHandler clicktodo)
 {
     TaskbarIcon.Click -= _clickEvent;
     TaskbarIcon.DoubleClick -= _clickEvent;
     _clickEvent = clicktodo;
     TaskbarIcon.Click += _clickEvent;
     TaskbarIcon.DoubleClick += _clickEvent;
 }
        public XPanel()
        {
            InitializeComponent();

            SizeChanged += new System.EventHandler(this.OnSizeChanged);

            SetUpdateImgStyle();
        }
        // MTScratchpadRTStylusForm constructor
        public MTScratchpadRTStylusForm()
        {
            InitializeComponent();

            // Setup event handlers
            Load += new System.EventHandler(this.OnLoadHandler);
            Paint += new PaintEventHandler(this.OnPaintHandler);
        }
Exemplo n.º 10
0
 public HelpMessageBox()
 {
     InitializeComponent();
     btnCancel.Visible = false;
     btnOk.Visible = false;
     edtMessageText.ReadOnly = !_editMode;
     Load += new System.EventHandler(HelpMessageBox_Load);
 }
        private void Awake()
        {
            _onDisableHandler = this.OnComponentDisabled;
            _onEnabledHandler = this.OnComponentEnabled;
            _onDestroyHandler = this.OnComponentDestroyed;

            this.enabled = false;
        }
Exemplo n.º 12
0
 public RadioButtonList()
 {
     LogMsg ("RadioButtonList   *** Entering ***");
       SizeChanged += new System.EventHandler (this.OnSizeChanged);
       Load += new System.EventHandler (this.OnLoad);
       InitializeComponent ();
       optionsFont = new Font ("Microsoft Sans Serif", 6.75f);
       LogMsg ("RadioButtonList   Exiting");
 }
Exemplo n.º 13
0
 /// <summary>
 /// Detach the ReadNotify handler.
 /// </summary>
 public void DetachReadNotify()
 {
     if ((myReader != null) && (myReadNotifyHandler != null))
     {
         // Detach the read notification handler.
         myReader.ReadNotify -= myReadNotifyHandler;
         myReadNotifyHandler = null;
     }
 }
Exemplo n.º 14
0
        public MainForm()
        {
            InitializeComponent();if (transDefaultFormMainForm == null)    transDefaultFormMainForm = this;

            btnOpenOrClosePort.Click += new System.EventHandler( btnOpenOrClosePort_Click );
            btnPort.Click += new System.EventHandler( btnPort_Click );
            Load += new System.EventHandler(Form1_Load);
            tmrLookForPortChanges.Tick += new System.EventHandler( tmrLookForPortChanges_Tick );
        }
Exemplo n.º 15
0
 /// <summary>
 /// Attach a StatusNotify handler.
 /// </summary>
 public void AttachStatusNotify(System.EventHandler StatusNotifyHandler)
 {
     // If we have a reader
     if (myReader != null)
     {
         // Attach status notification handler.
         myReader.StatusNotify += StatusNotifyHandler;
         myStatusNotifyHandler = StatusNotifyHandler;
     }
 }
Exemplo n.º 16
0
        /// <summary>
        /// Initialize port settings.
        /// InitializeComponent is required by the Windows Form Designer.
        /// </summary>
        public PortSettingsDialog()
        {
            InitializeComponent();

            InitializePortSettings();

            btnOK.Click += new System.EventHandler( btnOK_Click );
            Load += new System.EventHandler(PortSettingsDialog_Load);
            btnCancel.Click += new System.EventHandler( btnCancel_Click );
        }
Exemplo n.º 17
0
        public UnityState(OverlayPlugin manager, XmlNode node)
            : base(GetName(node, "creating unity state"), manager, node, false)
        {
            mUnity = Path.GetFullPath(GetString(node, null, "File"));
            mManager = manager;
            mMainWindow = GetManager(manager, node, "unity state");
            mBounds = manager.GetBounds(node, "unity state");

            ResizedHandler = new System.EventHandler(this.Resized);
        }
Exemplo n.º 18
0
        public WMTouchForm()
        {
            // Setup handlers
            Load += new System.EventHandler(this.OnLoadHandler);

            // GetTouchInputInfo needs to be
            // passed the size of the structure it will be filling.
            // We get the size upfront so it can be used later.
            touchInputSize = Marshal.SizeOf(new TOUCHINPUT());
        }
Exemplo n.º 19
0
 /// <summary>
 /// Attach a ReadNotify handler.
 /// </summary>
 public void AttachReadNotify(System.EventHandler ReadNotifyHandler)
 {
     // If we have a reader
     if (myReader != null)
     {
         // Attach the read notification handler.
         myReader.ReadNotify += ReadNotifyHandler;
         myReadNotifyHandler = ReadNotifyHandler;
     }
 }
Exemplo n.º 20
0
 public ALSAlarm()
 {
     this.player = new SoundPlayer(Properties.Resources.buzz);
     alarmOn = false;
     this.Text = "";
     Click += new System.EventHandler(this.ALSAlarm_Click);
     this.BackgroundImage = Properties.Resources.speaker_icon;
     this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
     alarms.Add(this);
     this.Disposed += ALSAlarm_Disposed;
 }
Exemplo n.º 21
0
 public ConfigScreen(object targetObject = null)
 {
     targetObj = targetObject;
     InitializeComponent();
     Load += new System.EventHandler(Screen_Load);
     pn.AutoScrollMinSize = new System.Drawing.Size(0, 12);
     if (CurtPanel == null)
     {
         CurtPanel = pn;
     }
 }
        void HeadlinesWindow_Closed(object sender, System.EventArgs e)
        {
            Closed -= new System.EventHandler(HeadlinesWindow_Closed);

            IDisposable disposable = DataContext as IDisposable;

            if (disposable != null)
            {
                disposable.Dispose();
            }
        }
Exemplo n.º 23
0
 public ReadOnlyRichTextBox()
 {
     MouseDown += new System.Windows.Forms.MouseEventHandler(this.OnMouseEvent);
     MouseUp += new System.Windows.Forms.MouseEventHandler(this.OnMouseEvent);
     Resize += new System.EventHandler(this.OnResize);
     Font = new Font(FontFamily.GenericSansSerif, 10f);
     ScrollBars = RichTextBoxScrollBars.None;
     BorderStyle = BorderStyle.None;
     ReadOnly = true;
     TabStop = false;
     HideCaret(this.Handle);
 }
        protected override void AddEvent()
        {
            Logger.logBegin("AddEvent");
            //base.AddEvent();
            Delegate eValueChanged = new System.EventHandler(this.ComboboxValueChanged);

            //base.AddHandler(MarsTigerServerConst.CNST_EVNT_VALUECHANGED, eValueChanged);
            base.AddHandler(MarsTigerServerConst.CNST_EVNT_SELECTCHANGED, eValueChanged);
            Delegate eChangeCmmt = new System.EventHandler(this.ComboboxValueChangedCmmt);
            base.AddHandler(MarsTigerServerConst.CNST_EVNT_SELECTCHANGEDCOMMIT, eChangeCmmt);
            Logger.logEnd("AddEvent");
        }
Exemplo n.º 25
0
	public MainForm ()
	{
		// 
		// MainForm
		// 
		ClientSize = new Size (342, 350);
		IsMdiContainer = true;
		Location = new Point (200, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #79964";
		Load += new System.EventHandler (MainForm_Load);
	}
Exemplo n.º 26
0
 public void ShowImmediatePopup()
 {
     //Xử lý Filter
     this.popupContainerEdit1.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
     text = new System.EventHandler(this.popupContainerEdit1_TextChanged);
     this.popupContainerEdit1.TextChanged += text;
     this.popupContainerEdit1.Properties.NullText = "";
     this.popupContainerEdit1.Popup += new EventHandler(popupContainerEdit1_Popup);
     if (plGroupCatNew1.TreeList_1.FilterConditions.Count == 0)
         HelpTree.ShowFilter(plGroupCatNew1.TreeList_1, true, plGroupCatNew1.IDField, plGroupCatNew1.ParentIDField, FilterConditionEnum.NotContains);
     this.AddCondition();
 }
Exemplo n.º 27
0
 public InventoryBackup(RadegastInstance instance, UUID rootFolder)
 {
     InitializeComponent();
     Disposed += new System.EventHandler(InventoryBackup_Disposed);
     this.instance = instance;
     inv = client.Inventory.Store;
     rootNode = inv.RootNode;
     if (inv.Items.ContainsKey(rootFolder) && inv.Items[rootFolder].Data is InventoryFolder)
     {
         rootNode = inv.GetNodeFor(rootFolder);
     }
 }
Exemplo n.º 28
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			// Stylistic changes to the Calender:
			lblDates.Font.Size = 20;
			myCalendar.Font.Size = 40;
			myCalendar.TitleStyle.BackColor = Color.LightGray;
			myCalendar.TitleStyle.ForeColor = Color.White;
			myCalendar.DayHeaderStyle.BackColor = Color.FromArgb(210,230,255);
			myCalendar.ShowGridLines = true;

			myCalendar.SelectionChanged += new System.EventHandler(this.MyCalendar_SelectionChanged);
			Load += new System.EventHandler(this.Page_Load);
		}
Exemplo n.º 29
0
        public LabelButton()
        {
            MouseLeave += new System.EventHandler(label1_MouseLeave);
            MouseDown += new System.Windows.Forms.MouseEventHandler(this.label1_MouseDown);
            MouseEnter += new System.EventHandler(this.label1_MouseEnter);
            MouseLeave += new System.EventHandler(this.label1_MouseLeave);
            MouseUp += new System.Windows.Forms.MouseEventHandler(this.label1_MouseUp);

            defalutColor = Color.Transparent;
            mouseEnterColor1 = Color.White;
            mouseDownColor1 = Color.FromArgb(54, 101, 179);
            borderColor1 = Color.Transparent;
        }
Exemplo n.º 30
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Default Constructor for FwSplashScreen
		/// </summary>
		/// ------------------------------------------------------------------------------------
		public RealSplashScreen()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			m_sAppVersionFmt = lblAppVersion.Text;
			m_sFwVersionFmt = lblFwVersion.Text;
			Opacity = 0;

			HandleCreated += new System.EventHandler(SetPosition);
		}
Exemplo n.º 31
0
 public void remove_PreferredRowHeightChanged(System.EventHandler value)
 {
     throw new NotImplementedException("remove_PreferredRowHeightChanged");
 }
Exemplo n.º 32
0
 public void remove_AlternatingBackColorChanged(System.EventHandler value)
 {
     throw new NotImplementedException("remove_AlternatingBackColorChanged");
 }
        private void SelectUser(string UserLogin)
        {
            if (string.IsNullOrEmpty(UserLogin))
            {
                return;
            }

            string usrName = UserLogin;

            RoboSep_UserConsole.strCurrentUser = usrName;

#if false
            // load user preferences
            RoboSep_UserDB.getInstance().loadCurrentUserPreferences(usrName);

            // load user protocols
            List <RoboSep_Protocol> tempList = RoboSep_UserDB.getInstance().loadUserProtocols(usrName);

            // it could be new user with no protocols
            if (tempList != null && tempList.Count > 0)
            {
                // load user protocols
                RoboSep_Protocols.getInstance().LoadUserToServer(usrName);
                RoboSep_Protocols.getInstance().setProtocolLoading(true);
                SeparatorGateway.GetInstance().separatorUpdating = true;

                if (evhHandleUserProtocolsReloaded == null)
                {
                    evhHandleUserProtocolsReloaded = new EventHandler(HandleUserProtocolsReloadedBeforeExiting);
                }

                RoboSep_UserConsole.getInstance().NotifyUserSeparationProtocolsUpdated += evhHandleUserProtocolsReloaded;
                return;
            }
#else
            // load user protocols
            List <RoboSep_Protocol> tempList = RoboSep_UserDB.getInstance().loadUserProtocols(usrName);

            // it could be new user with no protocols
            if (tempList != null && tempList.Count > 0)
            {
                // load user protocols
                RoboSep_Protocols.getInstance().LoadUserToServer(usrName);
                RoboSep_Protocols.getInstance().setProtocolLoading(true);
                SeparatorGateway.GetInstance().separatorUpdating = true;

                // load user preferences
                RoboSep_UserDB.getInstance().loadCurrentUserPreferences(usrName);

                if (evhHandleUserProtocolsReloaded == null)
                {
                    evhHandleUserProtocolsReloaded = new EventHandler(HandleUserProtocolsReloadedBeforeExiting);
                }

                RoboSep_UserConsole.getInstance().NotifyUserSeparationProtocolsUpdated += evhHandleUserProtocolsReloaded;
                return;
            }
            else
            {
                // load user preferences
                RoboSep_UserDB.getInstance().loadCurrentUserPreferences(usrName);
            }
#endif
            // open run samples window
            RoboSep_UserConsole myUC = RoboSep_UserConsole.getInstance();
            RoboSep_UserConsole.ctrlCurrentUserControl = RoboSep_RunSamples.getInstance();
            RoboSep_RunSamples.getInstance().UserName = usrName;
            RoboSep_RunSamples.getInstance().Enabled  = false;
            myUC.SuspendLayout();
            myUC.Controls.Remove(this);
            myUC.Controls.Add(RoboSep_RunSamples.getInstance());
            myUC.ResumeLayout();
            if (RoboSep_RunSamples.getInstance().IsInitialized)
            {
                RoboSep_RunSamples.getInstance().ReInitialize();
            }
            RoboSep_RunSamples.getInstance().Enabled = true;
        }
Exemplo n.º 34
0
 private void InitializeComponent()
 {
     Load += new System.EventHandler(Page_Load);
 }
Exemplo n.º 35
0
 public static void AddVerboseHandler(PowerShell ps, System.EventHandler errorEvt)
 {
     ps.Streams.Verbose.DataAdded += new EventHandler <DataAddedEventArgs>(errorEvt);
 }
Exemplo n.º 36
0
 public void UnSubscripe(System.EventHandler onValChanged)
 {
     valChanged -= onValChanged;
     supEvents.Remove(onValChanged);
 }
Exemplo n.º 37
0
 /// <summary>
 /// Add an action (on context menu) on the memo.
 /// </summary>
 /// <param name="menuText">Menu item text</param>
 /// <param name="ticked">Menu ticked?</param>
 /// <param name="onClick">Event handler for menu item click</param>
 public void AddContextAction(string menuText, bool ticked, System.EventHandler onClick)
 {
 }
Exemplo n.º 38
0
 public NodoMenuPrincipal(string text, string ensamblado, string clase, string parametro, decimal icon, System.EventHandler onClick, Font font, bool SystemMenu)
 {
     Text            = text;
     this.Clase      = clase;
     this.Parametro  = parametro;
     this.Ensamblado = ensamblado;
     this.Icon       = icon;
 }
Exemplo n.º 39
0
 public static System.Windows.Forms.ToolStripMenuItem MakeToolStripMenuItem(PanelIDs p, System.EventHandler h)
 {
     PanelInformation.PanelInfo             pi = GetPanelInfoByPanelID(p);
     System.Windows.Forms.ToolStripMenuItem mi = new System.Windows.Forms.ToolStripMenuItem();
     mi.Text   = pi.Description;
     mi.Size   = new System.Drawing.Size(250, 22);
     mi.Tag    = pi.PopoutID;
     mi.Image  = pi.TabIcon;
     mi.Click += h;
     return(mi);
 }
Exemplo n.º 40
0
        public Dialog CreateDialog(Activity activity,
                                   string title, string message,
                                   string cancelBtnText, string submitBtnText,
                                   System.EventHandler cancelBtnEventHandler, System.EventHandler submitBtnEventHandler,
                                   bool showcancelButton, bool showSubmitButton)
        {
            try
            {
                // Begin building a new dialog.
                var builder = new AlertDialog.Builder(activity);

                //Get the layout inflater
                var inflater = activity.LayoutInflater;

                //Inflate the layout for this dialog
                var dialogView = inflater.Inflate(Resource.Layout.custom_dialog_lay, null);


                if (dialogView != null)
                {
                    //Initialize the properties
                    _titleTV   = dialogView.FindViewById <TextView>(Resource.Id.titleTV);
                    _messageTV = dialogView.FindViewById <TextView>(Resource.Id.messageTV);
                    _submitBtn = dialogView.FindViewById <Button>(Resource.Id.submitBtn);
                    _cancelBtn = dialogView.FindViewById <Button>(Resource.Id.cancelBtn);

                    _titleTV.Text   = title;
                    _messageTV.Text = message;
                    _submitBtn.Text = submitBtnText;
                    _cancelBtn.Text = cancelBtnText;

                    _submitBtn.Click += submitBtnEventHandler;
                    _cancelBtn.Click += cancelBtnEventHandler;

                    _submitBtn.Text = submitBtnText;
                    _cancelBtn.Text = cancelBtnText;


                    if (showSubmitButton)
                    {
                        _submitBtn.Visibility = ViewStates.Visible;
                    }
                    else
                    {
                        _submitBtn.Visibility = ViewStates.Gone;
                    }

                    if (showcancelButton)
                    {
                        _cancelBtn.Visibility = ViewStates.Visible;
                    }
                    else
                    {
                        _cancelBtn.Visibility = ViewStates.Gone;
                    }
                    builder.SetView(dialogView);
                }


                //Create the builder
                var dialog = builder.Create();

                //Now return the constructed dialog to the calling activity
                return(dialog);
            }
            catch (Exception e)
            {
                UtilityDroid.PrintLog(TAG, e.StackTrace, Global.ConstantsDroid.LogType.ERROR);
                return(null);
            }
        }
Exemplo n.º 41
0
        public virtual System.Windows.Forms.ToolStripItem[] buildMenu(List <MySQL.Base.MenuItem> menuItems, System.EventHandler handler)
        {
            System.Windows.Forms.ToolStripItem[] itemlist = new System.Windows.Forms.ToolStripItem[menuItems.Count];
            int i = 0;

            // rebuild the menu
            foreach (MySQL.Base.MenuItem subitem in menuItems)
            {
                Keys shortcut = convertShortcut(subitem.get_shortcut());


                switch (subitem.get_type())
                {
                case MenuItemType.MenuAction:
                case MenuItemType.MenuUnavailable:
                {
                    System.Windows.Forms.ToolStripMenuItem smitem;

                    smitem              = new System.Windows.Forms.ToolStripMenuItem();
                    smitem.Name         = subitem.getInternalName();
                    smitem.Text         = subitem.get_caption();
                    smitem.ShortcutKeys = shortcut;
                    smitem.Enabled      = subitem.get_enabled();
                    if (subitem.get_type() == MenuItemType.MenuUnavailable)
                    {
                        smitem.Image   = Resources.menu_se;
                        smitem.Enabled = false;
                    }
                    smitem.Click += handler;
                    itemlist[i++] = smitem;
                    break;
                }

                case MenuItemType.MenuCheck:
                case MenuItemType.MenuRadio:
                {
                    System.Windows.Forms.ToolStripMenuItem smitem;

                    smitem              = new System.Windows.Forms.ToolStripMenuItem();
                    smitem.Name         = subitem.getInternalName();
                    smitem.Text         = subitem.get_caption();
                    smitem.ShortcutKeys = shortcut;
                    smitem.Enabled      = subitem.get_enabled();
                    smitem.Checked      = subitem.get_checked();
                    smitem.Click       += handler;
                    itemlist[i++]       = smitem;
                    break;
                }

                case MenuItemType.MenuSeparator:
                    itemlist[i++] = new System.Windows.Forms.ToolStripSeparator();
                    break;

                case MenuItemType.MenuCascade:
                {
                    System.Windows.Forms.ToolStripMenuItem smitem;

                    smitem              = new System.Windows.Forms.ToolStripMenuItem();
                    smitem.Name         = subitem.getInternalName();
                    smitem.Text         = subitem.get_caption();
                    smitem.ShortcutKeys = shortcut;
                    smitem.Enabled      = subitem.get_enabled();
                    buildSubmenu(smitem, subitem.getInternalName(), subitem.get_subitems(), handler);
                    itemlist[i++] = smitem;
                    break;
                }

                default:
                    throw new Exception("bad item type");
                }
            }
            return(itemlist);
        }
Exemplo n.º 42
0
        public static TBindable WithContentPresenterChildrenReorderedEvent <TBindable>(this TBindable self,
                                                                                       System.EventHandler handlerAction) where TBindable : ContentPresenter
        {
            self.ChildrenReordered += handlerAction;

            return(self);
        }
Exemplo n.º 43
0
 /// <summary>Add an event handler which is kept only by a weak reference.</summary>
 /// <param name="source">The source (publisher).</param>
 /// <param name="targetHandler">The target event handler of the subscriber.</param>
 /// <returns>The created proxy object.</returns>
 public static IWeakEventProxy Add(ICommand source, S.EventHandler targetHandler)
 {
     return(EventHandler.Add(source, targetHandler, (s, h) => s.CanExecuteChanged += h, (s, h) => s.CanExecuteChanged -= h));
 }
Exemplo n.º 44
0
 public void remove_ReadOnlyChanged(System.EventHandler value)
 {
     throw new NotImplementedException("remove_ReadOnlyChanged");
 }
Exemplo n.º 45
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InternalStartup()
 {
     Startup  += new System.EventHandler(ThisAddIn_Startup);
     Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
 }
Exemplo n.º 46
0
 public void remove_RowHeadersVisibleChanged(System.EventHandler value)
 {
     throw new NotImplementedException("remove_RowHeadersVisibleChanged");
 }
Exemplo n.º 47
0
 public CNDCMenuItemOracle(string text, string ensamblado, string clase, string parametro, decimal icon, System.EventHandler onClick, Font font, bool SystemMenu)
     : base(text, null, onClick)
 {
     this.Font       = font;
     this.Clase      = clase;
     this.Parametro  = parametro;
     this.Ensamblado = ensamblado;
     this.Icon       = icon;
 }
Exemplo n.º 48
0
 public void remove_SelectionForeColorChanged(System.EventHandler value)
 {
     throw new NotImplementedException("remove_SelectionForeColorChanged");
 }
Exemplo n.º 49
0
 public void Subscripe(System.EventHandler onValChanged)
 {
     valChanged += onValChanged;
     supEvents.Add(onValChanged);
 }
Exemplo n.º 50
0
 public static void AddInformationHandler(PowerShell ps, System.EventHandler errorEvt)
 {
     ps.Streams.Information.DataAdded += new EventHandler <DataAddedEventArgs>(errorEvt);
 }
Exemplo n.º 51
0
 public MapMenuItem(System.String text, System.EventHandler onClick) : base(text, onClick)
 {
     Tag = null;
 }
Exemplo n.º 52
0
 public static void AddWarningHandler(PowerShell ps, System.EventHandler errorEvt)
 {
     ps.Streams.Warning.DataAdded += new EventHandler <DataAddedEventArgs>(errorEvt);
 }
Exemplo n.º 53
0
 public void remove_GridLineStyleChanged(System.EventHandler value)
 {
     throw new NotImplementedException("remove_GridLineStyleChanged");
 }
Exemplo n.º 54
0
 public static void AddProgressHandler(PowerShell ps, System.EventHandler errorEvt)
 {
     ps.Streams.Progress.DataAdded += new EventHandler <DataAddedEventArgs>(errorEvt);
 }
Exemplo n.º 55
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DTCForm));
     picMilOn          = new System.Windows.Forms.PictureBox();
     groupMIL          = new System.Windows.Forms.GroupBox();
     lblMilStatus      = new System.Windows.Forms.Label();
     picMIL            = new System.Windows.Forms.PictureBox();
     picMilOff         = new System.Windows.Forms.PictureBox();
     groupPermanent    = new System.Windows.Forms.GroupBox();
     richTextPermanent = new System.Windows.Forms.RichTextBox();
     btnRefresh        = new System.Windows.Forms.Button();
     btnErase          = new System.Windows.Forms.Button();
     groupTotal        = new System.Windows.Forms.GroupBox();
     lblTotalCodes     = new System.Windows.Forms.Label();
     groupCodes        = new System.Windows.Forms.GroupBox();
     richTextDTC       = new System.Windows.Forms.RichTextBox();
     groupPending      = new System.Windows.Forms.GroupBox();
     richTextPending   = new System.Windows.Forms.RichTextBox();
     ((System.ComponentModel.ISupportInitialize)(picMilOn)).BeginInit();
     groupMIL.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(picMIL)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(picMilOff)).BeginInit();
     groupPermanent.SuspendLayout();
     groupTotal.SuspendLayout();
     groupCodes.SuspendLayout();
     groupPending.SuspendLayout();
     SuspendLayout();
     //
     // picMilOn
     //
     picMilOn.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     picMilOn.Image       = ((System.Drawing.Image)(resources.GetObject("picMilOn.Image")));
     picMilOn.Location    = new System.Drawing.Point(15, 25);
     picMilOn.Name        = "picMilOn";
     picMilOn.Size        = new System.Drawing.Size(100, 50);
     picMilOn.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     picMilOn.TabIndex    = 0;
     picMilOn.TabStop     = false;
     picMilOn.Visible     = false;
     //
     // groupMIL
     //
     groupMIL.Controls.Add(lblMilStatus);
     groupMIL.Controls.Add(picMIL);
     groupMIL.Controls.Add(picMilOff);
     groupMIL.Controls.Add(picMilOn);
     groupMIL.Location = new System.Drawing.Point(15, 15);
     groupMIL.Name     = "groupMIL";
     groupMIL.Size     = new System.Drawing.Size(130, 155);
     groupMIL.TabIndex = 1;
     groupMIL.TabStop  = false;
     groupMIL.Text     = "Check Engine Lamp";
     //
     // lblMilStatus
     //
     lblMilStatus.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     lblMilStatus.Font        = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     lblMilStatus.Location    = new System.Drawing.Point(15, 90);
     lblMilStatus.Name        = "lblMilStatus";
     lblMilStatus.Size        = new System.Drawing.Size(100, 50);
     lblMilStatus.TabIndex    = 1;
     lblMilStatus.Text        = "ON";
     lblMilStatus.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // picMIL
     //
     picMIL.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     picMIL.Location    = new System.Drawing.Point(15, 25);
     picMIL.Name        = "picMIL";
     picMIL.Size        = new System.Drawing.Size(100, 50);
     picMIL.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     picMIL.TabIndex    = 3;
     picMIL.TabStop     = false;
     //
     // picMilOff
     //
     picMilOff.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     picMilOff.Image       = ((System.Drawing.Image)(resources.GetObject("picMilOff.Image")));
     picMilOff.Location    = new System.Drawing.Point(15, 25);
     picMilOff.Name        = "picMilOff";
     picMilOff.Size        = new System.Drawing.Size(100, 50);
     picMilOff.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     picMilOff.TabIndex    = 2;
     picMilOff.TabStop     = false;
     picMilOff.Visible     = false;
     //
     // groupPermanent
     //
     groupPermanent.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     groupPermanent.Controls.Add(richTextPermanent);
     groupPermanent.Location = new System.Drawing.Point(160, 15);
     groupPermanent.Name     = "groupPermanent";
     groupPermanent.Size     = new System.Drawing.Size(399, 161);
     groupPermanent.TabIndex = 2;
     groupPermanent.TabStop  = false;
     groupPermanent.Text     = "Permanent Trouble Codes";
     //
     // richTextPermanent
     //
     richTextPermanent.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                       | System.Windows.Forms.AnchorStyles.Left)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     richTextPermanent.Location = new System.Drawing.Point(16, 24);
     richTextPermanent.Name     = "richTextPermanent";
     richTextPermanent.ReadOnly = true;
     richTextPermanent.Size     = new System.Drawing.Size(364, 120);
     richTextPermanent.TabIndex = 0;
     richTextPermanent.Text     = "";
     //
     // btnRefresh
     //
     btnRefresh.Location = new System.Drawing.Point(15, 283);
     btnRefresh.Name     = "btnRefresh";
     btnRefresh.Size     = new System.Drawing.Size(130, 25);
     btnRefresh.TabIndex = 3;
     btnRefresh.Text     = "&Refresh";
     btnRefresh.Click   += new System.EventHandler(btnRefresh_Click);
     //
     // btnErase
     //
     btnErase.Location = new System.Drawing.Point(15, 320);
     btnErase.Name     = "btnErase";
     btnErase.Size     = new System.Drawing.Size(130, 25);
     btnErase.TabIndex = 4;
     btnErase.Text     = "&Erase Codes";
     btnErase.Click   += new System.EventHandler(btnErase_Click);
     //
     // groupTotal
     //
     groupTotal.Controls.Add(lblTotalCodes);
     groupTotal.Location = new System.Drawing.Point(15, 185);
     groupTotal.Name     = "groupTotal";
     groupTotal.Size     = new System.Drawing.Size(130, 90);
     groupTotal.TabIndex = 5;
     groupTotal.TabStop  = false;
     groupTotal.Visible  = false;
     //
     // lblTotalCodes
     //
     lblTotalCodes.Font      = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     lblTotalCodes.Location  = new System.Drawing.Point(15, 25);
     lblTotalCodes.Name      = "lblTotalCodes";
     lblTotalCodes.Size      = new System.Drawing.Size(100, 50);
     lblTotalCodes.TabIndex  = 2;
     lblTotalCodes.Text      = "0";
     lblTotalCodes.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     lblTotalCodes.Visible   = false;
     //
     // groupCodes
     //
     groupCodes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
     groupCodes.Controls.Add(richTextDTC);
     groupCodes.Location = new System.Drawing.Point(159, 183);
     groupCodes.Name     = "groupCodes";
     groupCodes.Size     = new System.Drawing.Size(399, 161);
     groupCodes.TabIndex = 6;
     groupCodes.TabStop  = false;
     groupCodes.Text     = "Stored Trouble Codes";
     //
     // richTextDTC
     //
     richTextDTC.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                 | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     richTextDTC.Location = new System.Drawing.Point(17, 21);
     richTextDTC.Name     = "richTextDTC";
     richTextDTC.ReadOnly = true;
     richTextDTC.Size     = new System.Drawing.Size(364, 124);
     richTextDTC.TabIndex = 1;
     richTextDTC.Text     = "";
     //
     // groupPending
     //
     groupPending.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
     groupPending.Controls.Add(richTextPending);
     groupPending.Location = new System.Drawing.Point(159, 352);
     groupPending.Name     = "groupPending";
     groupPending.Size     = new System.Drawing.Size(399, 161);
     groupPending.TabIndex = 7;
     groupPending.TabStop  = false;
     groupPending.Text     = "Pending Trouble Codes";
     //
     // richTextPending
     //
     richTextPending.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                     | System.Windows.Forms.AnchorStyles.Left)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     richTextPending.Location = new System.Drawing.Point(17, 21);
     richTextPending.Name     = "richTextPending";
     richTextPending.ReadOnly = true;
     richTextPending.Size     = new System.Drawing.Size(364, 124);
     richTextPending.TabIndex = 1;
     richTextPending.Text     = "";
     //
     // DTCForm
     //
     AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     BackColor         = System.Drawing.SystemColors.Control;
     ClientSize        = new System.Drawing.Size(574, 580);
     ControlBox        = false;
     Controls.Add(groupPending);
     Controls.Add(groupCodes);
     Controls.Add(groupTotal);
     Controls.Add(btnErase);
     Controls.Add(btnRefresh);
     Controls.Add(groupPermanent);
     Controls.Add(groupMIL);
     FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     MaximizeBox     = false;
     MinimizeBox     = false;
     MinimumSize     = new System.Drawing.Size(300, 405);
     Name            = "DTCForm";
     ShowInTaskbar   = false;
     Text            = "Diagnostic Trouble Codes";
     Activated      += new System.EventHandler(DTCForm_Activated);
     Load           += new System.EventHandler(DTCForm_Load);
     Resize         += new System.EventHandler(DTCForm_Resize);
     ((System.ComponentModel.ISupportInitialize)(picMilOn)).EndInit();
     groupMIL.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(picMIL)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(picMilOff)).EndInit();
     groupPermanent.ResumeLayout(false);
     groupTotal.ResumeLayout(false);
     groupCodes.ResumeLayout(false);
     groupPending.ResumeLayout(false);
     ResumeLayout(false);
 }
Exemplo n.º 56
0
 public void remove_LinkHoverColorChanged(System.EventHandler value)
 {
     throw new NotImplementedException("remove_LinkHoverColorChanged");
 }
Exemplo n.º 57
0
        public static TBindable WithContentPresenterBindingContextChangedEvent <TBindable>(this TBindable self,
                                                                                           System.EventHandler handlerAction) where TBindable : ContentPresenter
        {
            self.BindingContextChanged += handlerAction;

            return(self);
        }
Exemplo n.º 58
0
 public void remove_MappingNameChanged(System.EventHandler value)
 {
     throw new NotImplementedException("remove_MappingNameChanged");
 }
Exemplo n.º 59
0
        public static TBindable WithContentPresenterMeasureInvalidatedEvent <TBindable>(this TBindable self,
                                                                                        System.EventHandler handlerAction) where TBindable : ContentPresenter
        {
            self.MeasureInvalidated += handlerAction;

            return(self);
        }
Exemplo n.º 60
0
 public void remove_PreferredColumnWidthChanged(System.EventHandler value)
 {
     throw new NotImplementedException("remove_PreferredColumnWidthChanged");
 }