コード例 #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);
 }