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); }
private void Note_PositionChanged(object sender, PositionChangedEventArgs e) { noteManager.SaveNoteToDisk(sender as Note); }
protected virtual void OnPositionChanged(PositionChangedEventArgs e) { PositionChanged?.Invoke(this, e); }