示例#1
0
        private void NoteForm_ResizeEnd(object sender, EventArgs e)
        {
            x      = noteForm.Location.X;
            y      = noteForm.Location.Y;
            width  = noteForm.Width;
            height = noteForm.Height;
            PositionChangedEventArgs args = new PositionChangedEventArgs()
            {
                X      = x,
                Y      = y,
                Width  = width,
                Height = height
            };

            OnPositionChanged(args);
        }
示例#2
0
 private void Note_PositionChanged(object sender, PositionChangedEventArgs e)
 {
     noteManager.SaveNoteToDisk(sender as Note);
 }
示例#3
0
 protected virtual void OnPositionChanged(PositionChangedEventArgs e)
 {
     PositionChanged?.Invoke(this, e);
 }